Advertisement
badlogic

command line snippets

Oct 28th, 2016
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.59 KB | None | 0 0
  1. grep -r "<script" | grep -v src | awk -F: '{print $1}' | uniq
  2. 2014-07-23 06:24:31
  3. User: sucotronic
  4. Functions: awk grep
  5. Tags: PHP javascript
  6. Search files with js declarations inside
  7.  
  8.  
  9. find . -type d -print0 | while read -d $'\0' dir; do cd "$dir"; echo " process $dir"; find . -maxdepth 1 -name "*.ogg.mp3" -exec rename 's/.ogg.mp3/.mp3/' {} \; ; cd -; done
  10.  
  11. rename files in directories and sub directories
  12.  
  13.  
  14. wget -r -l1 -np -nd http://yoururl.com/yourfolder/
  15. download the contents of a remote folder in the current local folder
  16.  
  17.  
  18. Source http://www.commandlinefu.com/commands/tagged/532/php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement