Search Results

Search: Posts Made By: Andy82
7,449
Posted By Andy82
Think there is a miss understanding. It is...
Think there is a miss understanding.

It is not removing the text that says do not remove. It is leaving it untouched.

Can multiple ranges be passed into sed? I know there is the -e option but...
7,449
Posted By Andy82
That thread is from a different user with a...
That thread is from a different user with a slightly different problem.

The files that I will be processing will not be that large.
7,449
Posted By Andy82
Is this post for me? I have to do multiple...
Is this post for me?

I have to do multiple passes for each different value of the 1st String
5,645
Posted By Andy82
I think the sed code I am using could help you....
I think the sed code I am using could help you. Provided you know the size of each block of text that you are extracting.

You could try.

sed -n '/$Var1/,/$Var2/p' < intputfile | head...
7,449
Posted By Andy82
In the example above the array would have 2...
In the example above the array would have 2 elements.
1st = Remove 1
2nd = Remove 2

These values come from another file that identifies the String 1 records that need to be removed. So on the...
7,449
Posted By Andy82
Thanks for the feedback. The command is nearly...
Thanks for the feedback. The command is nearly working. I am still having an issue getting sed to stop searching when it finds the second string in the range.

What it should do is.
1. Search...
7,449
Posted By Andy82
Remove a range of lines from a file using sed
Hi

I am having some issue editing a file in sed.

What I want to do is, in a loop pass a variable to a sed command. Sed should then search a file for a line that matches that variable, then...
20,883
Posted By Andy82
Passing a variable from a child script back to the parent
Hi

I have written a script using ftp to get files from one server and copy them to 2 dirrerent servers. I wish to call this script from a parent script that will check the number of files copied...
Showing results 1 to 8 of 8

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