Advertisement
asanchez75

Linux/strings/sed/lsb_release/find

Sep 26th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. lsb_release -d
  2. find . -type d -name overlay
  3. find . -maxdepth 1 ! -name .gitignore -print0 | xargs -0 -I {} rm -Rf {}
  4. find . -maxdepth 1 ! -name .svn -print0 | xargs -0 rm -Rf
  5.  
  6. kill $(ps aux | grep '[s]leep' | awk '{print $2}')
  7.  
  8. http://www.cyberciti.biz/faq/exclude-certain-files-when-creating-a-tarball-using-tar-command/
  9.  
  10. $ tar -zcvf /tmp/mybackup.tar.gz -X exclude.txt /home/me
  11.  
  12. exclude.txt
  13. abc
  14. xyz
  15. *.bak
  16.  
  17. /////////////////////////////
  18.  
  19. http://linuxcommando.blogspot.com/2008/03/using-sed-to-extract-lines-in-text-file.html
  20.  
  21. ////////////////////////////////////////////
  22. mostrar permisos en octal
  23.  
  24. http://www.linuxforums.org/forum/newbie/21722-command-shows-me-permissions-file-octal.html
  25. ls -l | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf("%0o ",k);print}'
  26.  
  27.  
  28. http://superuser.com/questions/301017/using-sass-on-my-debian-server
  29.  
  30. http://www.brunolinux.com/02-The_Terminal/Find_and%20Replace_with_Sed.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement