Skip to content

Instantly share code, notes, and snippets.

@SuzanaK
Created May 27, 2015 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SuzanaK/04a1a66b2fe77f107013 to your computer and use it in GitHub Desktop.
Save SuzanaK/04a1a66b2fe77f107013 to your computer and use it in GitHub Desktop.
#! /bin/bash
if [ "$1" ] ; then exec < "$1" ; fi
test "$1" && exec < "$1"
echo $1
@SuzanaK
Copy link
Author

SuzanaK commented May 27, 2015

output:
./test.sh hallo
./test.sh: Zeile 3: hallo: Datei oder Verzeichnis nicht gefunden (file or directory not found)
./test.sh: Zeile 5: hallo: Datei oder Verzeichnis nicht gefunden
hallo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment