Tema: Re: kaip masiskai pakeisti bylu pavadinimus
Autorius: Nerijus Kislauskas
Data: 2012-06-14 10:37:05
On 06/14/2012 09:33 AM, aspats wrote:
>>> $ rename 's/(\s)+/_/g'
>>>
> sed pasimokyti reikia

Ne sed, o perl reguliarias išraiškas:

$ man rename

rename [ -v ] [ -n ] [ -f ] perlexpr [ files ]

The perlexpr argument is a Perl expression which is expected to modify
the $_ string in Perl for at least some of the filenames specified.

$ head -1 /usr/bin/rename
#!/usr/bin/perl -w
$
--
Pagarbiai,