2007-04-06

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
评论
发表评论

您还没有登录,请登录后发表评论

bigpanda
  • 浏览: 65475 次
  • 性别: Icon_minigender_1
  • 来自: 斯德哥尔摩
  • 详细资料
搜索本博客
博客分类
我的相册
7d96121a-b3fc-420d-95fc-a095981664af-thumb
books-small
共 17 张
存档
最新评论