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
Bash shell scripting in OS X
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="IvanLasston" data-source="post: 1419161" data-attributes="member: 145676"><p>Shell Scripting Primer</p><p><a href="https://developer.apple.com/library/mac/#documentation/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004268-TP40003516" target="_blank">https://developer.apple.com/library/mac/#documentation/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004268-TP40003516</a></p><p></p><p>How to use Manpages</p><p><a href="https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/" target="_blank">https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/</a></p><p></p><p>The Apple Manpages</p><p><a href="https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man5/manpages.5.html#//apple_ref/doc/man/5/manpages" target="_blank">https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man5/manpages.5.html#//apple_ref/doc/man/5/manpages</a></p><p></p><p>Install Command line tools from xcode for development</p><p>Xcode -> Xcode -> Preferences -> Downloads -> Command Line Tools -> Install</p><p></p><p>Shell Here Opens a shell in the current Finder Folder</p><p><a href="http://mac.softpedia.com/get/Utilities/ShellHere.shtml" target="_blank">Download ShellHere 1.0.5 Free - Open a new Terminal window from Finder - Softpedia</a></p><p></p><p>My setup for .profile</p><p>[code]</p><p>alias ls='ls -GF'</p><p>alias ll='ls -hGlF'</p><p>export PS1='\e[0;31m\w\e[m\n\T (\! \j) > '</p><p>#export CLICOLOR='1'</p><p>#ansi colors for ls</p><p># a black</p><p># b red</p><p># c green</p><p># d brown</p><p># e blue</p><p># f magenta</p><p># g cyan</p><p># h light grey</p><p># A bold black, usually shows up as dark grey</p><p># B bold red</p><p># C bold green</p><p># D bold brown, usually shows up as yellow</p><p># E bold blue</p><p># F bold magenta</p><p># G bold cyan</p><p># H bold light grey; looks like bright white</p><p># x default foreground or background</p><p>#order of LSCOLORS</p><p># 1. directory</p><p># 2. symbolic link</p><p># 3. socket</p><p># 4. pipe</p><p># 5. executable</p><p># 6. block special</p><p># 7. character special</p><p># 8. executable with setuid bit set</p><p># 9. executable with setgid bit set</p><p># 10. directory writable to others, with sticky bit</p><p># 11. directory writable to others, without sticky bit</p><p># 1 2 3 4 5 6 7 8 9 1011</p><p>export LSCOLORS='Hxfxcxdxbxegedabagacad'</p><p>[/code]</p><p></p><p>Books</p><p>Probably the best condensed reference for everything unix</p><p><a href="http://www.amazon.com/Nutshell-Fourth-Edition-Arnold-Robbins/dp/0596100299?tag=macforums0e4-20" target="_blank">http://www.amazon.com/Nutshell-Fourth-Edition-Arnold-Robbins/dp/0596100299?tag=macforums0e4-20</a></p><p></p><p>Bash Shell Book</p><p><a href="http://www.amazon.com/Learning-bash-Shell-Programming-Nutshell/dp/0596009658/ref=sr_1_1?s=books&ie=UTF8&qid=1340893839&sr=1-1&keywords=bash+shell&tag=macforums0e4-20" target="_blank">Amazon.com: Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) (9780596009656): Cameron Newham: Books</a></p><p></p><p>The best regular expressions book</p><p><a href="http://www.amazon.com/Mastering-Regular-Expressions-Jeffrey-Friedl/dp/0596528124/ref=sr_1_1?s=books&ie=UTF8&qid=1340893876&sr=1-1&keywords=regular+expressions?tag=macforums0e4-20" target="_blank">http://www.amazon.com/Mastering-Regular-Expressions-Jeffrey-Friedl/dp/0596528124/ref=sr_1_1?s=books&ie=UTF8&qid=1340893876&sr=1-1&keywords=regular+expressions?tag=macforums0e4-20</a></p></blockquote><p></p>
[QUOTE="IvanLasston, post: 1419161, member: 145676"] Shell Scripting Primer [url]https://developer.apple.com/library/mac/#documentation/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004268-TP40003516[/url] How to use Manpages [url]https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/[/url] The Apple Manpages [url]https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man5/manpages.5.html#//apple_ref/doc/man/5/manpages[/url] Install Command line tools from xcode for development Xcode -> Xcode -> Preferences -> Downloads -> Command Line Tools -> Install Shell Here Opens a shell in the current Finder Folder [url=http://mac.softpedia.com/get/Utilities/ShellHere.shtml]Download ShellHere 1.0.5 Free - Open a new Terminal window from Finder - Softpedia[/url] My setup for .profile [code] alias ls='ls -GF' alias ll='ls -hGlF' export PS1='\e[0;31m\w\e[m\n\T (\! \j) > ' #export CLICOLOR='1' #ansi colors for ls # a black # b red # c green # d brown # e blue # f magenta # g cyan # h light grey # A bold black, usually shows up as dark grey # B bold red # C bold green # D bold brown, usually shows up as yellow # E bold blue # F bold magenta # G bold cyan # H bold light grey; looks like bright white # x default foreground or background #order of LSCOLORS # 1. directory # 2. symbolic link # 3. socket # 4. pipe # 5. executable # 6. block special # 7. character special # 8. executable with setuid bit set # 9. executable with setgid bit set # 10. directory writable to others, with sticky bit # 11. directory writable to others, without sticky bit # 1 2 3 4 5 6 7 8 9 1011 export LSCOLORS='Hxfxcxdxbxegedabagacad' [/code] Books Probably the best condensed reference for everything unix [URL]http://www.amazon.com/Nutshell-Fourth-Edition-Arnold-Robbins/dp/0596100299?tag=macforums0e4-20[/URL] Bash Shell Book [URL='http://www.amazon.com/Learning-bash-Shell-Programming-Nutshell/dp/0596009658/ref=sr_1_1?s=books&ie=UTF8&qid=1340893839&sr=1-1&keywords=bash+shell&tag=macforums0e4-20']Amazon.com: Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) (9780596009656): Cameron Newham: Books[/url] The best regular expressions book [URL]http://www.amazon.com/Mastering-Regular-Expressions-Jeffrey-Friedl/dp/0596528124/ref=sr_1_1?s=books&ie=UTF8&qid=1340893876&sr=1-1&keywords=regular+expressions?tag=macforums0e4-20[/URL] [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Bash shell scripting in OS X
Top