Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash find touch

find . -type f -exec touch {} +
Comment

bash find touch

-exec ... ; will run one item after another. 
So if you have three files, the exec line will run three times.

-exec ... {} + is for commands that can take more than one file at a time 
(eg cat, stat, ls). 
The files found by find are chained together like an xargs command. 
This means less forking out and for small operations, can mean a substantial speedup.
Comment

PREVIOUS NEXT
Code Example
Shell :: set sublime text as git editor mac 
Shell :: importerror no module named numpy ubuntu 
Shell :: git initial commit 
Shell :: delete whole line in vi 
Shell :: shell thousand comma in number 
Shell :: apache2 default url 
Shell :: download all bitbucket repositories 
Shell :: bison install in kali linux 
Shell :: ruby on rails install 
Shell :: git checkout -q error: you need to resolve your current index first 
Shell :: /bin/bash: ./darknet: No such file or directory 
Shell :: UnicodeDecodeError 
Shell :: Start Apache service FreeBSD 
Shell :: ubuntu wifi drivers realtek 
Shell :: how to delete github repo 
Shell :: git passphrase remember 
Shell :: close adb server 
Shell :: sed commands 
Shell :: tricks to do with ubuntu 
Shell :: xargs curl url 
Shell :: force ssh to use password 
Shell :: ansible playbook to set passwordless sudo 
Shell :: creating a branch from a commit 
Shell :: delete a branch in git command 
Shell :: How to createe git remote branch 
Shell :: remove commit from PR 
Shell :: sudo: gem: command not found 
Shell :: find the index of a substring 
Shell :: git hub new repo 
Shell :: ubuntu path of saving screenshots 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =