This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

echo not working with grep

 
rahulJ james
Ranch Hand
Posts: 123
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have the 2 lines in a simple script. I dont get the echo working

abcd=`grep -n "^GS.*123456.*" /tmp/fileName | cut -d: -f1`
echo $abcd

I get the results when I run the same in the command prompt though not as a script.. Any advise
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Looks like the same question as this one
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic