Linux/cut

From Omnia
Revision as of 15:52, 25 January 2016 by Kenneth (talk | contribs) (Created page with "== String Manipulation == Chopping off the last field of each line? :: Free Tech Support from Ask Dave Taylor!: rev inputfile | cut -f2- | rev > outputfile awk '{$NF=""; p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

String Manipulation

Chopping off the last field of each line? :: Free Tech Support from Ask Dave Taylor!:

rev inputfile | cut -f2- | rev > outputfile
awk '{$NF=""; print $0}'