Salta al contenuto

Twopenguins.it

Here is what i forgot.

Tag: find

find: remove directories from output

To remove the full path to your find results add:

-exec basename {} \;

to your search:

bash-4.1$ find . -type f -name "*.pdf" -exec basename {} \;
FreeBSD_Portability_With_VMware_BSD_04_2011.pdf
Network_Security_Hakin9_02_2011.pdf

Autore simplexPubblicato il aprile 9, 2011aprile 6, 2011Categorie BSD, LinuxTag findLascia un commento su find: remove directories from output

Find and exec

An example:

find . -name "*.zip" -type f -exec unzip {} \;

Autore simplexPubblicato il marzo 14, 2011Categorie LinuxTag findLascia un commento su Find and exec

Categorie

  • BSD
  • Hacks
  • Homebrewing
  • Interwebz
  • Linux
  • Other
  • Slackware

Tag

  • amarillo
  • apa
  • apache
  • audio
  • backup
  • bash
  • bob
  • cascade
  • cgi
  • church of cubgenius
  • cyanogenmod
  • dryhop
  • find
  • freebsd
  • freenas
  • git
  • google
  • google chrome
  • google chrome os
  • help
  • hotkeys
  • hp
  • italiano
  • mailgraph
  • microsoft
  • mldonkey
  • monitoring
  • mysql
  • notebook
  • patrick volkerding
  • postfix
  • prince of persia
  • rsync
  • Samsung Galaxy S4
  • shell
  • simcoe
  • Slackware
  • squirrelmail
  • ssh
  • ssl
  • sudo
  • symon
  • symux
  • syweb
  • virtualhosts
Twopenguins.it Proudly powered by WordPress
Utilizziamo i cookie per essere sicuri che tu possa avere la migliore esperienza sul nostro sito. Se continui ad utilizzare questo sito noi assumiamo che tu ne sia felice.Ok Read More
Privacy & Cookies Policy