Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash perform operation on all files in directory

# Basic syntax:
find . -maxdepth 1 -type f -exec your_command {} ;
# Where:
#	- . specifies the current directory (this can be changed to any
#		directory)
#	- -maxdepth 1 prevents find from searching directories recursively
#	- -type f specifies that the operation should only be performed on
#		files (not directories)
#	- -exec runs your_command on all files that are found
Comment

PREVIOUS NEXT
Code Example
Shell :: Install OpenERP on Mac OS X 10.8 odoo 
Shell :: how to check if matpot is installed 
Shell :: how to follow a file url in vim 
Shell :: flake8 only 
Shell :: vs code toggle soft warap 
Shell :: how to update discord ubuntu 
Shell :: git host key verification failed 
Shell :: git reset to origin/master 
Shell :: What is the command to open a file from within Emacs? 
Shell :: pip install requirements.txt without cache 
Shell :: remove global configuration in git 
Shell :: bash dev/null 
Shell :: linux command to check memory usage in percentage 
Shell :: install angular in ubuntu 
Shell :: how to shutdown port in windows 
Shell :: env var linux to uppercase lowercase 
Shell :: bash return length of every nth row 
Shell :: command not found: gradlew.bat 
Shell :: bash: zipalign: command not found 
Shell :: install package from conda forge not found in conda 
Shell :: batch sleep 
Shell :: verify elementary os iso image 
Shell :: linux extract zip with password 
Shell :: bash swap two columns in a file 
Shell :: systemd version check 
Shell :: gdown Access denied with the following error 
Shell :: git ammend commit 
Shell :: install tor browser on kali linux 
Shell :: untar tar.gz 
Shell :: install jq windows 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =