How to append previous line to next line in a file if first character of a line is |
121072
concatenate lines based on first char of next line
90072
What is the easiest way to add a string on the beginning of every line of the file from the command line?
17305
using perl, how to select last 2 lines in the case of each row has same word?
8112
How to add text to end of line when pattern is matched?
57040
How to read only the second last line of a file
155976
How to join a line with a pattern with the next line with sed?
75453
How do I remove newline character from lines preceding a particular pattern?
86979
Insert text from file inline after matching pattern in another file
74813
add space 5 times at the beginning of each line in a text file
80516
Return previous line of all matches
60118
Extra Backslash Required in First Appended Newline in sed
8337
How to append multiple lines of text to a file?
58770
Remove the last line from a file in Bash
41151
Search and replace a line in a file in Python
89775
split file lines based on first field
121559
How to get lines 10 to 100 from a 200 line file into a new file
56403
Is there a way to delete the first character from a text file once it is read?