...every script I write/rewrite since installing a newer Kubuntu is written wrong from the start.
The one I'm having trouble with now is
Returns (in stout):
When I check the real results of running it.
So what the expletive is wrong with the script?
Carver
The one I'm having trouble with now is
- supposed to delete text files ending in .log
- failing to do this one simple thing.
Code:
#!/bin/bash
echo "This script will remove .log files from the current directory."
rm -v "*log" 2>/dev/null
# rm -v "*log" 1>/dev/null
echo "Done."
exit 0
Code:
This script will remove .log files from the current directory.
Done.
Code:
ls *log
killo.log killtemp.log
So what the expletive is wrong with the script?
Carver