Search Results

Search: Posts Made By: devanathann
30,021
Posted By devanathann
Thanks to everyone for your replies. I guess I...
Thanks to everyone for your replies. I guess I owe a better explanation on what I'm trying to do.

I have a file that has a header, trailer and some detail records.
e.g. file1.txt
...
30,021
Posted By devanathann
Passing UNIX commands inside sed
Hi,

In sed, is it possible to match patterns by directly executing UNIX commands inside sed?

For e.g. -
sed "s/`cat file.txt | cut -d "|" -f2`/replace_string"

Will the above command work?...
Showing results 1 to 2 of 2

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