Beitrag
von mistersixt » 17.03.2008 13:09:08
Set the IFS (see man page "bash") to something else than the default values, for example:
Code: Alles auswählen
mars:/tmp# touch "this is a test.txt"
mars:/tmp# ls -l this*
-rw-r--r-- 1 root root 0 2008-03-17 13:09 this is a test.txt
mars:/tmp# for i in $( find . -type f -name "this*" ); do echo $i; done
./this
is
a
test.txt
mars:/tmp# IFS=";"
mars:/tmp# for i in $( find . -type f -name "this*" ); do echo $i; done
./this is a test.txt
mars:/tmp#
There are probably other ways, too, this is just an example.
Regards, Joerg.
--
System: Debian Bookworm, 6.11.x.-x-amd64, ext4, AMD Ryzen 7 3700X, 8 x 3.8 Ghz., Radeon RX 5700 XT, 32 GB Ram, XFCE