Skip to content

Instantly share code, notes, and snippets.

@ZiTAL
Created May 31, 2019 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZiTAL/5d46021654dac3721eb6ce410afa6fdd to your computer and use it in GitHub Desktop.
Save ZiTAL/5d46021654dac3721eb6ce410afa6fdd to your computer and use it in GitHub Desktop.
bash: loop command from list
#!/bin/bash
ls -1 | grep 16599 > 16599.txt
#!/bin/bash
while read p; do
# echo "cp /net/localhost/biltegia/utils/ftp_server/users/igoerak/ingested/$p /net/localhost/biltegia/web-server/photos/iban"
cp /net/localhost/biltegia/utils/ftp_server/users/igoerak/ingested/$p /net/localhost/biltegia/web-server/photos/iban
done < 16599.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment