Commened out hard links and fixed some bugs

This commit is contained in:
btmccrea committed 2023-01-14 16:44:25 -05:00
1 parent 628cffcbda
commit c89f61366c
2 files changed
+44 -22

No files matched your search

+7 -7
View File
@@ -4,8 +4,8 @@
while :
do
echo -e "What is the directory with the pdfs?"
#read PDFDIR
PDFDIR="/home/btmccrea/Downloads/pdfs"
read PDFDIR
#PDFDIR="/home/btmccrea/Downloads/pdfs"
if [ -d $PDFDIR ]
then
break
@@ -17,8 +17,8 @@ done
while :
do
echo -e "What is the output directory for the pdf's with missing addresses?"
#read OUTPUTFOLDER
OUTPUTFOLDER="/home/btmccrea/Downloads/output"
read OUTPUTFOLDER
#OUTPUTFOLDER="/home/btmccrea/Downloads/output"
if [ -d $OUTPUTFOLDER ]
then
break
@@ -49,9 +49,9 @@ do
pdftotext "$f" - > TEMP
#cat TEMP
#assigns the lines with relevant values to their variable
USER=$(sed -n '10p' TEMP)
ADDRESS1=$(sed -n '11p' TEMP)
ADDRESS2=$(sed -n '12p' TEMP)
USER=$(sed -n '12p' TEMP)
ADDRESS1=$(sed -n '13p' TEMP)
ADDRESS2=$(sed -n '14p' TEMP)
echo -e "User is $USER"
echo -e "Address is $ADDRESS1 $ADDRESS2"
if [ -z "$ADDRESS1" ]