Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to delete original files after using a tar operation. Post 302536896 by manutd on Wednesday 6th of July 2011 12:15:28 PM
Old 07-06-2011
How to delete original files after using a tar operation.

I have a list of log files in a directory. Once i tar them I need to remove the original log files. How do i do it?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Delete original wav file if lame was successful encoding.

In a bash script: src=”cooltrack.wav” dst=”cooltrack.mp3” lame $src $dst I would like to add some line that would delete the source wav file like: rm $src but I would like this only if the encoding was successful. What should I include before deleting the original to check that the... (2 Replies)
Discussion started by: Aia
2 Replies

2. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

3. UNIX for Advanced & Expert Users

tar: how to preserve atime? (also on extracted version, not just original)

How do I make tar set the correct atime on the extracted version? The option --atime-preserve works just on the original, not on the extracted file. The extracted files always have current time as atime, which is bad. (10 Replies)
Discussion started by: frankie06
10 Replies

4. Shell Programming and Scripting

tar command dont tar to original directory

HI, if I have a tarfile called pmapdata.tar that contains tar -tvf pmapdata.tar -rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt -rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt -rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies

5. Shell Programming and Scripting

Decompress (with gunzip) recursively, but do not delete original gz file

Hi all, I have a folder hierarchy with many gz files in them. I would like to recursively decompress them, but keep the original files. I would also like to move all the decompressed files (these are very large HDF5 files with .CP12 extension) to another data folder. Currently I am using four... (3 Replies)
Discussion started by: gansvv
3 Replies

6. Shell Programming and Scripting

How to delete a duplicate line and original with sed.

I am completely new to shell scripting but have been assigned the task of creating several batch files to manipulate data. My final task requires me to find lines that have duplicates present then delete not only the duplicate but the original as well. The script will be used in a windows... (9 Replies)
Discussion started by: chino_1
9 Replies

7. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

8. UNIX for Advanced & Expert Users

copy original files from links

I have folder ABC and files in ABC are links. I want to create the same ABC folder in different path and copy the actual files from source ABC dir. Can anyone provide HP-UX command for this? note: cp -L is not working in HP-UX Thanks in advance. (1 Reply)
Discussion started by: venkatababu
1 Replies

9. Shell Programming and Scripting

Merge different files into the original file

Hello Below is my requirement I have 3 files A1.txt , A2.txt and A3.txt . A2 is dynamically generating file I want the merge of A1,A2 and A3 in A2.txt Could you please help? (3 Replies)
Discussion started by: Pratik4891
3 Replies

10. UNIX for Beginners Questions & Answers

Arg list too long error while performing tar and zip operation

hi all i am trying to tar and then zip files present dir by using the below command tar -cvf ${abc}/xyz_backup_date_`date +%d%m%y%H%M%S`.tar xyz* when the files are in less number the above command executes perfectly but when there are large number of files i am getting "arg list too... (5 Replies)
Discussion started by: manoj
5 Replies
PACOBALL(8)							      System							       PACOBALL(8)

NAME
pacoball - Binary package support for paco(8). SYNOPSIS
pacoball [-bgftv] [-d DIR] [-1..9] [-a|<packages>] pacoball -e [-ltv] [-C DIR] <pacoballs> DESCRIPTION
By default, pacoball may be given one or more package names as arguments, and for each of those packages it creates a binary tarball (.tar.bz2 or .tar.gz) containing all the currently installed files. For this to work the input packages have to be registered in the paco database. Leading slashes ('/') are stripped from the paths of the files in the tarballs. With option -e, pacoball admits one or more previously created tarballs ("pacoballs") as arguments, and installs them into the system, optionally logging the installation with paco. Mandatory arguments to long options are mandatory for short options too. GENERAL OPTIONS
-t, --test Test compressed file integrity. -h, --help Show usage information and exit. -v, --verbose Verbose output. -V, --version Display version information and exit. PACKAGE CREATION OPTIONS
-a, --all Create a pacoball for each package logged in the paco database. -d, --directory=DIR Create the pacoballs in directory DIR (default is '.'). -b, --bzip2 Compress with bzip2 (this is the default). -g, --gzip Compress with gzip. -# Set the compression level (speed/quality balance). '#' is a number between 1 (faster compression) and 9 (best compression). --fast An alias for -1. --best An alias for -9. -f, --force Force overwrite of existing output files. PACKAGE EXTRACTION OPTIONS
-e, --extract Extract (install) the given <pacoballs>, in directory '/' by default. -l, --log Log the file extraction with paco(8), retrieving the appropiate package name from the name of the pacoball. -C, --root=DIR Extract the files into directory DIR (as the -C option in tar). FILES
/etc/pacorc - paco configuration file /var/log/paco - default paco log directory WEB SITE
The latest version of pacoball should be always available at: http://paco.sourceforge.net COPYRIGHT
Copyright (C) 2004-2009 David Rosal <davidrr@sourceforge.net> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
paco(8), pacorc(5), superpaco(8), rpm2paco(8) paco-2.0.9 28 June 2010 PACOBALL(8)
All times are GMT -4. The time now is 08:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy