Hi Guys, that's me again.. I'm stuck again with sed to make a change to a file.. sorry if it sounds off-topic.. but I need your help :-).
I've just want to change on a file this line: vif = [ 'ip=167,112,134.223,mac=00:16:3E:FD:58:B8'] to: vif = ['ip=167,112,134.223,mac=00:16:3E:FD:58:B8,vifname=veth216','ip=10.1.1.1,mac=00:16:3E:FD:58:BB,vifname=veth216a'] AND, if it's possible to change tha last two entries of mac address, B8 to C8 for example.. thanks in advance regards, Israel. On 10/14/09, Carl Johnson <[email protected]> wrote: > Thomas Dickey <[email protected]> writes: > >> On Thu, 15 Oct 2009, Matthew Smith wrote: >> >>> Quoth Boyd Stephen Smith Jr. at 14/10/09 23:12... >>>> Your font has betrayed you. The single-column-mode option is "-1" >>>> (dash-one), your messages says you tried the option "-l" >>>> (dash-ell) which requested a >>>> detailed (long) listing. >>> >>> Aha! Sure looked like a lower-case L. Think I need to bump up the >>> font size for this little screen! Thank you for pointing that out. >>> >>> Unfortunately, I still can't get the desired effect. >>> >>> The ls -1 (#1) gives me my single-column list but piping it to sed >>> 1,2d' still gives me the entire directory listing, each item >>> separated by a single space. Can't see any reason from the sed >>> manpage why this should be and can't locate my awk & sed book (may >>> have left it at last job.) >> >> ls -1 |sed '1,2d' >> >> gives me a single column. > > Right, but when I did > echo $(ls -1 | sed '1,2d') > as others suggested for testing I got the same result as he did. It > is the echo that is putting everything on a single line. > > -- > Carl Johnson [email protected] > > > > -- > To UNSUBSCRIBE, email to [email protected] > with a subject of "unsubscribe". Trouble? Contact > [email protected] > > -- Regards; Israel Garcia -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

