====================================================================================
Shell cut
Syntax: cut –c m-n file
Note: Every line display from m to n
(m-: from n to end; -n: from begin to n)
Syntax: cut –f m-n file
Note: Every line display from m tab to n tab
(m-: from m tab to end; -n: from begin to n tab)
Syntax: cut –d ‘seperator’ –f m-n file
Note: Every line display from m to n with seperator
(m-: from n to end; -n: from begin to n)
Shell cut
Syntax: cut –c m-n file
Note: Every line display from m to n
(m-: from n to end; -n: from begin to n)
Syntax: cut –f m-n file
Note: Every line display from m tab to n tab
(m-: from m tab to end; -n: from begin to n tab)
Syntax: cut –d ‘seperator’ –f m-n file
Note: Every line display from m to n with seperator
(m-: from n to end; -n: from begin to n)
====================================================================================
shell tee:
cat file | tee –a file1 file2
Note: -a Append to file1 and file2, moreover don’t cover original file
====================================================================================