Simple Script, two errors I Cannot Figure Out: unexpected EOF while looking for matching `'' and syntax error: unexpected end of file
*:{I had a stroke in 2011, and am "brain-damaged"}
I use Debian Testing, and before I start using aptitude, I run the following script:
The simple script, called "kev-update.bash" is:
#!/bin/bash
sudo aptitude update | tee -a update.text
sudo aptitude upgrade | tee -a update.text
sudo aptitude purge 'deborphan | tee -a update.text`
exit 0
line 5: unexpected EOF while looking for matching `''
and
line 8: syntax error: unexpected end of file
I have been using extra {return}s
I have been messing around with that whole line line with the command purge to no avail
I have used remove rather than purge to no avail.
However if I remove the the "aptitude purge" line, my problems go away.
But I would like when I do an update, I would like all unnecessary packages to removed.
Sooooo...
Question: When I do an update, I want those unnecessary packages purged. How can I do that automatically, since my script seems to be bad.
Thank you for reading this posting, and have yourself an excellent day!
|