File: xtar-doc

package info (click to toggle)
doc-linux-sv 98.09-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 412 kB
  • ctags: 11
  • sloc: perl: 86; makefile: 52; sh: 11
file content (16 lines) | stat: -rwxr-xr-x 197 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

SDIR=$1
DDIR=$2

cd $DDIR

for F in `ls -1 $SDIR | grep ".tar.gz" | cut -d. -f1`
do
  # echo $F
  tar xvfz $SDIR/$F.html.tar.gz
  if [ -d $F ]; then
    mv $F/* .
    rmdir $F
  fi
done