Tweak to sed/bash script needed
by bulgin from LinuxQuestions.org on (#4VW8D)
Hello, see attached sample-data2.txt and bashy.sh script.
bashy.sh worked with other but very similar data to the attached sample-data.txt to enumerate the gene data enclosed in parenthesis.
Original data as $1:
./bashy.sh "Gene Code (4A - 4F) D2 fragment, D74F"
The data I modified for use with this script to enumerate addresses as $1:
./script.sh "1824 3rd st (1A - 1F) Brooklyn NY, 12550-4456"
and it worked!
However, now I need to:
rather than use $1 to bring in only one entry, I would like to bring in a txt with entries, such as sample-data2.txt
That's where I'm stuck.
(rename bashy.sh.txt to bashy.sh)
Attached Files


bashy.sh worked with other but very similar data to the attached sample-data.txt to enumerate the gene data enclosed in parenthesis.
Original data as $1:
./bashy.sh "Gene Code (4A - 4F) D2 fragment, D74F"
The data I modified for use with this script to enumerate addresses as $1:
./script.sh "1824 3rd st (1A - 1F) Brooklyn NY, 12550-4456"
and it worked!
However, now I need to:
rather than use $1 to bring in only one entry, I would like to bring in a txt with entries, such as sample-data2.txt
That's where I'm stuck.
(rename bashy.sh.txt to bashy.sh)
Attached Files
![]() | sample-data2.txt (331 Bytes) |
![]() | bashy.sh.txt (784 Bytes) |
