`
bigpanda
  • 浏览: 108519 次
  • 性别: Icon_minigender_1
  • 来自: 斯德哥尔摩
文章分类
社区版块
存档分类
最新评论

Eclipse Note & sed

阅读更多
Remove obsolet workspace

%ECLIPSE_HOME%\configuration\.settings\org.eclipse.ui.ide.prefs

edit key RECENT_WORKSPACES, this is a comma separated list.

--------------------------------

How to insert a few words with new line in beginning of a text file

1. using sed

create a sed file:

1i\
text to insert

sed -f sedfile.sed file.txt

2. using echo, cat

echo text to insert | cat > file2.txt
cat file.txt >> file2.txt
分享到:
评论
1 楼 yanite 2009-08-21  
为什么要创建一个 create a sed file:

相关推荐

Global site tag (gtag.js) - Google Analytics