Difference between revisions of "HowToLinuxCommands"
From Lost In Wonderlands
(→Find) |
(→find and grep) |
||
Line 75: | Line 75: | ||
== How To == | == How To == | ||
− | === find and | + | ==== combining find and command using exec === |
+ | * tous les dossiers appelés target | ||
+ | find -name target -type d | ||
+ | * effacer tous les dossier nommé "target" executer un rm recursif, le dossier target est utilisé part maven entres autres | ||
+ | find -name target -type d -exec rm -r {} \; | ||
+ | |||
+ | * chercher une chaine searched_string_in_file dans les fichers *.cxx | ||
find . -type f -name "*.cxx" -exec grep "searched_string_in_file" {} \; | find . -type f -name "*.cxx" -exec grep "searched_string_in_file" {} \; |
Revision as of 14:12, 22 May 2019
How To Something
NeXT Steps
here everything has yet to be done !
coming soon :
Everything You Always Wanted to Know on git [seldom]... (But Were Afraid to Ask)
a collection of links of interest
See also
guides
Unix Shell
- working with file and directories
- Shell
- how to find things
useful commands
cd
cp
df
ls
ls ls -al ls -alf
ln
mv
mkdir
rm
touch
Find
grep
awk
sed
cat
less
vi
vim
ssh
scp
How To
How To
= combining find and command using exec
- tous les dossiers appelés target
find -name target -type d
- effacer tous les dossier nommé "target" executer un rm recursif, le dossier target est utilisé part maven entres autres
find -name target -type d -exec rm -r {} \;
- chercher une chaine searched_string_in_file dans les fichers *.cxx
find . -type f -name "*.cxx" -exec grep "searched_string_in_file" {} \;