The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need a regular expression tony3101 Shell Programming and Scripting 4 06-05-2008 12:13 AM
regular expression and awk nickg UNIX for Dummies Questions & Answers 2 08-16-2007 02:23 PM
regular expression...help!! andy2000 UNIX for Dummies Questions & Answers 6 07-18-2007 02:10 PM
help in regular expression Rakesh Ranjan High Level Programming 5 10-25-2006 10:00 AM
Regular Expression + Aritmetical Expression Z0mby Shell Programming and Scripting 2 05-21-2002 07:59 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2008
Registered User
 

Join Date: Feb 2008
Posts: 38
Regular expression Help

Hi

What is the meaning of this in regular expression $k =~ s/^\s*//;


Plz explain
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-11-2008
Registered User
 

Join Date: Aug 2007
Location: Bangalore
Posts: 285
What i understand is that
it is for replacing the first word character is 's' then replace it with space.

Thanks
Namish
Reply With Quote
  #3 (permalink)  
Old 06-11-2008
Registered User
 

Join Date: Feb 2008
Posts: 38
Quote:
Originally Posted by namishtiwari View Post
What i understand is that
it is for replacing the first word character is 's' then replace it with space.

Thanks
Namish
what is the meaning of 2nd right slash in this regular expression...
Reply With Quote
  #4 (permalink)  
Old 06-11-2008
Registered User
 

Join Date: Jun 2008
Location: Scotland
Posts: 86
The regexp removes any white-space characters from the beginning of $k.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0