summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xget.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index d38c149..e7818e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
*.swp
*~
+*.txt
diff --git a/get.sh b/get.sh
index ba7a68c..a9fa46b 100755
--- a/get.sh
+++ b/get.sh
@@ -36,7 +36,7 @@ fi
for ((i=1;i<=$LINES;i++)); do
# lese pokemon aus der textdatei aus
- POKEMON=$(cat "$FILE" | cut -d ' ' -f 2 | sed -n ${i}p | cut -d ' ' -f 2)
+ POKEMON=$(cut -f2 -s "$FILE" | sed -n ${i}p)
# teste, ob datei früher schon einmal heruntergeladen wurde
if [ -f $POKEMON.txt ]; then