免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: ngnix
打印 上一主题 下一主题

sed的用法咨询 [复制链接]

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
11 [报告]
发表于 2012-05-25 11:21 |只看该作者
本帖最后由 ulovko 于 2012-05-25 11:22 编辑

回复 1# ngnix


    www.grymoire.com.zip (395.48 KB, 下载次数: 16)
  1. > unzip www.grymoire.com.zip
  2. Archive:  www.grymoire.com.zip
  3. d www.grymoire.com
  4. d www.grymoire.com/Unix
  5. extracting: www.grymoire.com/Unix/index.html  
  6. extracting: www.grymoire.com/Unix/Quote.html  
  7. extracting: www.grymoire.com/Unix/Regular.html  
  8. extracting: www.grymoire.com/Unix/Sed.html  
  9. extracting: www.grymoire.com/Unix/Sh.html  
  10. extracting: www.grymoire.com/Unix/Permissions.html  
  11. extracting: www.grymoire.com/Unix/Awk.html  
  12. extracting: www.grymoire.com/Unix/Csh.html  
  13. extracting: www.grymoire.com/Unix/CshTop10.txt  
  14. extracting: www.grymoire.com/Unix/Find.html  
  15. d www.grymoire.com/Unix/Scripts
  16. extracting: www.grymoire.com/Unix/Scripts/CapVowel.sed  
  17. extracting: www.grymoire.com/Unix/Scripts/sedgrep.sed  
  18. extracting: www.grymoire.com/Unix/Scripts/sed_hereis.sed  
  19. extracting: www.grymoire.com/Unix/Scripts/sed_tail.sh  
  20. extracting: www.grymoire.com/Unix/Scripts/sed_begin_end.sh  
  21. extracting: www.grymoire.com/Unix/Scripts/sed_begin_end1.sh  
  22. extracting: www.grymoire.com/Unix/Scripts/sed_begin_end2.sh  
  23. extracting: www.grymoire.com/Unix/Scripts/sed_include.sh  
  24. extracting: www.grymoire.com/Unix/Scripts/sed_bad_example.sh  
  25. extracting: www.grymoire.com/Unix/Scripts/sed_include1.sh  
  26. extracting: www.grymoire.com/Unix/Scripts/sed_include2.sh  
  27. extracting: www.grymoire.com/Unix/Scripts/sed_add_line_after_word.sh  
  28. extracting: www.grymoire.com/Unix/Scripts/sed_add_line_after_word1.sh  
  29. extracting: www.grymoire.com/Unix/Scripts/sed_add_line_before_word.sh  
  30. extracting: www.grymoire.com/Unix/Scripts/sed_change_line.sh  
  31. extracting: www.grymoire.com/Unix/Scripts/sed_insert_append_change.sh  
  32. extracting: www.grymoire.com/Unix/Scripts/sed_delete_line_after_word.sh  
  33. extracting: www.grymoire.com/Unix/Scripts/sed_print_line_after_word.sh  
  34. extracting: www.grymoire.com/Unix/Scripts/sed_delete_between_two_words.sh  
  35. extracting: www.grymoire.com/Unix/Scripts/sed_merge_two_lines.sh  
  36. extracting: www.grymoire.com/Unix/Scripts/sed_split.sh  
  37. extracting: www.grymoire.com/Unix/Scripts/sed_split_merge.sh  
  38. extracting: www.grymoire.com/Unix/Scripts/sed_addslash_before_blank.sh  
  39. extracting: www.grymoire.com/Unix/Scripts/sed_addslash_before_blank.csh  
  40. extracting: www.grymoire.com/Unix/Scripts/grep3.sh  
  41. extracting: www.grymoire.com/Unix/Scripts/grep3a.sh  
  42. extracting: www.grymoire.com/Unix/Scripts/grep_previous.sh  
  43. extracting: www.grymoire.com/Unix/Scripts/grep4.sh  
  44. extracting: www.grymoire.com/Unix/Scripts/grep3c.sh  
  45. extracting: www.grymoire.com/Unix/Scripts/convert2uc.sh  
  46. extracting: www.grymoire.com/Unix/Scripts/convert2uc1.sh  
  47. extracting: www.grymoire.com/Unix/Scripts/convert2uc2.sh  
  48. extracting: www.grymoire.com/Unix/Scripts/grep_paragraph.sh  
  49. extracting: www.grymoire.com/Unix/Scripts/delete_nested_parens.sh  
  50. extracting: www.grymoire.com/Unix/Scripts/sed_add_comments.sh  
  51. extracting: www.grymoire.com/Unix/Scripts/grep4a.sh  
  52. extracting: www.grymoire.com/Unix/Scripts/sed_with_regular_expressions1.sh  
  53. extracting: www.grymoire.com/Unix/Scripts/0.sh  
  54. extracting: www.grymoire.com/Unix/Scripts/diskwarn.sh  
  55. extracting: www.grymoire.com/Unix/Scripts/rename0.sh  
  56. extracting: www.grymoire.com/Unix/Scripts/rename.sh  
  57. extracting: www.grymoire.com/Unix/Scripts/moveto.sh  
  58. extracting: www.grymoire.com/Unix/Scripts/EchoArgs.sh  
  59. extracting: www.grymoire.com/Unix/Scripts/TestEchoArgs.sh  
  60. extracting: www.grymoire.com/Unix/Scripts/CountLines0.sh  
  61. extracting: www.grymoire.com/Unix/Scripts/ShCmdChk1.sh  
  62. extracting: www.grymoire.com/Unix/Scripts/ShCmdChk2.sh  
  63. extracting: www.grymoire.com/Unix/Scripts/ShCmdChk3.sh  
  64. extracting: www.grymoire.com/Unix/Scripts/ShCmdChk4.sh  
  65. extracting: www.grymoire.com/Unix/Scripts/ShCmdArgs3.sh  
  66. extracting: www.grymoire.com/Unix/Scripts/ShCmdArgs4.sh  
  67. extracting: www.grymoire.com/Unix/Scripts/ShCmdArgs.sh  
  68. extracting: www.grymoire.com/Unix/Scripts/awk_example1.csh  
  69. extracting: www.grymoire.com/Unix/Scripts/awk_example1.sh  
  70. extracting: www.grymoire.com/Unix/Scripts/awk_example1.awk  
  71. extracting: www.grymoire.com/Unix/Scripts/awk_example2.awk  
  72. extracting: www.grymoire.com/Unix/Scripts/awk_example2.sh  
  73. extracting: www.grymoire.com/Unix/Scripts/awk_example2.csh  
  74. extracting: www.grymoire.com/Unix/Scripts/Column1.sh  
  75. extracting: www.grymoire.com/Unix/Scripts/Column2.sh  
  76. extracting: www.grymoire.com/Unix/Scripts/Column3.sh  
  77. extracting: www.grymoire.com/Unix/Scripts/Column4.sh  
  78. extracting: www.grymoire.com/Unix/Scripts/Column5.sh  
  79. extracting: www.grymoire.com/Unix/Scripts/awk_print_squares.awk  
  80. extracting: www.grymoire.com/Unix/Scripts/awk_ask_for_square.awk  
  81. extracting: www.grymoire.com/Unix/Scripts/average.awk  
  82. extracting: www.grymoire.com/Unix/Scripts/awk_nopasswd.awk  
  83. extracting: www.grymoire.com/Unix/Scripts/awk_example3.awk  
  84. extracting: www.grymoire.com/Unix/Scripts/awk_example4.awk  
  85. extracting: www.grymoire.com/Unix/Scripts/delete_passwd.awk  
  86. extracting: www.grymoire.com/Unix/Scripts/owner_group.awk  
  87. extracting: www.grymoire.com/Unix/Scripts/print_last_field.awk  
  88. extracting: www.grymoire.com/Unix/Scripts/awk_example5.awk  
  89. extracting: www.grymoire.com/Unix/Scripts/awk_example6.awk  
  90. extracting: www.grymoire.com/Unix/Scripts/oneword_per_line.awk  
  91. extracting: www.grymoire.com/Unix/Scripts/add_cr.awk  
  92. extracting: www.grymoire.com/Unix/Scripts/awk_example6a.awk  
  93. extracting: www.grymoire.com/Unix/Scripts/awk_example7.awk  
  94. extracting: www.grymoire.com/Unix/Scripts/awk_example8.awk  
  95. extracting: www.grymoire.com/Unix/Scripts/count_users0.awk  
  96. extracting: www.grymoire.com/Unix/Scripts/count_users1.awk  
  97. extracting: www.grymoire.com/Unix/Scripts/count_users2.awk  
  98. extracting: www.grymoire.com/Unix/Scripts/count_users3.awk  
  99. extracting: www.grymoire.com/Unix/Scripts/count_users.awk  
  100. extracting: www.grymoire.com/Unix/Scripts/count_users_new.awk  
  101. extracting: www.grymoire.com/Unix/Scripts/awk_example9.awk  
  102. extracting: www.grymoire.com/Unix/Scripts/awk_example10.awk  
  103. extracting: www.grymoire.com/Unix/Scripts/awk_example11.awk  
  104. extracting: www.grymoire.com/Unix/Scripts/awk_example12.awk  
  105. extracting: www.grymoire.com/Unix/Scripts/trigonometry.awk  
  106. extracting: www.grymoire.com/Unix/Scripts/awk_example13.awk  
  107. extracting: www.grymoire.com/Unix/Scripts/random.awk  
  108. extracting: www.grymoire.com/Unix/Scripts/lotto.awk  
  109. extracting: www.grymoire.com/Unix/Scripts/center.awk  
  110. extracting: www.grymoire.com/Unix/Scripts/email.awk  
  111. extracting: www.grymoire.com/Unix/Scripts/Fmt.sh  
  112. extracting: www.grymoire.com/Unix/Scripts/upper_to_lower.awk  
  113. extracting: www.grymoire.com/Unix/Scripts/upper_to_lower.gawk  
  114. extracting: www.grymoire.com/Unix/Scripts/awk_example14.sh  
  115. extracting: www.grymoire.com/Unix/Scripts/awk_example15.awk  
  116. extracting: www.grymoire.com/Unix/Scripts/awk_example16.awk  
  117. extracting: www.grymoire.com/Unix/Scripts/awk_example17.awk  
  118. extracting: www.grymoire.com/Unix/Scripts/include.nawk  
  119. extracting: www.grymoire.com/Unix/Scripts/awk_example17.gawk  
  120. extracting: www.grymoire.com/Unix/Scripts/date.gawk  
  121. extracting: www.grymoire.com/Unix/Scripts/one_week_later.gawk  
  122. extracting: www.grymoire.com/Unix/Scripts/awk_example18.nawk  
  123. extracting: www.grymoire.com/Unix/Scripts/CshAwk.csh  
  124. extracting: www.grymoire.com/Unix/Scripts/Csh1.csh  
  125. extracting: www.grymoire.com/Unix/Scripts/Csh2.csh  
  126. extracting: www.grymoire.com/Unix/Scripts/prog.csh  
  127. extracting: www.grymoire.com/Unix/Scripts/myexit.csh  
  128. extracting: www.grymoire.com/Unix/Scripts/WordCount.csh  
  129. extracting: www.grymoire.com/Unix/Scripts/GetDate.csh  
  130. extracting: www.grymoire.com/Unix/Scripts/Cheer.csh  
  131. extracting: www.grymoire.com/Unix/Scripts/Which.csh  
  132. extracting: www.grymoire.com/Unix/Scripts/Which.sh  
  133. extracting: www.grymoire.com/Unix/Scripts/OpenWin.csh  
  134. extracting: www.grymoire.com/Unix/Scripts/CreateCacheDir.sh  
  135. extracting: www.grymoire.com/Unix/Scripts/ResolveDir.sh  
  136. extracting: www.grymoire.com/Unix/Scripts/Dir_to_System.sh  
  137. extracting: www.grymoire.com/Unix/Scripts/AnalyzePaths.csh  
  138. extracting: www.grymoire.com/Unix/Scripts/GetPaths.csh  
  139. extracting: www.grymoire.com/Unix/Scripts/analyze_paths.nawk  
  140. extracting: www.grymoire.com/Unix/Scripts/Zappath.sh  
  141. extracting: www.grymoire.com/Unix/Scripts/Aliases.csh  
  142. extracting: www.grymoire.com/Unix/Scripts/BounceWindow.csh  
  143. extracting: www.grymoire.com/Unix/Scripts/Center.sh  
  144. extracting: www.grymoire.com/Unix/Scripts/EchoExample.sh  
  145. extracting: www.grymoire.com/Unix/Scripts/GetFonts.sh  
  146. extracting: www.grymoire.com/Unix/Scripts/GetSunParams.sh  
  147. extracting: www.grymoire.com/Unix/Scripts/MoveProc.csh  
  148. extracting: www.grymoire.com/Unix/Scripts/NoLead.sed  
  149. extracting: www.grymoire.com/Unix/Scripts/OW.sh  
  150. extracting: www.grymoire.com/Unix/Scripts/OpenProc.csh  
  151. extracting: www.grymoire.com/Unix/Scripts/OpenProc1.csh  
  152. extracting: www.grymoire.com/Unix/Scripts/Resource.sh  
  153. extracting: www.grymoire.com/Unix/Scripts/Rs.csh  
  154. extracting: www.grymoire.com/Unix/Scripts/S.csh  
  155. extracting: www.grymoire.com/Unix/Scripts/S.sh  
  156. extracting: www.grymoire.com/Unix/Scripts/SetEcho.csh  
  157. extracting: www.grymoire.com/Unix/Scripts/StartOW.csh  
  158. extracting: www.grymoire.com/Unix/Scripts/TextDelim.sh  
  159. extracting: www.grymoire.com/Unix/Scripts/abso.sh  
  160. extracting: www.grymoire.com/Unix/Scripts/add_prefix.sh  
  161. extracting: www.grymoire.com/Unix/Scripts/check_console.csh  
  162. extracting: www.grymoire.com/Unix/Scripts/edit-ddynamic-filter1.sh  
  163. extracting: www.grymoire.com/Unix/Scripts/edit_dynamic-filter.sh  
  164. extracting: www.grymoire.com/Unix/Scripts/find_significant_disks.csh  
  165. extracting: www.grymoire.com/Unix/Scripts/gid.sh  
  166. extracting: www.grymoire.com/Unix/Scripts/havegid.sh  
  167. extracting: www.grymoire.com/Unix/Scripts/height_width.awk  
  168. extracting: www.grymoire.com/Unix/Scripts/helptool.sh  
  169. extracting: www.grymoire.com/Unix/Scripts/igrep.sh  
  170. extracting: www.grymoire.com/Unix/Scripts/ingroup.sh  
  171. extracting: www.grymoire.com/Unix/Scripts/ispell-filter.sh  
  172. extracting: www.grymoire.com/Unix/Scripts/ispell-filter1.sh  
  173. extracting: www.grymoire.com/Unix/Scripts/ispell-filter2.sh  
  174. extracting: www.grymoire.com/Unix/Scripts/ispell-filter3.sh  
  175. extracting: www.grymoire.com/Unix/Scripts/ispell-filtera.sh  
  176. extracting: www.grymoire.com/Unix/Scripts/ispell-filterb.sh  
  177. extracting: www.grymoire.com/Unix/Scripts/mantool.sh  
  178. extracting: www.grymoire.com/Unix/Scripts/remove-mtext.sed  
  179. extracting: www.grymoire.com/Unix/Scripts/sed_with_regular_expressions.sh  
  180. extracting: www.grymoire.com/Unix/Scripts/select-spell.csh  
  181. extracting: www.grymoire.com/Unix/Scripts/shellthread.sh  
  182. extracting: www.grymoire.com/Unix/Scripts/show_rows_and_columns.csh  
  183. extracting: www.grymoire.com/Unix/Scripts/sub_prefix.sh  
  184. extracting: www.grymoire.com/Unix/Scripts/ted.csh  
  185. extracting: www.grymoire.com/Unix/Scripts/ted1.sh  
  186. extracting: www.grymoire.com/Unix/Scripts/ted2.csh  
  187. extracting: www.grymoire.com/Unix/Scripts/teddelete.csh  
  188. extracting: www.grymoire.com/Unix/Scripts/testdir.csh  
  189. extracting: www.grymoire.com/Unix/Scripts/testsearch.csh  
  190. extracting: www.grymoire.com/Unix/Scripts/write2dir.csh  
  191. extracting: www.grymoire.com/Unix/SedChart.pdf  
  192. d www.grymoire.com/Unix/Files
  193. extracting: www.grymoire.com/Unix/Files/Cshrc1  
  194. extracting: www.grymoire.com/Unix/Files/Path1.csh  
  195. extracting: www.grymoire.com/Unix/Files/Path.default  
  196. extracting: www.grymoire.com/Unix/Files/Path.sunos  
  197. extracting: www.grymoire.com/Unix/Files/Aliases4.csh  
  198. extracting: www.grymoire.com/Unix/Files/AliasesC.csh  
  199. extracting: www.grymoire.com/Unix/Files/Foreach1.csh  
  200. extracting: www.grymoire.com/Unix/Files/Foreach2.csh  
  201. extracting: www.grymoire.com/Unix/Files/Header.csh  
复制代码

论坛徽章:
3
2015年迎新春徽章
日期:2015-03-04 09:56:11数据库技术版块每日发帖之星
日期:2016-08-03 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
12 [报告]
发表于 2012-05-25 12:09 |只看该作者
&表示的是正则表达式匹配到的所有内容
\1只是表示第一个括号圈起来的内容

论坛徽章:
3
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:51:162015年亚洲杯之阿曼
日期:2015-04-07 20:00:59
13 [报告]
发表于 2012-05-25 14:49 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP