Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- directory_to_saved_files="/files/to/download/"
- while read p; do
- p=${p//$'\n'/}
- p=${p//$'\r'/}
- full_path_bsp="$directory_to_saved_files$p.bsp.bz2"
- if [ -f $full_path_bsp ]; then
- echo "$p" >> maps_file.txt
- fi
- done < list_of_maps.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement