Saturday, 14 September 2013

Parsing simple text file and integrate content in bash script

Parsing simple text file and integrate content in bash script

I want to automatically parse a text file with a content like this:
car 12345 W
train 54321 D
To be integrated in a new bash file. The content after that should look
like that:
curl http://example.com/?vehicle=car&number=12345&period=W
curl http://example.com/?vehicle=train&number=54321&period=D
My problem is that I really don't now how to realize that or which program
to use, sed, awk, etc..
What do I have to do?

No comments:

Post a Comment