on 07-09-2011 7:24 AM
hi friends,
how to extract multiple supportpacks at a time.i know single file extraction(i.e sapcar -xvf patchno)
and also what is xvf
Hello,
for this I created a little script with the following content:
#!/bin/bash
for i in *.CAR *.SAR
do
if [ -f $i ]
then
SAPCAR -xvf $i
fi
done
The parameters xvf are afaik the same as for the tar command:
-x, --extract, --get
extract files from an archive
-f, --file=[HOSTNAME:]F
use archive file or device F (default /dev/rmt0)
-v, --verbose
verbosely list files processed
Only option -f has another default file: DEFAULT.SAR
Regards, Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also try this:
for i in *.SAR do; SAPCAR -xf $i; done
Cheers,
Hannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you tried sapcar -xvf *.SAR
or else i used to put the patch names in a notepad and append the command to it and put the same in a script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.