update: renaming a bunch of files AND directories in linux

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

drag

Elite Member
Jul 4, 2002
8,708
0
0
Originally posted by: MartinCracauer
You mean without the read command?

Doing this recusively with potentially renaming directories is actually not trivial. I have a scripts to totally lowercase all filenames in a tree but it is not perfect either :)

No, I just mean something using the read command so I can know howto use it. I've never used read before, that's all.

I don't need something complex, just something stupid/simple would be great. Just a simple example. If you don't want to, just ignore me. I'll just look it up on google.

:)
 

uOpt

Golden Member
Oct 19, 2004
1,628
0
0
But there are example with and without the read command at first page :)
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Originally posted by: MartinCracauer
But there are example with and without the read command at first page :)

Doh.

Don't know what I was thinking of.

ls bleh | while read i

I've used that plenty of times in the past. What a brain fart.