Sujet : Re: Long filenames in DOS/Windows and Unix/Linux
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.programmerDate : 04. Sep 2024, 01:44:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vb8ahn$3hhg4$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Pan/0.160 (Toresk; )
On Tue, 03 Sep 2024 17:27:34 -0700, Keith Thompson wrote:
Second attempt:
IFS='\n' ; for file in * ; do cp -p $file $file.bak ; done
but that leaves IFS set to its new value in my interactive shell.
Which in my experience is no biggie.
Next step: what if you wanted to handle newlines in file names as well?