Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > perl.beginners > #19377

Re: Removing a space from file name

Newsgroups perl.beginners
Date 2025-02-17 19:36 +0100
Subject Re: Removing a space from file name
References <878qq4o4j3.fsf@local.lan>
Message-ID <d21b379eff634aa8b09353c79bea6960@pjcj.net> (permalink)
From paul@pjcj.net

Show all headers | View raw


On 2025-02-17 18:38, hput wrote:
> I have several hundred *.jpg files with this pattern
> 
> Actual example:
> 
>    'AtlantaVisitAndGrandmaHands 056.jpg'

> I tried to figure a way using the perl `rename' tool found in many 
> linux
> distro's repos
> 
> But couldnt figure out the necessary syntax from Larry Wall's examples
> in the rename man page.  Using the "s///" operators ,  it's probably
> there some how but my pea brain isn't seeimg it.

Almost there.  Try: rename 's/ //' *.jpg

-- 
Paul Johnson - paul@pjcj.net

Back to perl.beginners | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Removing a space from file name hput3@fastmail.fm (hput) - 2025-02-17 12:38 -0500
  Re: Removing a space from file name paul@pjcj.net - 2025-02-17 19:36 +0100
  Re: Removing a space from file name beginners@perl.org (Mike Hübschen via beginners) - 2025-02-17 19:52 +0100
  Re: Removing a space from file name beginners@perl.org (Smoot Carl-Mitchell via beginners) - 2025-02-17 13:12 -0700
    Re: Removing a space from file name beginners@perl.org (Smoot Carl-Mitchell via beginners) - 2025-02-19 18:03 -0700

csiph-web