Tag Archive

The following is a list of all entries tagged with Bash:

“–” (Double-hyphen) in Bash

$cat out
if [ $# -eq 0 ]
then
echo "Usage: out [-v] filenames…" 1>&2
exit 1
fi
if [ "$1" = "-v" ]
then
shift
[...]


Handle Filenames with Spaces Properly in Bash Loops

find ~ -name ‘* *’ | while read FILE
do
echo "$FILE rocks."
done

via Handling Filenames with Spaces in Bash