#!/bin/bash
#
wget "$1"
filename=${1##*/}
filenamed=${filename%.*}
gpg "$filename"
if [ -e "$filenamed" ]; then
  rm "$filename"
fi


syntax highlighted by Code2HTML, v. 0.9.1