Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash loop over files in file

# Basic syntax:
for filename in `cat file_of_filenames.txt`; do
	echo $filename
done

# This iterates through each of the filenames listed in the 
#	file_of_filenames.txt
# Note, the filenames should be separated by spaces or new-lines
Comment

bash loop over files with extension

for i in *.java; do
    [ -f "$i" ] || break
    ...
done
Comment

PREVIOUS NEXT
Code Example
Shell :: generate table of content in readme.md 
Shell :: copy paste file terminal 
Shell :: git stash bitbucket 
Shell :: move all subfolders to parent folder linux 
Shell :: github push first time 
Shell :: create a directory 
Shell :: rebase my fork branch 
Shell :: install node_modules folder 
Shell :: how to sudo pip permission denied 
Shell :: helm upgrade repos 
Shell :: debian mark package as manually installed 
Shell :: pdf compressor linux 
Shell :: sed insert multiple lines after match 
Shell :: gnu octave 
Shell :: ? For which GitHub repository would you like to set up a GitHub workflow? (format: user/repository) 
Shell :: letsencrypt error 
Shell :: statsmodels logit function 
Shell :: how to use curl command in ubuntu 
Shell :: close vim 
Shell :: batch script comment 
Shell :: command to make shell variable as an environment variable 
Shell :: bash find and replace all files with specifc name with another file 
Shell :: how to remove package files in linux 
Shell :: filter jq 
Shell :: add gist file to dev.to 
Shell :: sudo -s su root in one line 
Shell :: bash mkdir multiple 
Shell :: putting remote access to rpi zero 
Shell :: sudo mn 
Shell :: install external windows package 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =