Linux/cut: Difference between revisions

From Omnia
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 15:52, 25 January 2016

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}'