User Tools

Site Tools


ubuntu:file:remove_a_field_from_each_line_in_a_file

This is an old revision of the document!


Ubuntu - File - Remove a field from each line in a file

Remove the second field in each line and then print it.

awk '{ $1 = ""; print }' filename
ubuntu/file/remove_a_field_from_each_line_in_a_file.1574890014.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki