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

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

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

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

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

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

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

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

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