“Linux awk” Ответ

Linux awk

# usages
awk '{$1=""; print}' # print all except first column
awk '{$1=$3=$NF=$(NF-1)=""}1' file # print all except the 1ast and 3rd column and the last 1/2
awk -F"/" '{print $NF}' file #print only the last column
awk -F"/" '{print $NF-1}' file #print only the 2nd column from the end of string
Amused Anaconda

Awk Command в Linux

awk '{$1=""; print}' # print all except first column
awk '{$1=$3=$NF=$(NF-1)=""}1' file # print all except the 1ast and 3rd column and the last 1/2
awk -F"/" '{print $NF}' file #print only the last column
awk -F"/" '{print $NF-1}' file #print only the 2nd column from the end of string
Gulshan Dharne

Ответы похожие на “Linux awk”

Вопросы похожие на “Linux awk”

Больше похожих ответов на “Linux awk” по Shell/Bash

Смотреть популярные ответы по языку

Смотреть другие языки программирования