AWK usage tips

1 -F delimiter contains special characters
  A square brackets []
    three right slash escapes
-F'\\\['

  B Single quotation
    marks are used outside the   single quotation marks
-F"'"

  Examples that come together
   
awk -F"\\\[ '" '{print $2}' 文件名 | awk -F"'" '{print $1}' > out


2 Commonly used built-in functions
split

3 Process multiple files at the same time

4 File deduplication

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326610200&siteId=291194637