Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.73 KB

File metadata and controls

47 lines (36 loc) · 1.73 KB

SED Cheatsheet

https://gist.github.com/un33k/1162378

https://www.thegeekstuff.com/2009/09/unix-sed-tutorial-printing-file-lines-using-address-and-patterns/ https://www.thegeekstuff.com/2009/09/unix-sed-tutorial-delete-file-lines-using-address-and-patterns/ https://www.thegeekstuff.com/2009/09/unix-sed-tutorial-replace-text-inside-a-file-using-substitute-command/

How To Write to a File Using SED

https://www.thegeekstuff.com/2009/10/unix-sed-tutorial-how-to-write-to-a-file-using-sed/

SED One Liner

https://catonmat.nt/sed-one-liners-explained-part-one https://catonmat.net/sed-one-liners-explained-part-two https://catonmat.net/sed-one-liners-explained-part-three

AWK One Liner

https://catonmat.net/awk-one-liners-explained-part-one https://www.thegeekstuff.com/2010/01/awk-introduction-tutorial-7-awk-print-examples/

Bash One Liners

Part I: Working with files

https://catonmat.net/bash-one-liners-explained-part-one

Part II: Working with strings

https://catonmat.net/bash-one-liners-explained-part-two

Part III: All about redirections

https://catonmat.net/bash-one-liners-explained-part-three

Part IV: Working with history

https://catonmat.net/bash-one-liners-explained-part-four

Part V: Navigating around

https://catonmat.net/bash-one-liners-explained-part-five

Rsync

# rsync hidden files from remote host
rsync -avzP 10.78.203.183:/root/.[^.]* .

Best 15 Unix Command Line Tools

Stack Overflow

http://stackoverflow.com/questions/18135451/what-is-the-difference-between-var-var-and-var-in-the-bash-shell

https://www.git-tower.com/blog/command-line-cheat-sheet/