fs field separator 中文意思是什麼
fs field separator
解釋
欄位分隔符-
Because the begin block is evaluated before awk starts processing the input file, it s an excellent place to initialize the fs field separator variable, print a heading, or initialize other global variables that you ll reference later in the program
Awk還有" do . while "循環,它在代碼塊結尾處對條件求值,而不象標準while循環那樣在開始處求值。它類似於其它語言中的" repeat . until "循環。 -
In this script, the field separator is specified within the code itself by setting the fs variable, while our previous example set fs by passing the - f " : " option to awk on the command line
如果想使輸出的間隔翻倍,可以將ors設置成" n n " 。或者,如果想要用單個空格分隔記錄(而不換行) ,將ors設置成" 。
分享友人