Article 4VW8D Tweak to sed/bash script needed

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
txt.gifsample-data2.txt (331 Bytes)
txt.gifbashy.sh.txt (784 Bytes)
latest?d=yIl2AUoC8zA latest?i=BZNpEip50Mg:nGdLxeGbygQ:F7zBnMy latest?i=BZNpEip50Mg:nGdLxeGbygQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=BZNpEip50Mg:nGdLxeGbygQ:gIN9vFwBZNpEip50Mg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments