Created
September 19, 2019 08:22
-
-
Save imixtron/691d4a7d2211b7f9d2b7a8365caac759 to your computer and use it in GitHub Desktop.
bash loop array and run command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array=( chg8p p9dzh ); \ | |
loc="/bin/"; \ | |
for i in "${array[@]}"; \ | |
do echo $i; \ | |
mv $i $loc | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment