懒龙谷
  • Home
  • Categories
  • Tags
  • Archives

awk与sed

Contents

  • 插入
  • 替换

插入

sed '1i\sdfasdf' file
sed "1i\\$var" file

替换

sed 's/abc/def/g;s/dsfds/gdkok/g' file

this guy is lazy, nothing leave

Comments
comments powered by Disqus

  • « shell 替换与插入
  • pelican_config »

Published

Jun 25, 2014

Category

shell

Stay in Touch

  • Powered by Pelican. Theme: Elegant by Talha Mansoor