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 :: full path with linux find 
Shell :: how to compare differences between two files in linux 
Shell :: create batch file to delete folders and subfolders 
Shell :: run command on terminal startup 
Shell :: YAML - Basic Cheatsheet 
Shell :: awk line range 
Shell :: install composer per project in multiple php version 
Shell :: how to run bash scripts from local machine to remote linux machine 
Shell :: Scale fedora desktop size up 
Shell :: bash run until success or timeout 
Shell :: get all installed application in windiws in C# 
Shell :: crontab syntax 
Shell :: PrestaShop installation needs to write critical files in the folder var/cache 
Shell :: ubuntu install kde partition manager 
Shell :: how to sort in grep in second column in /etc/passwd 
Shell :: got push SSH 
Shell :: copy everything in a directory linux 
Shell :: pipe multi-line string into file 
Shell :: what is linux 
Shell :: cant install pyscopg2 win? 
Shell :: bash get first number from string 
Shell :: -windows run script on program close 
Shell :: nvcc issue in jetson nano 
Shell :: android emulator for ubuntu 
Shell :: macos homebrew unattended cask installs 
Shell :: search for process in top 
Shell :: bash array and for loop 
Shell :: how to create a github repo 
Shell :: WSL2 .wslconfig Windows 
Shell :: comment creer un fichier en linux 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =