Search Results

Search: Posts Made By: a_ba
10,860
Posted By a_ba
i've checked every detail of the command and...
i've checked every detail of the command and specified it in the same manner..

the error this time is

sed: can't read s/cool/CEWL/g: No such file or directory
10,860
Posted By a_ba
I had not tried it earlier, but now i did.. ...
I had not tried it earlier, but now i did..

the error am finding is

sed: can't read s///g: No such file or directory
10,860
Posted By a_ba
sed substitution and shell variables
Hello!!

Am trying to substitute the value of a shell variable with the value of another shell variable. The values are obtained into the shell variables through some other processing.
for ex.
...
1,678
Posted By a_ba
merge lines within a file that start with a similar pattern
Hello! i have a text file.. which contains the data as follows
i want to merge the declarations lines pertaining to one datatype in to a single line as follows
i've searched the forum for help.....
35,206
Posted By a_ba
ok! i now get it! what you are saying is exactly...
ok! i now get it! what you are saying is exactly correct!

For the line numbers as in the example given by me.. the slash is not required and for matching the patterns it is required (helped me in...
35,206
Posted By a_ba
hey! ctsgnb None of the modified above...
hey! ctsgnb
None of the modified above suggestions worked for me..
however, the earlier solution suggested by you.. i.e

sed "/$a/,/$b/!d" input_file > new_file


worked perfectly for me....
35,206
Posted By a_ba
How to use sed to copy specific lines from a file using shell variables?
hello!
I am trying to use sed to copy specific set of lines from a file for which the starting and ending line numbers of the lines to be copied are stored in shell variables. How can i copy those...
Showing results 1 to 7 of 7

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