So in our loop we use it like a string
for file in *.txt; do mv "$file" /tmp/; done
Tag: bash
bash cgi: malformed header from script. Bad header=<html>
Look if you have a \n somewhere:
echo "Content-Type: text/html\n\n"
Substitute it with:
echo "Content-Type: text/html"
echo ""
echo ""
FreeBSD: change user’s shell
To change your shell in FreeBSD type:
chsh -s /usr/local/bin/bash
To change an user’s shell from root:
pw usermod $username -s /usr/local/bin/bash
Delete/clear bash history
Simply do:
rm ~/.bash_history
and clear the history library data in mem with:
history -c