Eclipse Note & sed EclipseUIIDEF#
程序员文章站
2022-03-14 17:45:56
...
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