User Tools

Site Tools


bash:files:display_a_specific_field_in_a_file_if_it_starts_with_a_number

BASH - Files - Display a specific field in a file if it starts with a number

If the fourth field starts with a number then display that fourth field.

awk '$4 ~ /^[0-9]/ { print $4 }' filename
bash/files/display_a_specific_field_in_a_file_if_it_starts_with_a_number.txt · Last modified: 2022/06/13 12:07 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki