[plug] Ambiguous redirection error

Richard wpickett at iprimus.com.au
Sat May 11 01:45:07 WST 2002


I am currently trying to write a script(s) that will backup certain personal 
files on a regular basis. My email is one of the things I would like to 
backup and, using kmail, it resides in a single dir, Mail, in mbox format. I 
have been trying to work out a command to append all files in the Mail dir to 
their name sake in a separate backup dir, which would then be re-archived. I 
have been trying to redirect the output of the cat command to the backup 
files and using the * to perform the action on all files in the dir, but I 
keep getting the error message 'ambiguous redirection'. I could explicitly 
name all of my mail files/folders in the script but would like to avoid 
having to update the script every time a new folder is added in kmail. Could 
anyone suggest a command-line string that would have the desired effect? Or a 
better way of regularly archiving my mail (if I'm in danger of re-inventing 
the wheel :) Thanks.

Richard



More information about the plug mailing list