Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Other Programming > BOOK: Beginning Unix ISBN: 0-7645-7994-0
Password Reminder
Register
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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 14th, 2009, 04:52 PM
Registered User
 
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.
 


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 07:43 PM
Simple command question... ironchef JSP Basics 1 November 22nd, 2007 11:13 PM
Command Button Question eoghang Excel VBA 2 September 25th, 2006 08:33 PM
SQL "where" command question module0000 VB Databases Basics 7 October 5th, 2004 12:46 PM



All times are GMT -4. The time now is 01:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.