[CentOS] replace string with sed but not the first one

2012-06-18 Thread maverh
Hi,   We have a the following file [ip-map] # Unchanged IP addresses: # Please review default IP addresses mapping below: 192.168.1.10 shared    ->  192.168.123.6 shared [namexx] 192.168.1.10 naam   192.168.1.10 We want to replace 192.168.1.10  to a other string but i don't want

Re: [CentOS] replace string with sed but not the first one

2012-06-19 Thread maverh
Thanks - Oorspronkelijk e-mail - Van: "Mark Pryor" Aan: "CentOS mailing list" Verzonden: Dinsdag 19 juni 2012 07:36:54 Onderwerp: Re: [CentOS] replace string with sed but not the first one - Original Message - From: "mav...@telenet.be" To: centos@centos.org Cc: Sent: Mond

[CentOS] we want to delete all files in a folder except the files with the most recent date

2012-06-19 Thread maverh
Hi, We want to delete all files in a folder except the files with the most recent date example ls -l jun 3 10:45 file1 jun 3 12:20 file2 jun 2 10:20 file3 jun 2 05:00 file4 jun 1 12:00 file5 jun 1 10:00 file6 jun2 en jun1 must be deleted regards, _