p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Other Programming > BOOK: Beginning Unix ISBN: 0-7645-7994-0
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Unix ISBN: 0-7645-7994-0
This is the forum to discuss the Wrox book Beginning Unix by Paul Love, Joe Merlino, Craig Zimmerman, Jeremy C. Reed, Paul Weinstein; ISBN: 9780764579943

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Unix ISBN: 0-7645-7994-0 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 14th, 2009, 05:52 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question question about a sed command

The answer to Chapter 9's Exercise 3 in the back of the book is:
sed 's/\(NY\) , \(New York\) /\2, \1/'
I don't fully understand this. What are the purposes of the "\" , "(" , and ")" in the command? Also, why are the 2 and the 1 there? Thanks guys.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter records in a file with sed or awk (UNIX) elygp Other Programming Languages 2 November 25th, 2008 08:43 PM
Simple command question... ironchef JSP Basics 1 November 23rd, 2007 12:13 AM
Command Button Question eoghang Excel VBA 2 September 25th, 2006 09:33 PM
SQL "where" command question module0000 VB Databases Basics 7 October 5th, 2004 01:46 PM
Command text was not set for the command object. nidy_online ASP.NET 1.1 2 May 19th, 2004 02:36 AM



All times are GMT -4. The time now is 02:04 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc