RE: to remove the file extension

2001-09-14 Thread Bob Showalter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 13, 2001 8:09 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: to remove the file extension > > > >>>>> "Jason" == Jason Til

Re: to remove the file extension

2001-09-13 Thread Jason Tiller
Hi, Randall! :) (BTW, great book. :-D In case you hadn't been told enough!) On 13 Sep 2001 [EMAIL PROTECTED] wrote: > > "Bob" == Bob Showalter <[EMAIL PROTECTED]> writes: > Bob> perl -e '-f $_ || print "Missing $_\n" for map {/^(.*)\.c$/; "$1.out"} > Bob> @ARGV' *.c > No. You've used $1

RE: to remove the file extension

2001-09-13 Thread Jason Tiller
Hi, Bob, :) This is so great! On Thu, 13 Sep 2001, Bob Showalter wrote: > > -Original Message- > > In a directory there exist *.c and *.out files. Here *.out is > > created for every *.c file. I need to check whether .out is > > generated for all the .c file. How to achive this. > p

Re: to remove the file extension

2001-09-13 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jaya Kumaran) wrote: > In a directory there exist *.c and *.out files. Here *.out is > created for every *.c file. I need to check whether .out is > generated for all the .c file. How to achive this. you can do something like so. rem

RE: to remove the file extension

2001-09-13 Thread Bob Showalter
> -Original Message- > From: jaya kumaran [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 13, 2001 5:18 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: to remove the file extension > > > > hi, > > In a directory there exist *.c and *.out files. Here *.out > is c

Re: to remove the file extension (fwd)

2001-09-13 Thread jaya kumaran
Hi, I found the solution... Thanks -- opendir (DIR_NAME, "."); @fnames = readdir (DIR_NAME); closedir(DIR_NAME); foreach $file (@fnames) { if ($file =~ /\.c$/) { $datfname=$`; print "$datfname\n"; stat($outfname); if( -e $outfname) { print "$outfna