Update file Run.sh

This commit is contained in:
TRBC Developer committed 2024-01-24 13:24:28 +00:00
1 parent ae55276298
commit 03b5b5d7df
1 file changed
+8 -9
+8 -9
View File
@@ -64,16 +64,15 @@ do
echo "Copying file to the folder called Addresses"
fi
done
echo "All done sorting!" You can find all the Files in $OUTPUTFOLDER!"
echo "All done sorting! You can find all the Files in $OUTPUTFOLDER!"
echo
# echo
# read -r -p "Do you want to continue? [Y/n]" response
# response=${response,,} # tolower
# if [[ $response =~ ^(y| ) ]] || [[ -z $response ]]; then
cd $PDFDIR
for FILENAME in $PDFDIR/*
do
echo
read -r -p "Do you want to continue? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(y| ) ]] || [[ -z $response ]]; then
cd $PDFDIR
for FILENAME in $PDFDIR/*
do
echo $FILENAME
#The next Line assigns the number of pages to the value LOCATION to be used for were the file goes
LOCATION=$(pdfinfo "$FILENAME" | grep Pages: | awk '{print $2}')