Search Results

Search: Posts Made By: chpsam
5,625
Posted By hanson44
Seems to work here, and I'm pretty sure those are...
Seems to work here, and I'm pretty sure those are standard sed commands.

$ cat InputFile.txt
before
Parameters "CParameters"
after

$ cat TextToReplace.txt
aaa
bbb

$ sed -e '/Parameters...
5,625
Posted By guruprasadpr
Something like this: File 1: $ cat f1 ...
Something like this:

File 1:
$ cat f1
abc
def
ghi

Replacement content file:
$ cat f2
rep1
rep2


To replace the pattern 'def' in f1 with the file content of f2:

$ sed -e '/def/r...
5,625
Posted By hanson44
sed -e '/Parameters "CParameters"/r...
sed -e '/Parameters "CParameters"/r TextToReplace.txt' -e "//d" InputFile.txt
6,153
Posted By elixir_sinari
msg="\'01\',\'02\',\'03\',\'04\',\'05\',\'06\'" ...
msg="\'01\',\'02\',\'03\',\'04\',\'05\',\'06\'"
echo "$msg"|sed "s:\\\'::g;s/^/'/;s/$/'/"
producing
'01,02,03,04,05,06'
6,153
Posted By user8
This works for me in bash: echo...
This works for me in bash: echo "'"${msg//\'/}"'"
6,153
Posted By ravisingh
chpsam, to your output you can append ' at the...
chpsam, to your output you can append ' at the beginning by piping to sed "s/^/'/" and to append at the end by piping the previous output to sed "s/$/'/".
please check if it works.
Forum: HP-UX 06-27-2012
35,581
Posted By methyl
Make sure that the SMTP relay server itself knows...
Make sure that the SMTP relay server itself knows about you and can do a reverse DNS lookup on your IP address.



The SMTP relay name would normally be a fully qualified host name such that the...
Forum: HP-UX 06-27-2012
35,581
Posted By vbe
while talking to [127.0.0.1]: >>> DATA <<<...
while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.1.1 <TestId@TestSMTP.com>... User unknown
Suggests that in your /etc/mail/sendmail.cf, your relay is wrong: It should be your mail server and so...
Showing results 1 to 8 of 8

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