daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top