Hello. I am new to unix shell scripting and am having some trouble with a program. I am using a lynx web request to dump information from a website. I am trying to display only certain lines containing information I want displayed so I am using | grep "xxx".
I will only display the problem code and if you need the rest to help me with my problem I will gladly post it.
I am able to retrieve the first lynx web request and display "EXP.DATE..*" but then the terminal seems to freeze and the only thing I can do is quit the whole program using CTRL + Z. I greatly appreciate any help and/or advice. Thank-you in advance.
I will only display the problem code and if you need the rest to help me with my problem I will gladly post it.
Code:
lynx [URL unfurl="true"]http://innopac.xxx.org:4500/PATRONAPI/$barcode[/URL] | grep -o "EXP.DATE..*"
lynx [URL unfurl="true"]http://innopac.xxx.org:4500/PATRONAPI/$barcode[/URL] | grep -o "P.TYPE..*"
lynx [URL unfurl="true"]http://innopac.xxx.org:4500/PATRONAPI/$barcode[/URL] | grep -o "PATRN.NAME..*"
lynx [URL unfurl="true"]http://innopac.xxx.org:4500/PATRONAPI/$barcode[/URL] | grep -o "TELEPHONE2..*"
lynx [URL unfurl="true"]http://innopac.xxx.org:4500/PATRONAPI/$barcode[/URL] | grep -o "EMAIL.ADDR..*"