I have the following command: /usr/local/bin/rsync -avv 'Jeffrey?s iPhone (Root)'/ 'Macintosh HD'/Users/jeffrey/Downloads/iphone_backup Unfortunately, it's barking when it hits the "(". -bash: syntax error near unexpected token `(' How can I escape this? Thanks. -- View this message in context: http://samba.2283325.n4.nabble.com/How-to-escape-characters-in-commad-tp3008848p3008848.html Sent from the Samba - rsync mailing list archive at Nabble.com.
On Sat, 23 Oct 2010 15:44:49 -0700 (PDT) rlinsurf <rlinsurf at dhnet.us> wrote:> > I have the following command: > > /usr/local/bin/rsync -avv 'Jeffrey?s iPhone (Root)'/ 'Macintosh > HD'/Users/jeffrey/Downloads/iphone_backup > > Unfortunately, it's barking when it hits the "(". > > -bash: syntax error near unexpected token `(' > > How can I escape this? > > Thanks. > >\(
In <1287873889527-3008848.post at n4.nabble.com>, on 10/23/10 at 03:44 PM, rlinsurf <rlinsurf at dhnet.us> said: Hi,>/usr/local/bin/rsync -avv 'Jeffrey s iPhone (Root)'/ 'Macintosh >HD'/Users/jeffrey/Downloads/iphone_backupWhen there are spaces in the file name, it is typical to need to supply --protect-args. Steven -- ---------------------------------------------------------------------- "Steven Levine" <steve53 at earthlink.net> eCS/Warp/DIY etc. www.scoug.com www.ecomstation.com ----------------------------------------------------------------------