Search Results

Search: Posts Made By: JiaHong
1,822
Posted By JiaHong
A simpler method is sed '3 s/ union all/;/'...
A simpler method is sed '3 s/ union all/;/' <filename> where 3 is the line number. This is useful if you know which line to target at, while the grep command will search for all the lines containing...
1,822
Posted By JiaHong
Hi antosr7, This may be one of the methods: ...
Hi antosr7,

This may be one of the methods:

grep "test3" <input_filename> | sed "s/ union all/;/"

where the test3 is the keyword to extract the line and the <filename> is where the three...
Showing results 1 to 2 of 2

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