cp youscript.sh test.sh
Delete the first line and save the file.
Add the #!/bin/sh line again.
Run the program and let us know how that worked.
PS - What distro are you using? (Doesn't make much difference.)
Subbarao
http://investeur.co/
-----Original Message-----
From: Mukesh Yadav [mailto:mak.gnu@xxxxxxxxx]
Sent: Thursday, July 28, 2011 5:04 PM
To: ILUG-C
Subject: [Ilugc] What is wrong in this script ?
I'm trying to compress js file via shell script here is code
#!/bin/sh
for file in `find . -name "*.js"`
do
echo "Compressing $file ?"
java -jar ~/yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar --type js -o
min/$file $file done
but getting error an
bash: ./yuicompress.sh: /bin/sh^M: bad interpreter: No such file or directory
What I'm doing wrong
--
Regards
Mukesh Yadav
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc