Displaying 5 results from an estimated 5 matches for "enator".
Did you mean:
senator
2015 Aug 25
5
sed question
I am trying to use sed to change a value in a pipe.
------------------- This is the two line script
CHANGE="1234"
cat my_file.txt | sed 's/CANCELID/$CHANGE/' > cancel.txt
-------------------
and the my_file.txt has:
<v1:notificationId>CANCELID</v1:notificationId>
it gets changed to $CHANGE instead of the actual value 1234 .
I tried putting a \ in front
2015 Aug 25
0
sed question
On 08/25/2015 10:50 AM, Jerry Geis wrote:
> cat my_file.txt | sed 's/CANCELID/$CHANGE/' > cancel.txt
sed doesn't perform environment variable expansion. That is to say that
when you instruct sed to substitute "$CHANGE" for "CANCELID", "$CHANGE"
is a literal string that will be substituted.
bash, on the other hand, does perform environment
2015 Aug 25
1
sed question
On 08/25/2015 11:02 AM, Gordon Messmer wrote:
>
> Additionally, you can avoid using "cat" to make the script more
> efficient. You'll start fewer processes, and complete more quickly. cat
> is almost never needed unless you actually need to con"cat"enate
> multiple files.
I sometimes like to use cat purely for stylistic reasons :
cat file.txt |\
sed
2008 Oct 21
3
mail_executable's process environment
Hello,
I recently had to get Dovecot 1.1.4 to write to a "pop3/imap-before-
smtp" db such that my MTA could permit relay after a successful
authentication with Dovecot.
The 'pop3' and 'imap' processes are executed only after a successful
auth, so replacing them with wrappers which write to the db seemed the
natural choice. Lo and behold, someone thought of
1998 Aug 11
23
Printing problems
I cannot print to my Samba-printer from Win NT. Printing works fine under
X-windows. What could be wrong?
//Michael