Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
how to match pattern on Bash?
Name: nelsmy Date: November 23, 2005 at 00:39:53 Pacific OS: windows xp CPU/Ram: pentium 4
Comment:
Below is a perl script, if i want to get the string preceed the match pattern, i can use variable $`, but how do i do it in bash? can anyone show me?
$_ = "this is a sample string"; /sa.*le/; # matches "sample" within the string # $` is now "this is a " # $& is now "sample" # $' is now " string"
Summary: hi, i'm new to linux. I currently need to explore the linux platform for my project. i'm using Mandrake. i would like to know: - how to run .exe file on linux. - how to compile java on linux platform....
Summary: I use sendmail command to send mail on UNIX to stmp mail,but it is faiture. The followings are I inputted command and error message. Pls reply me quickly. Thanks. # sendmail -v yim125@hotmail.com WARN...
Summary: i bought it, but i have no idea how to install it on linux. i have an ether net card, cuz i have a network at home the Ether Net Card is not configured either HELP!...