Advanced Search
Search Results
5 total results found
GAWK 1
Gnu Awk Gawk is the GNU version of the text processing tool. In most GNU/Linux distributions, Gawk is the default awk implementation, so there is usually no difference in daily use. readlink -f /usr/bin/awk /usr/bin/gawk The Gawk command defaults to using E...
GAWK 2
Regular Expression gawk defaults to using ERE mode. Basic Usage First, create the foo text file. cat <<EOF > foo a1,a2,a3 b1,b2,b3 EOF gawk -F, '/1,a/{ print $1 }' foo a1 Here, the entire line is matched, equivalent to $0. Field-Specific Matching $2 ~ spec...
Multi-Lines Text
Echo Command Using the -e option can create simple multi-line text. echo -e 'aa\nbb' aa bb Here Document Here Document (abbreviated as Heredoc) is a way of input redirection in Shell, allowing you to embed multi-line text within scripts or commands and pas...
Regular Expression
Regular Expressions (regex) can be divided into the following categories based on different standards. Type Abbr Full Name Basic Regular Expressions BRE Basic Regular Expressions Extended Regular Expressions ERE Extended Regular Expressions Perl Reg...
SED
Stream Editor, a stream text processor, authored by Lee E. McMahon. Basic Syntax sed [OPTIONS] 'command' file OPTIONS: Command options. command: Print, replace, delete, etc. file: The file to process; if omitted, reads from STDIN. Omitting file enters inter...