wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes syntax error near `=~' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "syntax error near `=~ Watch "syntax error near `=~ New topic

syntax error near `=~'

sriinu reddy

Joined: Mar 10, 2009
Posts: 11
Hi ,
I am new to shell scripting
please let me know what is wrong with the following script

i am getting the following error with the above script

please.help me out..

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

works for me on bash.

It is sorta covered in the JavaRanch Style Guide.
subject: syntax error near `=~'
Similar Threads
Email regEx- should not start with dot(.)
I am getting syntax error in java script.
JavaScript+Regular Expression Problem
awk script inside a shell script
Regular Expression for EMail Validation