[lug] I need help from a bash scripting guru

Zan Lynx zlynx at acm.org
Mon Jan 7 10:29:02 MST 2008


On Sun, 2008-01-06 at 22:59 -0700, David L. Anselmi wrote:
> Paul E Condon wrote:
> > I'm working on a file backup script that has a feature
> > of my own design. I have written a script that uses 
> 
> Yeah, I did that once.  Never again.  rdiff-backup might do what you 
> want and be easier to run than rsync.
> 
> > Put another way - Is there one character that never appears in file
> > names of all these OSs, and can be introduced as the field delimiter
> > into GNU join?
> 
> The only characters not allowed in UNIX file names are / and null 
> (AFAIK).  Those aren't terribly suitable for your purpose so I'd guess 
> the answer is, "no."
> 
> But you could try \n or \r.

Join needs two delimiters, one for fields and one for lines.  So, there
isn't any way to use a newline to separate fields because then what
would it use to separate lines?

I would also recommend rdiff-backup.  I rather like it.
-- 
Zan Lynx <zlynx at acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20080107/f4dbd546/attachment.pgp>


More information about the LUG mailing list