About 50 results
Open links in new tab
  1. command line - No csh or tcsh? - Ask Ubuntu

    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 ...

  2. tcsh - How to capture output from a command and pass it on to a ...

    Feb 1, 2021 · I'm trying to capture output of command into variable in csh but its printing empty value to the variable. but if i run same command on terminal its working root_part_id=`gpart show | grep zfs | …

  3. How do I set a variable to a command's output in csh?

    Jan 16, 2018 · How do I set a variable to a command's output in csh? Ask Question Asked 8 years ago Modified 8 years ago

  4. 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 …

  5. Shell script to search for a pattern in a file using if else

    Aug 28, 2018 · I'd strongly suggest not using csh (or its variants) for new scripts, for the reasons discussed here Why shouldn't I program in csh? However the correct syntax appears to be:

  6. scripts - check if folder does not exist in tcsh - Ask Ubuntu

    When using the tcsh shell, how do I check if a folder does NOT exist? I can check if it exists by if ( -d /folder ) then but I want the if statement to work for ...

  7. How to set up a loop in csh to set variables to directory names?

    Jun 6, 2018 · How to set up a loop in csh to set variables to directory names? Ask Question Asked 7 years, 8 months ago Modified 7 years, 8 months ago

  8. 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, …

  9. illegal variable name with csh and tcsh - Ask Ubuntu

    May 8, 2021 · Ubuntu 20.04 with update on about 1 May 2021. NOT a linux expert. in bash terminal, % which csh /usr/bin/csh but when % csh illegal variable name. same for tcsh.

  10. command line - Redirect output with '>&!' - Ask Ubuntu

    May 6, 2021 · So, the quoted section explains csh 's redirection operators. To summarize the above, > redirects to a file and >! forces the redirection to occur even if the user has set the noclobber option …