Re: Removing a space from file name

[email protected]
Newsgroups perl.beginners
Message-ID <[email protected]>
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 - [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.