LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: How to Use Awk to Find and Sort Text in Linux, GnuCash (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-how-to-use-awk-to-find-and-sort-text-in-linux-gnucash-4175466112/)

LXer 06-15-2013 05:40 AM

LXer: How to Use Awk to Find and Sort Text in Linux, GnuCash
 
Published at LXer:

awk is a splendid Unix scripting language for processing text files. The version included in most Linux distros is GNU awk, or gawk for short. I like it for pulling data from ordered data sets, such as text lists and CSV exports from spreadsheets. awk sees each line in a file as a separate record, and each item in a line as a separate field, which makes it possible to slice and dice your files in all kinds of flexible ways. The classic way to illustrate this is with /etc/passwd; this example prints the whole contents:

Read More...


All times are GMT -5. The time now is 09:16 AM.