![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| column extract help | cvm | Shell Programming and Scripting | 1 | 04-24-2008 04:19 PM |
| extract using sed/awk - need help? Please!! | gzs553 | Shell Programming and Scripting | 5 | 10-08-2007 04:54 PM |
| How to extract the PID from 'ps -ef' | nsinha | Shell Programming and Scripting | 7 | 11-20-2006 07:47 AM |
| Please help! Sed extract a pattern | zhen | Shell Programming and Scripting | 11 | 09-18-2006 12:36 PM |
| tar. I can't extract | volleyboy | UNIX for Dummies Questions & Answers | 1 | 02-17-2006 11:54 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
effectively I have a disk space problem. If I have a 50Gb tar file, I should have a 100 Gb disk although at the end I delete my file.tar and again I have 50Gb which is not used. Then is there any option permiting to use a disk of 50Gb? many thanks. |
|
|||||
|
So, you want to do the untaring with just 50Gb of space.
This is what I have in mind. And I shall try to attempt it here. Get the tar listing onto a list.txt For each file-name from list.txt Extract file-name from file.tar Delete file-name from file.tar Code:
#! /bin/sh tar tf big.tar > big.txt while read file do (tar xf big.tar $file) && (tar --delete --file=big.tar $file) done < big.txt Check it out. Vino ![]() |
|
||||
|
thank you. I'm runing Solaris.
I made a script from your code. this is the output : $myscript tar: d: unknown option Usage: tar {txruc}[vfbFXhiBDEelmopwnq[0-7]] [-k size] [tapefile] [blocksize] [exclude-file] [-I include-file] files ... tar: d: unknown option Usage: tar {txruc}[vfbFXhiBDEelmopwnq[0-7]] [-k size] [tapefile] [blocksize] [exclude-file] [-I include-file] files ... tar: d: unknown option Usage: tar {txruc}[vfbFXhiBDEelmopwnq[0-7]] [-k size] [tapefile] [blocksize] [exclude-file] [-I include-file] files ... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|