Search Results

Search: Posts Made By: Andy Cook
10,762
Posted By Andy Cook
Not sure why the ,p honestly, but vgersh99 script
gave me what I needed. So I guess it must be because of the slash in the params?

Thanks for all your help everyone
10,762
Posted By Andy Cook
I understand single quotes aren't wanted...I have tried it both ways to see
if anything works. Here are 2 more ways I have done it without success.


sed -n "/${FILENAME}/,/${FILENAME2}/,p"

and

sed -n "/$FILENAME/,/$FILENAME2/,p"


I get this error
First RE may...
10,762
Posted By Andy Cook
Here is the code I am using
FILENAME="/sybase_dumps/NXB_FDA_BACKUP/physdumps/reload_script_test20061130115518.dmp"
FILENAME2="/sybase_dumps/NXB_FDA_BACKUP/physdumps/reload_script_test20061201095324.dmp"

sed -n...
10,762
Posted By Andy Cook
I have tried the suggestions you guys gave and it...
I have tried the suggestions you guys gave and it looks like they are close but not quite right. If I put them in double quotes it says its garbled. It does recognize the params but just can't...
10,762
Posted By Andy Cook
Ok...I figured out the only problem with the code
is that it can't read the $Param passed in. When I put some text instead of the param it does it fine. One problem I have is the param will have slashes in it (the param is a full path filename). ...
10,762
Posted By Andy Cook
sed & awk--get section of file based 2 params
I need to get a section of a file based on 2 params. I want the part of the file between param 1 & 2. I have tried a bunch of ways and just can't seem to get it right. Can someone please help me...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 01:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy