The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-17-2008
cooldude cooldude is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 44
I'm not seeing that.
Here are the contents of temp.txt:
sed -n '/08465696_1215781522540/,/70225547_1215781581748/p' test1.txt

Here is my script, test:

Code:
#!/bin/ksh

sedcmd=$(grep sed temp.txt)

echo $sedcmd

And I get the contents of the file in $sedcmd:

Code:
$./test
sed -n '/08465696_1215781522540/,/70225547_1215781581748/p' test1.txt

Are you sure that temp.txt has the right contents?