Command Combination
Conversion of number system in Linux shell
Using double brackets with echo, print, printf
echo $((2#00000001)) = 1
echo $((16#AB)) = 171
echo $((8#70) = 56
print $((8#70))
printf “%d\n” $((8#70)). %d = decimalUsing obase,ibase and bc
Character in hex must be uppercase
echo “obase=10; ibase=16; AB” | bc
echo “obase=2; ibase=16; F” | bcCompare files
Comm
Diff
Some Options
Vimdiff
Combination usage of sed, awk, cut, paste, cat, echo, grep
Combine each 2nd line to the line before it
Original data
Using AWK
Using Sed
Using Paste
Extract 1 line and all indented lines below it
Original data
Using AWK
Print range of character from each line
Check IP address of domain and print out domain, ip address or domain, not found
Testing SMTP, SMTPS, HTTP, HTTPS using CLI commands
SMTP
SMTPS
Using SSL
Using TLS
HTTP
HTTPS
Reference
Last updated