Top "Csh" questions

csh, or the C shell, is a command interpreter with a syntax reminiscent of the C programming language.

how to write foreach in one line in csh?

Sometimes I use same foreach operation with different target files in csh. If I can give foreach command in a …

shell foreach csh
How to redirect stdout and stderr from csh script

For the following script install.csh: #!/bin/csh -f tar -zxf Python-3.1.1.tgz cd Python-3.1.1 ./configure make make install cd .. …

redirect csh
How do you use newgrp in a script then stay in that group when the script exits

I am running a script on a solaris Box. specifically SunOS 5.7. I am not root. I am trying to execute …

unix shell solaris csh
How to check if an environment variable is either unset or set to the empty string?

I don't want to use tcsh, but unfortunately have no choice in this situation. So please no "use another shell" …

environment-variables csh
Why do unix background processes sometimes die when I exit my shell?

I wanted to know why i am seeing a different behaviour in the background process in Bash shell Case 1: Logged …

bash unix putty csh nohup
Make python enter password when running a csh script

I'm writing a python script that executes a csh script in Solaris 10. The csh script prompts the user for the …

python scripting passwords root csh
How to input a comment on csh?

In bash, I used # to input comment. Even on interactive session. bash-3.2$ # bash-3.2$ # bash-3.2$ # bash-3.2$ csh spits error for this. …

comments csh
How can I make the list of letters from A to Z and iterate through them in the shell?

Say I want to iterate from letter A to letter Z in csh shell. How do I succinctly do that? …

perl unix shell awk csh
How to use for loops in command prompt in csh shell -- looking for decent one liners

coming from bash shell, I missed on an easy rolling of loops (for i in (...); do ... done;) Would you post …

shell csh tcsh