Remove leftmost column(s) from text file

less than 1 minute read

cat old.txt | cut -c2- > new.txt

For example:

  • clean diff output of all the plus/minus signs
  • eliminates garbage in the first column(s) of a text file

Categories:

Updated:

Leave a Comment