AWK tutorial: awk save to file

AWK save to file

➜  awk cat test1.txt | awk 'BEGIN{FS=":";OFS="|"}{print $1,$2,$3}' > test11.txt

AWK append to file

➜  awk cat test1.txt | awk 'BEGIN{FS=":";OFS="|"}{print $1,$2,$3}' >> test11.txt
This entry was posted in Awk Command, Text Processing and tagged , , , . Bookmark the permalink.