| PLEX86 | ||
|
want shell should I learn 5On 2006-01-05, Peter T. Breuer That's a given. Does it need restating? As interactive bash has almost everything that tcsh has, as well as Bourne syntax, I see no need to learn a second, inferior syntax. want shell should I learn 6 There's nothing to learn - just as there is nothing to learn in bash for use as an interactive shell: one types the command to execute the command: one... You cannot go to a tcsh prompt and type (or cut and paste), for example: for n in *.txt do case $line in XX*) print "${line#???}" ;; YY*) print "${line%qwerty*}" ;; esac done You cannot source a library of POSIX shell functions in tcsh and use them as commands. When I need to do date arithmetic at the command line, I source my date-funcs library and have access to 48 new functions. To do that in tcsh, I'd have to rewrite them all in csh (not a pleasant prospect). I have many such libraries. If you are using tcsh and develop a complex command, you cannot copy that into a POSIX script; you'd have to rewrite it. Using bash, I can copy almost any command I write at the prompt into a script. I don't know that shell (or OS). -- Shell Scripting Recipes: My code in this post, if any, A Problem-Solution Approach is released under the 2005, Apress GNU General Public Licence
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||