Questions tagged [tcsh]

tcsh is an enhanced but completely compatible version of the Berkeley UNIX C shell, csh.

Quoted from the manpage:

tcsh is an enhanced but completely compatible version of the Berkeley UNIX C shell csh It is a command language interpreter usable both as an interactive login shell and a shell script command processor. It includes a command-line editor, programmable word completion, spelling correction, a history mechanism, job control and a C-like syntax.

tcsh is the default shell on FreeBSD & DragonFly BSD, and was the default shell on earlier versions on Mac OS X.

Since tcsh is completely compatible with , almost all versions of csh encountered are actually tcsh.

Official site: http://www.tcsh.org/

704 questions
-1
votes
1 answer

how to make tcsh shell title show full path of current directory?

how to make tcsh shell title show full path of current directory? my current konsole looks like: [user@shell curr_dir]$ I want it to look like: [user@shell absolute path to curr_dir]$ I use tmux, could any one suggest how to show full path of the…
-1
votes
3 answers

Unix - Csh: How to load new shell with clear environment?

I have a csh shell that is "dirty" with a lot of modifications in PATH, in LD_LIBRARY_PATH and in more environment variables. I want to load a "clean" csh shell that will not "inherit" all the environment settings from the existing one, but that…
SomethingSomething
  • 11,491
  • 17
  • 68
  • 126
-1
votes
1 answer

linux shell: Print lines whose first word matches a variable containing special characters

I have a file containing rows of strings like this: uh-g+n uh-g+b uh-g g uh-g+r g+n uh-g+s g sh-n+b sh-n+d n+d sh-n+d g-n+d sh-n+d I have a list of strings I am searching for, such as set pats = (g+n sh-n+b n+d) For each string, I want to find the…
-2
votes
1 answer

Bash or tsch command without file extensions

I am new to scripting. While looking at an ex-employee's R code there's a line where they call to the command line. The line/purpose is not something I know how to search for online. Any help is appreciated. The line of code in question:…
Ryan S
  • 73
  • 6
-2
votes
1 answer

Matching a particular word excluding words beginning by "?"

I'm having difficulties finding how to match a particular word when this word begin also by a question mark inside a CSV file. I need to use tcsh code. What I mean it that I can match "cat" while excluding "zcat" but it includes "?cat". Here is my…
-2
votes
1 answer

Print percentage of task completed from foreach loop

I am processing a file content using a foeach loop in unix environment and I would like to print the percentage of task completed in a single line on the xterm. something like an increasing counter. foreach xxx (`cat file1`) set total = `wc -l…
user1495523
  • 475
  • 2
  • 7
  • 17
-2
votes
1 answer

Using wild cards with find and ls

The find command doesn't seem to search recursively when using the * wild card I have a directory with several sub-directories inside it, many of which contain pdf's. There are no actual pdf's in the main directory, just in the sub-directories…
whatIsLife
  • 31
  • 3
-2
votes
1 answer

Alias for awk command

How do I create an alias for awk command in awk '{$1="";$2="";$3="";$4="";$5="";print}' in tcshrc ? I tried like this: alias crd='awk '\''{$1=\"\";$2=\"\";$3=\"\";$4=\"\";$5=\"\";print}'\''' but did not work
-2
votes
2 answers

quoting {print $NF} inside layers of single and double quotes?

Stuck trying to figure out how to single quotes withing single quotes within double quotes. Here's what I'm trying to do.... From perl, I want to run a system command that... - does an ssh into a remote machine - executes 'uptime' and then plucks…
daveg
  • 1,051
  • 11
  • 24
-2
votes
1 answer

I can't change my emacs alias in Unix?

I'm trying to add alias emacs "emacs24" to my .aliases folder, but whenever I try using emacs it keeps using version 22. I'm using the t shell btw
assaf
  • 69
  • 2
  • 10
-2
votes
2 answers

regular expressions in tcsh shell script

I have a shell script in tcsh to which I pass an argument, the length of which can vary. The possible values of the argument are the letters -c,s,i,q,a. and also a combination of these letters. (e.g: cs,si,ca,iq,qa,csq,acs,csia ..etc). The order of…
user2065523
  • 1
  • 1
  • 1
  • 1
-3
votes
1 answer

What is the Bash equivalent of the set command in C shell?

I need to run this script in the Bash shell as that is the only shell to which I have access on a high performance computing cluster at my present organization.
Sujai Banerji
  • 27
  • 1
  • 9
-4
votes
1 answer

Check if command exists for setting alias in tcshrc

I check if a command exists in Bourne shell as below: if [ "$(command -v emacs)" 2>&1 ]; then alias emacs='emacs -nw'; fi I am aware that tcsh is not the best shell for shell scripting but how do I implement the above scenario in tcshrc ?
-5
votes
1 answer

why I am not getting results from my uncompressing?

I am using a Dragonfly BSD system and I need to uncompress a folder for configuration purpose. I could not find results, the compressed file was still there without the uncompressed folder I should find. To test if the problem was something more…
1 2 3
46
47