懒龙谷
  • Home
  • Categories
  • Tags
  • Archives

shell 替换与插入

sed 使用技巧

替换

插入

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

this guy is lazy, nothing leave

Comments
comments powered by Disqus

  • « nginx 配置
  • awk与sed »

Published

Jun 25, 2014

Category

shell

Stay in Touch

  • Powered by Pelican. Theme: Elegant by Talha Mansoor