Language of the file

marcos rebelo oleber at gmail.com
Wed May 2 09:56:35 CEST 2007


Hi all

I'm trying to create a script to do some work in my files (comment and
uncomment my code) but I don't know the Language Mode so I'm passing
the file path and using the file command of the shell to find out the
file Language.

Even that this is a good solution in 99% of the cases, isn't the
perfect one, nedit has this information.

How do I pass it into my script as argument?

Thanks
Marcos

-- 
Marcos Rebelo
http://oleber.freehostia.com


More information about the Discuss mailing list