Printing everything except the first field with awk

前端 未结 16 2657
北恋
北恋 2020-12-04 07:04

I have a file that looks like this:

AE  United Arab Emirates
AG  Antigua & Barbuda
AN  Netherlands Antilles
AS  American Samoa
BA  Bosnia and Herzegovina         


        
16条回答
  •  情话喂你
    2020-12-04 07:49

    Another and easy way using cat command

    cat filename | awk '{print $2,$3,$4,$5,$6,$1}' > newfilename
    

提交回复
热议问题