Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-08-2011, 03:56 AM   #1
Registered: Jan 2010
Posts: 189

Rep: Reputation: 15
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
Old 08-08-2011, 05:37 AM   #2
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Refer the following


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CSH Permission Denied When Accessing Local File wafflesausage Programming 15 03-10-2011 03:26 PM
How do you write a magic file test pattern to match the end of a file? arj Linux - Software 3 02-10-2011 06:38 PM
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 05:19 PM
checking if a file has a specified extension in csh grinch Programming 2 05-05-2007 08:34 PM
convert .bat / .csh file to .sh files massoo Programming 1 03-06-2006 07:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration