curl vs wget difference and basic use

Curl and wget of Linux commands, curl and get have many similarities, such as the following downloads. To make a difference, curl is better at...

mac shells and shell switching

mac shells There are many kinds of shells, and OS X can be viewed using cat /etc/shells, for example: OS X comes with zsh, Linux...

linux dig command and use examples

dig (domain information groper) is a flexible tool for interrogating DNS name servers.This article describes the use of dig and the meaning of the output....

AWK tutorial: awk group by count

When we are dealing with log files, we often need to count the number of times some keywords appear. For example, count the number of...

awk merge files base on the keyword

use the awk variables NR and FNR merge files base on the keywords. awk -F' ' 'NR==FNR{a[$1]=$2;}NR!=FNR{print $0, a[$1]}' test-4.txt test-5.txt...

awk custom function and examples

Here, you need to use the awk custom function to implement the abs function. awk 'function abs(x){return (x < 0) ? -x : x;} {print...

AWK tutorial: awk regex example

What Is Regex? Types of Regex:BRE and ERE. Awk using BRE regex Patterns, Special Characters; Awk using ERE regex Patterns, matches the start...