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

One Comment

Add a Comment

Your email address will not be published.