Search Results

Search: Posts Made By: sanikv
70,174
Posted By sanikv
Sed command
Hi Perderabo,

My understanding was the comand A behaves as same as Command B, and the only difference is that the character "\" allow's the command to be spanned accross multiple lines.

Command...
70,174
Posted By sanikv
Thanks Perderabo
Hi Perderabo,

Thanks !!! it helped.

$ cat aa
String1

$ cat test
#!/bin/ksh
sed 's/String1/string0\
string1\
String2/' < aa

$ ./test
string0
string1
String2

Thanks a lot for the...
70,174
Posted By sanikv
Hi vgersh99, thanks for your response, but...
Hi vgersh99,

thanks for your response, but it did'nt help

$ cat aa
String1

$ cat x
#!/bin/ksh
sed -e "s/String1/String0`/bin/echo`String1`/bin/echo`String2/" < aa

$ ./x...
70,174
Posted By sanikv
Hi vgersh99 & zazzybob , Thanks for the...
Hi vgersh99 & zazzybob ,

Thanks for the suggestions.

printf helps to resolve the issue in ksh.

But i have issues with other commands also, so i suspect that there is something to do with the...
70,174
Posted By sanikv
Newline character not working for ksh
Newline character "\n" not working for ksh in linux AS 3.0

Command :

$echo "Hi\nHi"
$Hi\nHi
$

Expected output :
$echo "Hi\nHi"
Hi
Hi
$

Can some help me on this

Thanks in...
Showing results 1 to 5 of 5

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