LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How could I match a file name without extension in csh (https://www.linuxquestions.org/questions/linux-newbie-8/how-could-i-match-a-file-name-without-extension-in-csh-896138/)

casualzone 08-08-2011 02:56 AM

How could I match a file name without extension in csh
 
#!/bin/csh -f
source /xxxx/

set $spicedir = `sim_${1%.*}`
printf "Output folder is %s\n" $spicedir

toolcommand -i $1 -o $spicedir
(-o output directory, -i =input)

I got spicedir: Undefined variable in my xterm

How could I match a file name without extension in csh

kirukan 08-08-2011 04:37 AM

Refer the following
http://www.cyberciti.biz/faq/find-co...-ignore-files/


All times are GMT -5. The time now is 03:03 AM.