awk
concatenate lines based on first char of next line
I am looking for away contact lines based on the next line. So far the only way I see is to create a shell script that will read line by line and will do something along these lines:
sed command to replace a string from one file with entire contents of another file
This question already has answers here: How to ensure that string interpolated into `sed` substitution escapes all metachars (1 answer) Insert text from file inline after matching pattern in another file (3 answers) Closed 7 years ago. I want to write a sed (or awk) command to replace a string from one file with the … Read more
Slurp-mode in awk?
Tools like sed, awk or perl -n process their input one record at a time, records being lines by default.
Delete an array in awk
In awk, I can clear an array with a loop, making it an empty array, which is equivalent to deleting it.
Replacing string based on line number
I have a situation where i want to replace a particular string in many files
Need to sum of last column based on pipe delimiter
I have below inputs with huge number of rows
Merging columns from two separate files
How to create a new file merging selective columns from two separate files using awk? Without messing up the elements orders of BOTH files.
How to run grep on a single column?
I want to grep the output of my ls -l command: