Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. for file in $archiveFiles;
  2. #do echo ${file: -4};
  3. do
  4. if [[ $file == README.* ]]; then
  5. echo "skipping readme, not relevant"
  6. elif [[ $file == *.tar.gz ]]; then
  7. echo "this is a tar.gz, must extract"
  8. tarArchiveFiles=`tar -tzf $file`
  9. for tarArchiveFile in $tarArchiveFiles;
  10. do echo $tarArchiveFile
  11. done;
  12.  
  13. fi
  14. done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement