My cheat sheet for commands I have trouble remembering.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Joshua Pickard f02abe1157 Update 'README.md' 4 years ago
README.md Update 'README.md' 4 years ago

README.md

cheat-sheet

My cheat sheet for commands I have trouble remembering.

Find and copy files by extension recursively

find . -name '*.pdf' -exec cp -r {} /home/jpickard/pdffiles \;

7-Zip compression (p7zip)

7z a archivename.7z thingtobearchived

Recursively unzip

while [ "`find . -type f -name '*.zip' | wc -l`" -gt 0 ]; do find -type f -name "*.zip" -exec unzip -- '{}' \; -exec rm -- '{}' \;; done