2.Linux
1) Examples
grep -v -c pattern FILES #(-v exclude -c count lines)
grep -l pattern FILES #(-l: list of the files)head -100 FILE
tail -100 FILE
cut -f 2 FILE #(-f: field)
cut -d ; -f 2 FILE #(-d change delimiter)
cat FILES* > NEW_FILE
paste FILES* > NEW_FILEecho john temp | rev #(output pmet nhoj)
tac #(reverse by lines)ls * |wc -w or wc -l #(count the number of files)2) Tips
(1) bashrc and .bash_profile
(2) nohup, screen and qsub
(3) secure your files
(4) Setup ssh key
(5) System
3) More Readings and Practices
4) Homework
5) Video
5a) Linux
Last updated