Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash dynamic variable name

${!var}	#Just use to use reference value inside another variable ;)
Comment

bash dynamic varibale

#!/bin/bash
for (( i=1; i<=5; i++ ))
do  
   echo yourfile.$((i+70)).txt file_$i
done
Comment

PREVIOUS NEXT
Code Example
Shell :: emulator android 
Shell :: move files terminal 
Shell :: add vimplug 
Shell :: re-entering top level after c stack overflow 
Shell :: bash provide path to same dir as executable 
Shell :: softwareupdate mac bash 
Shell :: Push an existing folder 
Shell :: bash forward argv to command 
Shell :: bash script get value from piped input 
Shell :: got push SSH 
Shell :: linux install toilet 
Shell :: infinite-react-carousel code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 
Shell :: gitconfig includeif example 
Shell :: mariadb references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them 
Shell :: how to install 
Shell :: add nvm 
Shell :: install tailwind using yarn 
Shell :: -windows run script on program close 
Shell :: checkout a pr locally 
Shell :: brew on windows 
Shell :: new repository 
Shell :: remove specific image from docker 
Shell :: How do I create a next application 
Shell :: create a new repository on the command line github 
Shell :: anaconda install crispy-forms 
Shell :: push a new local repository to github. 
Shell :: change folder permission show git 
Shell :: how to convert 30fps to 60fps using ffmpeg 
Shell :: install jellyfin docker 
Shell :: bash increment variable in while loop 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =