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
%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
发表评论
- 浏览: 65475 次
- 性别:

- 来自: 斯德哥尔摩

- 详细资料
搜索本博客
我的相册
books-small
共 17 张
共 17 张
最新评论
-
中国大陆高考创意答案
高考怎么还有初中小学的?
-- by bagui3 -
中国大陆高考创意答案
。。。 写道第8条内涵了.....
-- by spyker -
中国大陆高考创意答案
第8条内涵了.....
-- by 。。。 -
中国大陆高考创意答案
这个不是高考的,而且...............火星了哦。
-- by wzgme -
中国大陆高考创意答案
还真没几个能答的上来
-- by anchor






评论排行榜