Horje
awk print lines when match is found with specific field Code Example
awk print lines when match is found with specific field
# Basic awk syntax:
awk 'condition { print $0 }' input_file

# Example usage:
awk '$2 == "string_to_match" { print $0 }' input_file
# This prints the entire line ($0) when field 2 ($2) is equal to the
# string "string_to_match"




Shell

Related
bash file name from absolute path Code Example bash file name from absolute path Code Example
make zsh for all users Code Example make zsh for all users Code Example
uninstall mssql server ubuntu Code Example uninstall mssql server ubuntu Code Example
bash list the top ten largest values in a column Code Example bash list the top ten largest values in a column Code Example
install java 17 ubuntu Code Example install java 17 ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12