> -----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 created for every *.c file. I need to check whether .out 
> is generated for all the .c file.
> How to achive this.

perl -e '-f $_ || print "Missing $_\n" for map {/^(.*)\.c$/; "$1.out"}
@ARGV' *.c

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to