- Company Name : smart invesment ltd
- About Us : Newsgroups: alt.comp.editors.batch,comp.editors,comp.anssmart invesment ltdrs,alt.answers,news.answersSubject: sed FAQ, version 015Followup-To: posterSummary: Frequently Asked Questions about sed, the stream editorX-Disclaimer: Approval for *.answers is based on form, not contentArchive-Name: editor-faq/sedPosting-Frequency: irregularLast-modified: 10 March 2003Version: 015URL: http://sed.sourceforge.net/sedfaq.htmlMaintainer: Eric Pement THE SED FAQ Frequently Asked Questions about sed, the stream editorCONTENTS1. GENERAL INFORMATION1.1. Introduction - How this FAQ is organized1.2. Latest version of the sed FAQ1.3. FAQ revision information1.4. How do I add a question/answer to the sed FAQ?1.5. FAQ abbreviations1.6. Credits and acknowledgements1.7. Standard disclaimers2. BASIC SED2.1. What is sed?2.2. What versions of sed are there, and where can I get them?2.2.1. Free versions2.2.1.1. Unix platforms2.2.1.2. OS/22.2.1.3. Microsoft Windows (Win3x, Win9x, WinNT, Win2K)2.2.1.4. MS-DOS2.2.1.5. CP/M2.2.1.6. Macintosh v8 or v92.2.2. Shareware and Commercial versions2.2.2.1. Unix platforms2.2.2.2. OS/22.2.2.3. Windows 95/98, Windows NT, Windows 20002.2.2.4. MS-DOS2.3. Where can I learn to use sed?2.3.1. Books2.3.2. Mailing list2.3.3. Tutorials, electronic text2.3.4. General web and ftp sites3. TECHNICAL3.1. More detailed explanation of basic sed3.1.1. Regular expressions on the left side of "s///"3.1.2. Escape characters on the right side of "s///"3.1.3. Substitution switches3.2. Common one-line sed scripts. How do I . . . ? - double/triple-space a file? - convert DOS/Unix newlines? - delete leading/trailing spaces? - do substitutions on all/certain lines? - delete consecutive blank lines? - delete blank lines at the top/end of the file?3.3. Addressing and address ranges3.4. Address ranges in GNU sed and HHsed3.5. Debugging sed scripts3.6. Notes about s2p, the sed-to-perl translator3.7. GNU/POSIX extensions to regular expressions4. EXAMPLES ONE-CHARACTER QUESTIONS4.1. How do I insert a newline into the RHS of a substitution?4.2. How do I represent control-codes or non-printable characters?4.3. How do I convert files with toggle characters, like +this+, to look like [i]this[/i]? CHANGING STRINGS4.10. How do I perform a case-insensitive search?4.11. How do I match only the first occurrence of a pattern?4.12. How do I parse a comma-delimited (CSV) data file?4.13. How do I handle fixed-length, columnar data?4.14. How do I commify a string of numbers?4.15. How do I prevent regex expansion on substitutions?4.16. How do I convert a string to all lowercase or capital letters? CHANGING BLOCKS (consecutive lines)4.20. How do I change only one section of a file?4.21. How do I delete or change a block of text if the block contains a certain regular expression?4.22. How do I locate a paragraph of text if the paragraph contains a certain regular expression?4.23. How do I match a block of specific consecutive lines?4.23.1. Try to use a "/range/, /expression/"4.23.2. Try to use a "multi-linenexpression"4.23.3. Try to use a block of "literal strings"4.24. How do I address all the lines between RE1 and RE2, excluding the lines themselves?4.25. How do I join two lines if line #1 ends in a [certain string]?4.26. How do I join two lines if line #2 begins in a [certain string]?4.27. How do I change all paragraphs to long lines? SHELL AND ENVIRONMENT4.30. How do I read environment variables with sed ...4.31.1. ... on Unix platforms?4.31.2. ... on MS-DOS or 4DOS platforms?4.32. How do I export or pass variables back into the environment ...4.32.1. ... on Unix platforms?4.32.2. ... on MS-DOSsed '1~3d' file
- Product/Service : Manufacturer,Trading Company,Buying Office,Agent,Distributor/Wholesaler, Government ministry/Bureau/Commission, Association,Business Service (Transportation, finance,travel,Ads, etc, Other, good product
- Country/Region : Nigeria >
- Category : Business Services
- Contact Person : Mr. martin taylor
- Link More : Nigeria Business Services ,Nigeria Agency Services
- Telephone :
- Fax :
- Address : 47 iweka road
- Business Type : Manufacturer, Trading Company, Buying Office, Agent, Distributor/Wholesaler, Government ministry/Bureau/Commission, Association, Business Service (Transportation, finance, travel, Ads, etc)
Recently Updated
Fujian Holly Promogift Mfg Co.,Ltd Golden Vessel Electronic & Lighting.,Inc Ningbo Hegao Electronics Technology Co., Ltd. JAITEX EXPORTS INDIA Dongguan Together Electronic Co., Ltd. RECRE HOLDING COMPANY Beijng Bidragon Machinery Co.,Ltd Beijing Infosign Technic & Development Co., Ltd. Shijiazhuang Yijintongye Import And Export CO., LTD. Zhixing Plastic Exporting Company Shenzhen Upcera Technology Co.,Ltd Principal Place Of Business Jetion Solar China ... Yuchen Trade Co.,Ltd SIGMA GIKEN CO.,LTD HONGKONG BONUS INTERNATIONAL INDUSTRIAL (NB)CO....