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...
csh
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?...
Kaikaia asked 14/10, 2013 at 16:37

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...
Ylla asked 10/11, 2017 at 7:12

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
Consonant asked 9/10, 2009 at 14:55

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...
Holiday asked 1/5, 2017 at 19:22

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...
Bedew asked 31/1, 2017 at 2:37

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...
Abukir asked 25/3, 2014 at 16:6

1

Solved

I work on a server system that does not allow me to store files more than 50 gigabytes. My application takes 20 minutes to generate a file. Is there any way whereby I can move all the files that ar...
Aquamarine asked 24/5, 2016 at 11:16

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...
csh
Valina asked 4/11, 2013 at 7:23

2

Solved

Consider the following command. grep -rn "someString" . --color And I want to alias it in my .cshrc and perform the command like this: myGrep someString Is there a way to do this?
Plenum asked 31/8, 2015 at 11:32

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.
csh
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...
Weatherford asked 14/8, 2015 at 13:8

5

Solved

How can I check in bash and csh if commands are builtin? Is there a method compatible with most shells?
Bioecology asked 13/9, 2011 at 9:37

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...
Salvidor asked 2/8, 2012 at 23:56

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-...
Petition asked 11/9, 2009 at 18:2

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...
Conservatoire asked 7/1, 2015 at 7:55

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...
Fessler asked 31/10, 2012 at 0:39

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...
Idaliaidalina asked 24/4, 2014 at 1:55

© 2022 - 2024 — McMap. All rights reserved.