10-29-2002
Quote:
Originally posted by yls177
which is the more widely use shell?
Use the Bourne shell. Avoid csh and its associates for programming (at least). On some systems (like SGI) sh is now a link to ksh, and you have to say #!/bin/bsh to get the unadorned Bourne shell. But if you want ksh's extended features, some of which are quite useful, make sure
every platform that will run your program has it.
For interactive use, I prefer zsh (and have for around 8 years), but zsh changes the test syntax (from [ -f fred.txt ] to [[ -f fred.txt ]]) among other things, so for programming, I still use sh.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey Guys i am new to Unix and i have downlaoded Cygwin for Windows and deleted it.
I was just wondering is there any good shells like that for windows that just as good
thanks for your time
][ce (1 Reply)
Discussion started by: IceCold
1 Replies
2. Shell Programming and Scripting
Solaris
Newbie here to scripting in UNIX/SOLARIS.
What I am looking to do is, once the script is
executed, switch to /bin/bash shell and continue
to execute the script.
The problem I run into is once the script switches to the Bash
shell, the script stops, and does not execute the... (2 Replies)
Discussion started by: Scoobiez
2 Replies
3. Shell Programming and Scripting
I understand that in order to run basic unix commands I would normally type at the prompt, I would have to use the following format
system(ls -l);
or
exec(ls -l);
But when I actually try to use the command, the script fails to compile and keeps telling me there is an error with this line. ... (1 Reply)
Discussion started by: userix
1 Replies
4. UNIX for Dummies Questions & Answers
How do I know what type of shells are available in my Unix system? Are there a single command or environment variable that can let me find that out?
Best regards,
John Chan (7 Replies)
Discussion started by: shuhang2
7 Replies
5. UNIX for Dummies Questions & Answers
hi. im new here. im taking a UNIX OS class and im in need of some help
how do i change my shell in UNIX?
for homework i need to edit the tcshrc file (to include aliases) in my home directory but its not there. so i think switching shells will create the file. am i correct?
I'm using PuTTy.... (1 Reply)
Discussion started by: alpha_centauri
1 Replies
6. Shell Programming and Scripting
i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies
7. Shell Programming and Scripting
hello All,
I just purchased a used copy of "UNIX Shells by Example" by Ellie Quigley. The CD is not in the back. I googled the world but the files dont seem to be available for download anywhere. Does anyone out there have them. It would be much appreciated if someone can email them to me.
... (1 Reply)
Discussion started by: tag0519
1 Replies
8. Shell Programming and Scripting
so in unix this command works works and shows me a list of directories
find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt
but when i try running a perl script to run this command
my $query = 'find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt';... (2 Replies)
Discussion started by: kpddong
2 Replies
9. UNIX for Dummies Questions & Answers
I appreciate if someone answer this question for my learning purpose:
Given a filename structure of a COUNTRY CODE, file type, date (YYYYMMDD) and two digit attempt number with an extension of ".dat", write a UNIX shells script to echo out the date value.
Example: ... (1 Reply)
Discussion started by: shumail
1 Replies
10. Programming
Can someone help by advising hw to built myself strong on logic building in UNIX shell scripting. I find it very difficult
Sent from my iPhone using Tapatalk (4 Replies)
Discussion started by: Vijaykannan T
4 Replies