Not getting output of Following Shell script

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..

Answers


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


Need Your Help

Copy a range to a new workbook with a condition

excel excel-vba

Hi all! I have been trying to make vba code for the following purpose: copy a range of a workbook (screenshot above A1:F2) to a new workbook. I have managed to achieve this. There is one additi...

PrettyFaces navigation on selectOneMenu change

jsf-2 primefaces prettyfaces

I have an application using PrettyFaces and PrimeFaces. One page is accessed using the URL pattern /#{ location : navigationBean.location }/#{ year : navigationBean.year }.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.