Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
.command [Where am i?]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="karudzo" data-source="post: 229468" data-attributes="member: 17652"><p>simply change the place in the script that reads:</p><p></p><p>~/whatever or /Users/yourusername/whatever</p><p></p><p> to a simple command.</p><p></p><p>For example if I had a script that said:</p><p>cp -R ~/example/ ~/backup/</p><p></p><p>it would back up the example directory in my home folder into a backup directory in my home directory. However if the script said:</p><p>cp -R example/ backup/</p><p></p><p>it would back up the example directory in the current directory into a backup directory in the current directory.</p><p></p><p>Hope that makes sense.</p></blockquote><p></p>
[QUOTE="karudzo, post: 229468, member: 17652"] simply change the place in the script that reads: ~/whatever or /Users/yourusername/whatever to a simple command. For example if I had a script that said: cp -R ~/example/ ~/backup/ it would back up the example directory in my home folder into a backup directory in my home directory. However if the script said: cp -R example/ backup/ it would back up the example directory in the current directory into a backup directory in the current directory. Hope that makes sense. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
.command [Where am i?]
Top