LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-16-2012, 02:22 AM   #1
saeedsssss
Member
 
Registered: Apr 2012
Posts: 43

Rep: Reputation: Disabled
problem with understand a part of sed in adjusting the toolchain


hi
what's meaning of @ and ld in
-e 's@/lib\(64\)\?/ld@/tools&@g'

and if person know a good book about regular expression , please describe me
thankyou for every ask
 
Old 04-16-2012, 02:27 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You can change the separator in sed. Normally a forward slash is used (sed 's/../../'), but you can use any character you like (sed 's%..%..%').

This is done to avoid escaping certain characters. When a forward slash is used as separator, you need to escape that slash if it appears in the search and replace string.

About regular expressions:
- Book -> O'Reilly - Mastering Regular Expressions (ISBN 1-56592-257-3)
- On-line -> Regex Tutorial, Examples and Reference

Hope this helps.
 
1 members found this post helpful.
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 5.8, adjusting the toolchain problem jimmy_page_89 Linux From Scratch 9 11-27-2011 05:29 AM
Problem Adjusting the Toolchain Alex83 Linux From Scratch 4 10-07-2010 12:01 PM
LFS- Adjusting the Toolchain problem LinuxNewman Linux From Scratch 27 06-09-2009 02:04 AM
Problem with Adjusting ToolChain.... sed: can't read >: No such file or directory lfs_rocks Linux From Scratch 4 03-08-2009 10:30 AM
5.7 Adjusting the Toolchain Problem g3neration Linux From Scratch 2 09-08-2007 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration