1

Thanks For your Valuable support, Now i m able to run shell script in cygwin using java.

But I am facing some problem with following method.

ConvertToUpperCase()
{
  rename 'y/a-z/A-Z/' *
  cd APPBUILD
  rename 'y/a-z/A-Z/' *
  cd DISKS
  rename 'y/a-z/A-Z/' *
  cd SEATAPP
  rename 'y/a-z/A-Z/' *
  cd ../../../
}

This Function is not executing in cygwin. Can any one suggest how to Debug shell script in Cygwin. Or Do i Need to change Function for the same.

Edit Note: Removed Java Tag..

Code Hungry
  • 3,930
  • 22
  • 67
  • 95

1 Answers1

0
up(){
  for i in *; do
    mv "$i" "${i^^}"
  done
}

ConvertToUpperCase(){
  up
  cd APPBUILD
  up
  cd DISKS
  up
  cd SEATAPP
  up
  cd ../../../
}

stackoverflow.com/a/2265268

Community
  • 1
  • 1
Zombo
  • 1
  • 62
  • 391
  • 407