Search Results

Search: Posts Made By: andreirp
7,804
Posted By andreirp
thankss The command it works. tks sed...
thankss

The command it works. tks

sed -e '1a\
######' -e '1a\
> acl TESTE_ip src 192.168.1.1/255.255.255.255' squid.conf

All in a line without newline, is it possible? I will assign to a...
7,804
Posted By andreirp
Thanks for the reply. Exactly, but I would...
Thanks for the reply.

Exactly, but I would like to add multiple lines and this command line would I assign a variable as:

$exec = "sed '1731a\ ####' squid.conf'"

How will I assign a variable...
7,804
Posted By andreirp
thank you for reply. I already tried to...
thank you for reply.

I already tried to escape with \ the 'a' command the '\/'.

In this message, something to do with the command a(append) that I put together with the line.

sed: 1: "acl...
7,804
Posted By andreirp
sed works on Linux and Unix does not work
Hi,

I use this command in Linux but if I run the same command does not work in freebsd.

Follow the below command:

Linux works:

sed -e '1731a\' -e '####' squid.conf > squid2.conf ; sed -e...
Showing results 1 to 4 of 4

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