Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question

In linux, awk usually uses whitespace for delimitar by default, when processing a file, how can you change the delimitar? For example, if procssing /etc/passwd, that uses : as delimiter:

awk [...] '{print $1}' /etc/passwd

Answer

-F :

^^ note that the F here is short for FS (field seperator)


Question

In linux, awk usually uses whitespace for delimitar by default, when processing a file, how can you change the delimitar? For example, if procssing /etc/passwd, that uses : as delimiter:

awk [...] '{print $1}' /etc/passwd

Answer
?

Question

In linux, awk usually uses whitespace for delimitar by default, when processing a file, how can you change the delimitar? For example, if procssing /etc/passwd, that uses : as delimiter:

awk [...] '{print $1}' /etc/passwd

Answer

-F :

^^ note that the F here is short for FS (field seperator)

If you want to change selection, open document below and click on "Move attachment"

The GNU Awk User’s Guide
cumented, Up: Invoking Gawk [Contents][Index] 2.11 Summary Use either ‘awk 'program' files’ or ‘awk -f program-file files’ to run awk. The three standard options for all versions of awk are -f, <span>-F, and -v. gawk supplies these and many others, as well as corresponding GNU-style long options. Nonoption command-line arguments are usually treated as file names, unless they have the f

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.