11

Bash, string comparison

view full story
linux-howto

http://ubuntuforums.org – My end goal is to read some weather information from a text or xml file, extract the temperature and write it on an image file using convert. I am trying to take it one step at a time learn a little and improve on my bash scrip. Convert works fine calling it from a script and creating an image with a variable's text on it. Now I want to read from a text file and this is where I am running into problems. Every tutorial on the Internet gives similar examples that fail. My text file is simple sample.txt contains: Code: Line one Line 2 Line Three Line four Line 5 Line SIX Code: #!/ (Hardware)