sed tricks
Insert
Insert line at the beginning of the file
to any line by number
Replace
Simple replace one value by other
Replace /home10/incorrect_path
by /home10/correct_path
at line that start from Value1 in file /etc/proftpd/user2
Split long line by word count
cat 1.txt
1 2 3 4 5.3 6,8 7 8 10
a b c d e hh jj kk sds-ds kkoo
cat 1.txt | sed 's/ /\n/3;P;D'
1 2 3
4 5.3 6,8
7 8 10
a b c
d e hh
jj kk sds-ds
kkoo
Highlighting
Delete
Delete line by pattern
Delete numbers
Delete domains from email
Delete ESC sequences from file
Remove commented by # and empty lines
Delete line by number
Delete lines from {NUMLINE} to end of file
Delete last line in file