Search Results

Search: Posts Made By: mhdmehraj
5,140
Posted By mhdmehraj
sed command to overwrite
Hi,

i have a file ver.sql with the following contents , Here i need to put a in the next line of END statment .
So iam doing the following

D:\>type ver.sql
begin...
11,949
Posted By mhdmehraj
i want to append it to next line (nont on the...
i want to append it to next line (nont on the same line)
11,949
Posted By mhdmehraj
iam using windows batch scripting, In that we are...
iam using windows batch scripting, In that we are using sed for windows.

How to do it in windows
11,949
Posted By mhdmehraj
want to append the data in one file to the another
Hi ,

i have two log files, i need to combine this as a one log file.

i need to do this by SED ,

test1.log

sadadadaadfsaf

test2.log

adadadadadada


i need this in a...
2,008
Posted By mhdmehraj
Hi .. Its gud , But we are using it on...
Hi .. Its gud ,

But we are using it on windows , So we have only sed utility....
2,008
Posted By mhdmehraj
hi , thankz for ur reply .. But i need to do...
hi , thankz for ur reply ..
But i need to do the same with sed .
2,008
Posted By mhdmehraj
delete using sed
hi ,
i need to delete all the lines in a file except a line which starts with the letter SP
1,689
Posted By mhdmehraj
Hi , here iam useing sed on windows ... ...
Hi ,

here iam useing sed on windows ...


so for single quotes i replace with double quotes

D:\bfx_db>sed "s/\"//g" d:\first.sql
DEFINE A= .[FALSE]


but this change is not done in the...
1,689
Posted By mhdmehraj
repace with sed
HI ,

how to replace double quotes i.e(") to ! using sed

Or

i need to remove all the double quotes occurances in a file
1,644
Posted By mhdmehraj
we already using sed on windows..
we already using sed on windows..
1,644
Posted By mhdmehraj
Whats wrong With This Code
Hi ,
iam new with sed command


D:\bfx_db>sed -ne '/^SP2-[0-9]*:/S/^\<.*\[\>\<.*\>\<\].*\>$/\2\p' reg.sql >>D:\out.log

The filename, directory name, or volume label syntax is incorrect.

...
1,839
Posted By mhdmehraj
D:\bfx_db>sed -n '/\]"$/s/.*\[\(.*\)\].*/\1/p'...
D:\bfx_db>sed -n '/\]"$/s/.*\[\(.*\)\].*/\1/p' test.sql > testout.sql
sed: -e expression #1, char 1: Unknown command: `''

We are Using sed on windows
1,839
Posted By mhdmehraj
This is not working
This is not working
1,839
Posted By mhdmehraj
Extracting with sed
Hi all,

i have a log file which consits of the below text
SQL> @.[%OSAUTH_PREFIX_DOMAIN%]
SP2-0310: unable to open file ".[FALSE]"
SQL> spool off

From this file i need to extract the text...
1,512
Posted By mhdmehraj
Hi , I need that slash to be printed in...
Hi ,


I need that slash to be printed in the next line whenever it founds a semicolon
1,512
Posted By mhdmehraj
Using Sed
Hi ,

i need to insert a backslash (/) after all the occurances of semi colon (;) in a file .

How to do it using Sed command
2,344
Posted By mhdmehraj
Can anybody help me out please
Can anybody help me out please
2,344
Posted By mhdmehraj
Re
Hi , I have uploded the file , which iam using..
Now i need to format this file.

already iam doing some formats in that one ..

like this


sed "s/REM //" t1.txt | sed "/rows/d" | sed...
2,344
Posted By mhdmehraj
No , It Dint Works
No , It Dint Works
2,344
Posted By mhdmehraj
sed command
Hi ,

i have a file with pl/sql blocks,

i have end; in the files, But i need it with a slash too (e.g) end; / .

end;-----> end; /

How can i do this with sed command
Showing results 1 to 20 of 20

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