Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-12-2012, 08:23 AM   #1
LQ Newbie
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
command in linux, similar to ckstr in solaris


I am new to linux.
I just got stuck in one of my ksh script. Do we have any command/utility in linux which is similar to ckstr in solaris.

ckstr would prompt the user for input and test it against some regular expression. (

Any help would be highly appreciated.

Old 01-12-2012, 11:00 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
It shouldn't be too difficult to create, in bash it would be something like:

read -p "[*] please enter something: " ANSWER
if [[ "$ANSWER" =~ <some_regex> ]]
  #do something
Old 01-21-2012, 04:30 AM   #3
LQ Newbie
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
I could resolve the issue.
Thanks a lot for help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there something similar to a udev rule in solaris express dev. ed. crisostomo_enrico Solaris / OpenSolaris 2 08-17-2007 08:18 AM
Is there a RedHat Network Install tool similar to Solaris JumpStart? davee Red Hat 2 06-01-2007 02:40 AM
Trying to Delete Nexenta OS, similar to Solaris femi1 Linux - Newbie 1 12-21-2006 11:18 PM
commands similar to Solaris's prtdiag solarisman Linux - Newbie 2 08-20-2005 02:09 AM
Exsists in Linux a command similar to ipconfig? zWaR Linux - Newbie 1 03-05-2004 06:27 PM

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration