cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract multiple support packs

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

MichaelTe
Contributor
0 Kudos

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

hannes_kuehnemund
Active Contributor
0 Kudos

You can also try this:

for i in *.SAR do; SAPCAR -xf $i; done

Cheers,

Hannes

Former Member
0 Kudos

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.