Skip to main content
Rakesh Sharma's user avatar
Rakesh Sharma's user avatar
Rakesh Sharma's user avatar
Rakesh Sharma
Unregistered
  • Member for 7 years, 7 months
  • Last seen more than 7 years ago
8 votes

sed replace matching line which does not start with #

4 votes

Print specific range of lines between two matches starting with a specific line after the first match

4 votes

Insert multiline text before the first matching line in a file

3 votes

Parse output with dynamic col widths and empty fields

2 votes

Replace a string before a certain line

2 votes

Change all but first ',' to "<COMMA>" for each row in file (bash)

2 votes

Getting the last lines that matches a pattern in multiple files

2 votes

How to delete all lines that contain only duplicates characters?

2 votes

When sed is used in an expect command, what is the proper way to escape the backslashes?

2 votes
Accepted

Portable way to remove the first line from the pattern space (when multiple lines are present)

2 votes

Match pattern in a file and print the matching word (not the whole line) in second column

2 votes

Insert multiline text before the first matching line in a file

2 votes

Replace pattern each time with a different string (taken from external file)

2 votes
Accepted

Copy first line from one file to other files using xargs and sed

2 votes

Extract rows using a delimiter and append as column in a file

2 votes

How to append output to a specific line in a file

1 vote
Accepted

The alias does not work ?

1 vote

Korn/Bash Shell: How to do I convert the contents to the below format?

1 vote

If Else, Awk NR: How to remove a section header of table where there are no entries

1 vote

Remove adjacent duplicate lines while keeping the order

1 vote

Speed up script that determines if all columns in a row are the same or not

1 vote

Extract multiple occurrences in the same line of a string between two delimiters

1 vote
Accepted

awk + append lines before captured word only if lines are not defined in the file

1 vote

sed removing everything until and including the first period if there's more than one period on that line and do this for the whole file

1 vote

make row to column n insert newline in every last row

1 vote

How to remove last n characters of a particular column

1 vote
Accepted

counting the matched lines

1 vote

Given a starting key token followed by n tokens, interleave the n tokens with the key

1 vote

Listing number of files in each folder where folder name matches a pattern

1 vote

How can I improve below alias?