Skip to content

Commit

Permalink
all done
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina Rudometova committed Oct 1, 2024
1 parent fd50e8e commit d36a4f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions solution/addsuffix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ suffix=''

for opt in "$@"
do
# echo "suffix is $suffix"
if [[ -z $suffix ]]; then
suffix="$opt"
# echo "suffix assigned to be $suffix"
else
# echo "will move $opt to $opt$suffix"
mv "$opt" "$opt$suffix"
# echo "move done"
fi
done
5 changes: 2 additions & 3 deletions solution/untar
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ if [[ ! -d "$1.unpacked" ]]; then
mkdir "$1.unpacked"
fi

cd "$1.unpacked"
tar "-$pExtract" "../$1"
cd -
tar "-$pExtract" "$1" -C "$1.unpacked"




Binary file added test.tar
Binary file not shown.

0 comments on commit d36a4f4

Please sign in to comment.