Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.




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 08:33 PM
SQL "where" command question module0000 VB Databases Basics 7 October 5th, 2004 12:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.