Site icon LinuxCommands.site

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
Exit mobile version