mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-29 15:46:35 +00:00
add sed
This commit is contained in:
parent
e49ae9a078
commit
22274b268b
@ -171,6 +171,10 @@ e.g. add the filename to every last column of the file
|
|||||||
|
|
||||||
sed ':a;N;$!ba;s/\n//g'
|
sed ':a;N;$!ba;s/\n//g'
|
||||||
|
|
||||||
|
#####print a number of lines (e.g. line 10th to line 33 rd)
|
||||||
|
|
||||||
|
sed -n '10,33p' <filename
|
||||||
|
|
||||||
|
|
||||||
#Awk
|
#Awk
|
||||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||||
|
Loading…
Reference in New Issue
Block a user