
How do I set a variable to a command's output in csh?
Jan 16, 2018 · I have a number in a text file like : int_width: 5230 I want to set this number (5230) to a variable in csh. What is the correct form? (grep is working before setting ...
How do I check which shell I am using? - Ask Ubuntu
Feb 28, 2015 · I read that terminal is nothing but shell, and Unix provides different flavors of shells: Bourne shell (sh) C shell (csh) TC shell (tcsh) Korn shell (ksh) Bourne Again shell (bash) Questions: When I open a terminal window, which shell is opened by default? How do I check how many shells are installed? How do I change the shell used from my account?
command line - No csh or tcsh? - Ask Ubuntu
Jun 22, 2014 · In /bin, I see bash, but no csh or tcsh. When I created a ".cshrc" file in my home directory, it had no effect; that's how I discovered this problem. So the question is this: how do I switch to ...
csh - add a new column with a constant into a file - Ask Ubuntu
Jan 12, 2018 · I have a file with 108 lines and 3 columns. I want to add each line a 0 (in the fourth column) in cshell. like from this 11443 225 3 1245645 22 3 18966 2975 3 ... to this 11443 225 3 0 124564...
how to source csh script from bash environment? - Ask Ubuntu
Dec 10, 2015 · I am using bash shell but some of the scripts that I need to source are in csh format. Can somebody tell how I can source csh scripts from bash shell? By sourcing I mean the sourced csh script sho...
apt - Unable to locate package "csh" - Ask Ubuntu
I tried installing csh, but it throws me the error: unable to locate package csh My Ubuntu version is 12.04.
Why do I get a "cannot execute csh..." error when I try to "sudo su"?
Aug 13, 2012 · It seems you are using csh shell as your root login shell. So you can either install the missing shell using @izx answer. Or just change the default login shell of your root to a valid, installed login shell. You can change the login shell of the root with command: sudo chsh -s /bin/bash root So now bash will become the login shell of root. You may change the shell to your needs. Hint: you can ...
How do I fix "MANPATH: undefined variable." in csh?
Oct 21, 2017 · If you just need to run a provided csh script, then it shouldn't be necessary to start an interactive C-shell - just make sure it's executable and run it as ./somescript. If you do need to get the interactive shell to work for some reason, then check for a ~/.cshrc or ~/.tcshrc file and edit your question to include its contents
command line - How to redirect stderr to a file - Ask Ubuntu
May 18, 2015 · First thing to note is that there's couple of ways depending on your purpose and shell, therefore this requires slight understanding of multiple aspects. Additionally, certain commands such as time and strace write output to stderr by default, and may or may not provide a method of redirection specific to that command Basic theory behind redirection is that a process spawned by shell (assuming ...
Can I pass arguments to an alias command? - Ask Ubuntu
May 21, 2015 · In (t)csh, "\!*" references arguments to an alias (the backslash is just to escape the exclamation mark which normally means "history"), and you can even reference individual arguments, though I don't remember how.