Afficher un message
Vieux 29/04/2008, 20h34   #15
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: rsync most recent files from large source

2008-04-29, 20:08(+02), Dave B:
> On Tuesday 29 April 2008 20:01, Stephane CHAZELAS wrote:
>
>>> IFS=$'\n' # or IFS="\n"

>> [...]
>>
>> IFS="\n" is for splitting on backslashes and ns, $'...' is a
>> non-standard ksh93, zsh and bash only feature (the OP mentionned
>> pdksh) but anyway as someone else mentionned, IFS is not
>> involved here.

>
> Yes, in fact the IFS part was all wrong (again, sorry for that).
> Btw, is there a standard equivalent to $'\n'?


For other than \n, there's "$(printf '\x')"

You can do:

IFS='
'

or

eval "$(printf 'IFS="\n"')"

--
Stéphane
  Réponse avec citation
 
Page generated in 0,04536 seconds with 9 queries