“Awk Command в Linux” Ответ

awk inall в linux

AWK (awk) is a domain-specific language designed for text processing and typically used as a data extraction and reporting tool. Like sed and grep, it is a filter, and is a standard feature of most Unix-like operating systems.
Creepy Capybara

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

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

Вопросы похожие на “Awk Command в Linux”

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

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

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