Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/bin/bash
  2. directory_to_saved_files="/files/to/download/"
  3. while read p; do
  4. p=${p//$'\n'/}
  5. p=${p//$'\r'/}
  6. full_path_bsp="$directory_to_saved_files$p.bsp.bz2"
  7. if [ -f $full_path_bsp ]; then
  8. echo "$p" >> maps_file.txt
  9. fi
  10. done < list_of_maps.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement