:)
Hi,
I use the following command to search for a string in all the files in the directories and sub directories.
find . -type f -print | xargs grep bermun@cial.net
Can someone please cite a method wherin I can find the entries from a list of 300-500 *.gz files by modifying the above... (2 Replies)
Hi,
I'm Eddy from Belgium and I've the following problem.
I try to write a ksh script in AIX to tar, compress and remove the original *.wav files from the directory belgacom_sf_messages older than two days with the following commands.
The problem is that I do not find a good combination... (4 Replies)
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
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)
Hi all,
I want to check whether tar file exists in the directory or not. If tar file exists in the directory then I want to append the files to it.
I am using the below command to tar files if the file does not exist.
tar zcvf <tar file name> <Files to append>
However, if want to... (4 Replies)
Linux RHEL 5.4
It is easy to create a tarball when you have files same extension
For eg:
You want to tar all files with the extension .log . This is easy
tar -cvf diagnose.tar *.log
I have two files with different extensions .log and .sh :
error.log
myscript.sh
I want to create a... (5 Replies)
I am not able to extract/remove files older than 1000 days from a tar archive in linux system.
#!/usr/bin/perl
@file_list = `find /home/x/tmp/ -name *xxMsg* -ctime +7`;
$file_name = '/home/x/tmp/new_archive.tar';
for... (1 Reply)
Discussion started by: DannyV
1 Replies
LEARN ABOUT FREEBSD
archive_write_set_format_cpio
ARCHIVE_WRITE_FORMAT(3) BSD Library Functions Manual ARCHIVE_WRITE_FORMAT(3)NAME
archive_write_set_format_cpio, archive_write_set_format_pax, archive_write_set_format_pax_restricted, archive_write_set_format_shar,
archive_write_set_format_shar_dump, archive_write_set_format_ustar -- functions for creating archives
LIBRARY
Streaming Archive Library (libarchive, -larchive)
SYNOPSIS
#include <archive.h>
int
archive_write_set_format_cpio(struct archive *);
int
archive_write_set_format_pax(struct archive *);
int
archive_write_set_format_pax_restricted(struct archive *);
int
archive_write_set_format_shar(struct archive *);
int
archive_write_set_format_shar_dump(struct archive *);
int
archive_write_set_format_ustar(struct archive *);
DESCRIPTION
These functions set the format that will be used for the archive.
The library can write POSIX octet-oriented cpio format archives, POSIX-standard ``pax interchange'' format archives, traditional ``shar'' ar-
chives, enhanced ``dump'' shar archives that store a variety of file attributes and handle binary files, and POSIX-standard ``ustar'' ar-
chives. The pax interchange format is a backwards-compatible tar format that adds key/value attributes to each entry and supports arbitrary
filenames, linknames, uids, sizes, etc. ``Restricted pax interchange format'' is the library default; this is the same as pax format, but
suppresses the pax extended header for most normal files. In most cases, this will result in ordinary ustar archives.
RETURN VALUES
These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL.
ERRORS
Detailed error codes and textual descriptions are available from the archive_errno() and archive_error_string() functions.
SEE ALSO tar(1), libarchive(3), archive_write(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5)BSD February 2, 2012 BSD