Miscellaneous short Note On Linux. Part-2

Pipe Command 
# Pipe is used to run two commands consecutively
# Pipe help to combine two or more command
Cat <file_name> | pg
Cat <file_name> | more
Cat <file_name> | less
Cat <file_name> | grep avcode
Cat <file_name> | grep –i a --- Find the word from <filename> which has a.

Sort Command 
# sort --- is used to shorting the content alphabetically
# sort –r ----- Reverse sorting
# sort –n ---- Sort numerically

# sort –f ---- Case insensitive sorting

0 comments :

Post a Comment