csh Questions
2
Solved
For C Shell is there a way to make tab completion for commands, files etc. case insensitive?
I saw the complete=enhance variable, but that is only for tcsh, not csh.
Estivation asked 20/7, 2010 at 8:50
5
BRIEF
how do I (1) start a new csh, (2) force it to execute a few commands that are NOT in any .cshrc (although I could arrange for them to be in a non-standard location to be source'ed) and (3) t...
Percussive asked 24/1, 2012 at 5:12
4
Solved
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. How can I input some comment on interactive csh session?...
3
Solved
I have a very big storage disk (16T). I want to run 'du' on it to figure out how much each subdirectory takes. However, that takes a very long time. Luckily, I have at my disposal a cluster of comp...
Nanna asked 7/7, 2014 at 8:0
1
Solved
I usually use csh (actually my /bin/csh is linked to tcsh, an improved version of csh) and frequently use !$ to refer to the last argument of the last command.
But sometimes I would like to use the...
4
Solved
coming from bash shell, I missed on an easy rolling of loops (for i in (...); do ... done;)
Would you post typical one-liners of loops in cshell?
ONE LINERS PLEASE, and not multiple-lines
thx
3
Solved
I'm using find command a lot on unix (csh).
Is it possible that the result will be full/absolute path and will start from the directory where I'm starting the search
for example when running co...
Anuradhapura asked 26/7, 2015 at 11:32
2
Solved
I get a "Illegal variable name" error for the following piece of line in one of my shell scripts -
"$WORKING_DIR"/sendEmail.py "$TEST_STRING, Tests passed" "$(cat "$WORKING_DIR"/logs/"$THE_PACKAG...
2
Good day,
Hoping for the kind help of anyone here, thanks in advance.
I have T.csh which looks like this:
#! /bin/csh
set a="01 02 03 04 05 06 07 08 09 10 11 12 13"
set b="14 15 16 17 18 19 20 2...
3
Solved
IF I have to check that if a variable is empty or not for that in bash shell i can check with the following script:
if [ -z "$1" ]
then
echo "variable is empty"
else
echo "variable contains $1...
1
Solved
2
I have a script like this:
#!/bin/csh
echo "This is the main programme"
./printsth
I want to call the script printsth from within this script using relative paths. Is there a way to do so? By re...
Valina asked 4/11, 2013 at 7:23
2
Solved
3
Solved
For example, I want to split "one,two,three" with comma as delimiter and use a loop to process the resulted three substring separately.
Leatri asked 12/10, 2011 at 4:8
2
Solved
I'm executing a program that dumps crash report into STDERR from where I have to filter some necessary information. The problem is that I'm unable to redirect STDERR to STDOUT and PIPE it with grep...
5
Solved
How can I check in bash and csh if commands are builtin? Is there a method compatible with most shells?
2
I have a java class in which I call a runshellscript method that will execute a script. It worked well with mysql but I cannot seem to find out why it wont work well with psql. Here is an excerpt o...
7
Solved
I have a C shell script that does something like this:
#!/bin/csh
gcc example.c -o ex
gcc combine.c -o combine
ex file1 r1 <-- 1
ex file2 r2 <-- 2
ex file3 r3 <-- 3
#... many more like th...
Bleary asked 7/5, 2010 at 19:9
6
Solved
When I run the following command in csh, I got nothing, but it works in bash.
Is there any equivalent in csh which can redirect the standard error to standard out?
somecommand 2>&1
Callen asked 5/12, 2012 at 9:45
10
Solved
Basically I want do the following:
ls -l[+someflags]
(or by some other means) that will only display files that are symbolic links
so the output would look
-rw-r--r-- 1 username grp size date-...
2
Solved
For checking the existence of any file in csh script I am using
if [ -f /var/opt/temip/conf/.temip_config ]
but I am getting below error
if [ -f /var/opt/temip/conf/.temip_config ]
if: Expres...
2
Solved
I’m having trouble doing something basic with csh. I have a string:
set newCmd = "$expansionCmd –option1 –option2 …"
And I’m creating an array of these strings, which I later want to execute:
s...
2
I've got a few csh scripts where I need to check that certain environment variables are set before I start doing stuff, so I do this sort of thing:
if ! $?STATE then
echo "Need to set STATE"
exi...
Carriole asked 25/2, 2010 at 18:1
1
Potentially a real easy question but I was wondering if anybody can kindly provide some advice.
To accomplish a repeating task, I am constantly logging into a remote Solaris server using credentia...
Brout asked 28/7, 2014 at 10:48
1
Solved
In bash, we can use shopt -s expand_aliases to expand aliases in scripts.
What are the equivalent commands for zsh, csh, and tcsh? Do they even exist?
In focusing my efforts on zsh, I haven’t fou...
© 2022 - 2024 — McMap. All rights reserved.