Ricerca di un fileinizia dalla rootfind . -name "*.xxx" -print da una cartella find path_cartella -name "*.xxx" -print
Ricerca dentro un filegrep "cosaricercare" /directorydovecercareThe following is a modification of the above example that uses the star wildcard (i.e., an asterisk), which represents any character or sequence of characters, to search all text files in the current directory
grep 'Linux is' *grep -r .... se la si uole ricorsivaYou can force grep to ignore word case i.e match boo, Boo, BOO and all other combination with the -i option:
$ grep -i "boo" /etc/passwd
Nessun commento:
Posta un commento