Skip to content

Instantly share code, notes, and snippets.

View katerina7479's full-sized avatar

Katerina Hanson katerina7479

  • Kojo
  • Oakland, CA
View GitHub Profile
@katerina7479
katerina7479 / commands.sh
Created July 27, 2016 00:51
Command Lines to remember
# Delete files
find . -name \*.pyc -delete
find . -type f -iname \*.jpg -delete
# copy to remote with ssh key
scp -i ~/<path to ssh key> file_to_copy.txt user@machine.host.com:
# Take the nth line
awk '!(NR%<n>)' file_1 > file_2