LXer: How to keep an eye on field numbers
by LXer from LinuxQuestions.org on (#59ZEH)
Published at LXer:
This week: I have a simple shell function, "fields", that generates a numbered list of the fields in a data table. With those field numbers I can then use AWK and the cut command efficiently on the command line. As an alternative I use a "fieldlist" function that puts the numbered list on my desktop like a Post-it note. Last week: A short rant about Python, R and UNIX.
Read More...


This week: I have a simple shell function, "fields", that generates a numbered list of the fields in a data table. With those field numbers I can then use AWK and the cut command efficiently on the command line. As an alternative I use a "fieldlist" function that puts the numbered list on my desktop like a Post-it note. Last week: A short rant about Python, R and UNIX.
Read More...