Answers for "bash delete first column of file"

1

delete first column bash

Just use cut command with a defined delimeter as a space ' ' and choose
to cut since second word match until end '-f2-' as for example:
cat file.txt | cut -d ' ' -f2-
If for example space delimiter ' ' is repeated in your line check how
many times, since matching word number must then be adapted. For example:
history | cut -d ' ' -f4-
Posted by: Guest on October-26-2020
0

how to remove first colum froim file linux

awk '{ $1=""; print $0 }' yourfile
Posted by: Guest on February-04-2021

Code answers related to "bash delete first column of file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language