Advertisement

04.22.2008 at 02:35PM PDT, ID: 23344715
[x]
Attachment Details

shell script pattern matching

Asked by saibsk in KornShell (ksh), Shell Scripting

I want to read line by line from a shell script. And check if the first column is client id  which is in this format clientXXX or clntXXX. If the first column is clientXXX or clntXXX i want to print the line else ignore the line.Start Free Trial
[+][-]04.22.2008 at 02:41PM PDT, ID: 21415868

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: KornShell (ksh), Shell Scripting
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628