🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux
Article #906776

Re: Wyzwanie dla spryciarzy od one linerów bashowych :-P

#906776
From: Marcin Debowski
Date: Tue, 20 Dec 2022 23:59
44 lines
2643 bytes
On 2022-12-20, marrgol <marrgol@address.invalid> wrote:
> On 20/12/2022 at 23.58, Marcin Debowski wrote:
>> find . -type f -exec rename 's/pl/dz/' {} \;
>
> A co to za sympatyczny rename? :-)  Bo ten (chyba) standardowy,
> z util-linux, to tak nie umie:
>
> $ ls
> plik
> $ rename 's/pl/dz/' plik
> rename: not enough arguments
> Try 'rename --help' for more information.
> $ rename --version
> rename from util-linux 2.37.2

Taki perlowski cudak, od pewnego czasu chyba standardowo dostępny we 
wszystkich podstawowych dystrybucjach:

$ apt show rename
Package: rename
Version: 1.10-1
Priority: optional
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 48.1 kB
Provides: libfile-rename-perl
Depends: perl (>= 5.26.0-6)
Conflicts: libfile-rename-perl
Breaks: perl (<< 5.26.0-6)
Replaces: libfile-rename-perl, perl (<< 5.26.0-6)
Homepage: https://metacpan.org/release/File-Rename
Download-Size: 16.1 kB
APT-Manual-Installed: yes
APT-Sources: http://ubuntu.mirror.myduniahost.com/ubuntu focal/universe amd64 Packages
Description: Perl extension for renaming multiple files
 This package provides both a perl interface for renaming files
 (File::Rename) and a command line tool 'rename' which is intended to
 replace the version currently supplied by the perl package.

-- 
Marcin
Technical Details
Message-ID: <u%roL.1731603$%fx6.918778@fx14.ams1>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!feeder.cambriumusenet.nl!feed.tweaknews.nl!posting.tweaknews.nl!fx14.ams1.POSTED!not-for-mail
References: <63a205be$0$565$65785112@news.neostrada.pl> <87y1r1ew4z.fsf@alfa.kjonca> <63a20d6f$0$458$65785112@news.neostrada.pl> <tnt49u$p9lc$1@dont-email.me> <63a22e7d$0$470$65785112@news.neostrada.pl> <H6roL.2399453$ulh3.760041@fx06.ams1> <tnth8l$qigr$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!feeder.cambriumusenet.nl!feed.tweaknews.nl!posting.tweaknews.nl!fx14.ams1.POSTED!not-for-mail
Newsgroups: pl.comp.os.linux
From: Marcin Debowski <agatek@INVALID.zoho.com>
Subject: Re: Wyzwanie dla spryciarzy od one linerów
 bashowych :-P
References: <63a205be$0$565$65785112@news.neostrada.pl> <87y1r1ew4z.fsf@alfa.kjonca> <63a20d6f$0$458$65785112@news.neostrada.pl> <tnt49u$p9lc$1@dont-email.me> <63a22e7d$0$470$65785112@news.neostrada.pl> <H6roL.2399453$ulh3.760041@fx06.ams1> <tnth8l$qigr$1@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Lines: 44
Message-ID: <u%roL.1731603$%fx6.918778@fx14.ams1>
X-Complaints-To: abuse@tweaknews.nl
NNTP-Posting-Date: Tue, 20 Dec 2022 23:59:22 UTC
Organization: Tweaknews
Date: Tue, 20 Dec 2022 23:59:22 GMT
X-Received-Bytes: 2431
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit