Skip to content

Commit

Permalink
slightly easier to work when there is a space in the file name (freed…
Browse files Browse the repository at this point in the history
…00m)
  • Loading branch information
xvoland committed Apr 5, 2018
1 parent 8ec1c29 commit 42c38af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extract.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
# function Extract for common file formats

SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

function extract {
if [ -z "$1" ]; then
# display usage if no parameters given
Expand Down Expand Up @@ -36,3 +39,5 @@ function extract {
done
fi
}

IFS=$SAVEIFS

0 comments on commit 42c38af

Please sign in to comment.