Hi,
having newlines in filenames is questionable. However, needing a newline is
quite common. In rc, you don't encode the newline, you just use it:
echo here is my '
' newline.
It's quite common to define it as a variable for easier use, for example:
nl='
'
echo $nl
files=`$nl{ls}
echo $files(1)
(The example is not that useful, because the standard delimiters contain a
newline character.)
Instead of find, I usually use walk, but I don't really know the syntax. In
these rare situations I often find myself using walk | grep instead of looking
up the flags.
Good luck finding a solution that works for you.
I think there was a doscussion some time ago to add quotes to ls output for
situations like these.
sirjofri
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T11149f1f949593f5-M4a923f98af111ae0821055d2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription