Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash change variable in while loop

i=1
while read x; do
   i=$(($i + 1))
   echo $i
done <<<$(find tmp -type f)
echo $i
Comment

PREVIOUS NEXT
Code Example
Shell :: Pipe script to a remote server 
Shell :: batch text 
Shell :: create a index of all files in linux 
Shell :: kylekatarnls/update-helper does not exist and could not be created 
Shell :: install pandas xlrd 
Shell :: how to auto cd into git repo 
Shell :: Add Gitbash branch name to powershell 
Shell :: agregar sudoers a user centos 7 
Shell :: ubuntu install meslo font 
Shell :: power shell scribt to copy files 
Shell :: ERROR: for build_env Cannot create container for service build_env: create .: volume name is too short, names should be at least two alphanumeric characters 
Shell :: Set email address for LFD alerts 
Shell :: winrar script for appending date to archive 
Shell :: homebrew gnu screen 
Shell :: como descargar flask en ubuntu 21.04 
Shell :: bnmbmbmmbjhgnbhgmv nbhgmvnb 
Shell :: docker laravel configuration ubuntu 
Shell :: shell get given line 
Shell :: gh config ssh protocol 
Shell :: the folder cannot be copied because you do not have permissions to create it in the destination 
Shell :: ipython config location 
Shell :: linssid linux mint 20 
Shell :: powershell script clear cach at end 
Shell :: qgis linux debian download 
Shell :: git collab 1 
Shell :: Delete fist line in a file 
Shell :: virtual machine linux error several modules to compile 
Shell :: create a new repository 
Shell :: generate gpg key 
Shell :: power shell grep 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =