Could someone explain this command for me:
cat | sed -e 's,%,$,g' | sudo tee /etc/init.d/dropbox << EOF
echo "Hello World"
s,%,$,g part of the command line is the
sed command to execute. The
s stands for substitute, the
, characters are delimiters (other characters can be used;
@ are popular). The
% is the pattern to match (here a literal percent sign) and the
$ is the second pattern to match (here a literal dollar sign). The
g at the end means to
globally replace on each line (otherwise it would only update the first match).