About 50 results
Open links in new tab
  1. 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 | …

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

    Jan 16, 2018 · In order to set variable in csh you need to use set (more info) As mentioned by @muru comment - The original Bourne shell, csh or tcsh all do not support $() and require ` ` for command …

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

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

  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. command line - How to set up a loop in csh to set variables to ...

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

  7. scripts - Error while executing read prompt in csh and converting to ...

    Aug 29, 2018 · What implementation of csh are you using? neither BSD csh nor the Tenex tcsh has a read function AFAIK. I notice you don't show a "shebang" at the top of the code - which makes me …

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

  9. lubuntu - Illegal variable name csh script - Ask Ubuntu

    May 12, 2018 · Illegal variable name csh script Ask Question Asked 7 years, 11 months ago Modified 1 year, 9 months ago

  10. csh - execute a script for each line of an input file - Ask Ubuntu

    Jan 15, 2018 · I have a txt file with 100 lines and 5 columns. I want to automatize a script, with reading the file each lines, make the first column the first argument, the second column the second argument …