#!/bin/sh if [ "$#" -ne 1 ]; then echo "Exactly 1 argument is required" exit fi SCRIPT_FOLDER="$HOME/scripts" SCRIPT_FILE="$SCRIPT_FOLDER/$1" if [ -f "$SCRIPT_FILE" ]; then gvim "$SCRIPT_FILE" & else cat >> "$SCRIPT_FILE" <