Files
eoy-pdf-sortandmerge/Removing_Files.sh
T

19 lines
466 B
Bash

#!/bin/bash
#import list from csv
echo "Please clear all feilds except for the file name feild from the csv."
while IFS='\t' read (awk -F, 'NR > 1' { print $1})
#cd to and then remove files
#Get the folder with the pdf documents in it.
while :
do
echo -e "What is the directory with the pdfs?"
read PDFDIR
#PDFDIR=/home/btmccrea/Downloads/pdfs/
if [ -d $PDFDIR ]; then
break
else
echo -e "Directory not found."
fi
done