Sponsored Content
Top Forums Shell Programming and Scripting To tar the content while copying files Post 302654425 by Chubler_XL on Monday 11th of June 2012 11:05:12 PM
Old 06-12-2012
If you want to store tar contents of directory ./XYZ and all files/directores under it to /path/to/dest/XYZ.tar use:

Code:
tar cf /path/to/dest/XYZ.tar  ./XYZ

Example contents of /path/to/dest/XYZ.tar tarfile might be:

Code:
./XYZ/.profile
./XYZ/.kshrc
./XYZ/save.ksh
./XYZ/ZZZ
./XYZ/ZZZ/testing.c
./XYZ/ZZZ/testing.o

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

copying content of a file

Hi, I have a file in my unix system let's call it FileName. First I want to copy its content into a another file, but outside of the unix, meaning I could open it at home. (text file would be perfect) Second (if it's possible) I need to take the first word of each line in the file (you know... (2 Replies)
Discussion started by: talzohar
2 Replies

2. Shell Programming and Scripting

Copying selected content from file

I want to capture contents of a file between 2 strings into another file for eg all lines in between the keywords "start log" and "end log" should be copied into another file (1 Reply)
Discussion started by: misenkiser
1 Replies

3. AIX

copying files to a remote aix server using tar!

Hi, I am using AIX 5.2, and I want to copy some files from one server to a remote server using tar command. Can anybody tell me exact command? Thanks. Aqeel (2 Replies)
Discussion started by: system-admin
2 Replies

4. UNIX for Dummies Questions & Answers

Copying the content of a filesystem to different Harddrive

my server runs solaris 10 , one of the partition in my primary harddrive is 99% full , i want to move the contents of it to the second harddrive . what is the best way to move the contents to 2nd drive ? which command should i use cpio/dd/tar/ufsdump .... please guide me with the command and the... (0 Replies)
Discussion started by: skamal4u
0 Replies

5. Solaris

Copying the content of a filesystem to different Harddrive

my server runs solaris 10 , one of the partition in my primary harddrive is 99% full , i want to move the contents of it to the second harddrive which has higher capacity. what is the best way to move the contents to 2nd drive ? which command should i use cpio/dd/tar/ufsdump .... please guide me... (1 Reply)
Discussion started by: skamal4u
1 Replies

6. 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

7. Shell Programming and Scripting

Shell :copying the content from one file to another

I have a log containing the below lines. file1.log ----------- module: module1 module10 module2 module002 module9 moduleRT100.2.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... (1 Reply)
Discussion started by: giridhar276
1 Replies

8. Shell Programming and Scripting

Copying all the .sh files into a tar file

Hi All , I need to tar all the .sh files in a server along with the path . Please let me know is there any way this can be accomplished . Need to grep through all the directories and sub directories in a server and tar all the .sh scripts . (16 Replies)
Discussion started by: saj
16 Replies

9. UNIX for Beginners Questions & Answers

Linux read specific content file from tar.gz files without extracting

hello i wish to write the result of these below conditions in a file: 1. in a specific folder, i have many tar.gz files. 2. each tar.gz file contains ".dat" file in sub folders. 3. i wish to get the full path of these .dat files, if i find in it a specific word ("ERROR24"). 4. all this... (6 Replies)
Discussion started by: jimmyjames9
6 Replies
pfsoutexr(1)						      General Commands Manual						      pfsoutexr(1)

NAME
pfsoutexr - Write images or frames in OpenEXR format SYNOPSIS
pfsoutexr [--compression <method>] [--keep-xyz] (<file> [--frames <range>]) [<file>...] DESCRIPTION
Use this command to write frames in OpenEXR format. Source pfs frames should be piped to the Standard Input. This command can write arbi- trary channels to OpenEXR, color channels XYZ however are specially handled (see option keep-xyz). All tags from pfs stream are stored in an OpenEXR file as String attributes. Tags assigned to channels are stored in the format <chan- nel_name>:<tag_name>, so that pfsinexr can later restore tags in the appropriate channels. The depth channel DEPTH is renamed to Z to keep compatibility with pfsinexr. If the luminance is absolute (tag LUMINANCE set to ABSOLUTE), WhiteLuminance attribute in OpenEXR file is set to 1. Details on the format of the pattern file names, which are used for saving multiple frames, can be found in the manual page of pfsoutppm. --compression <method>, -c <method> Use one the the available compression methods: NO - no compression RLE - run length encoding ZIPS - zlib compression, one scan line at a time ZIP - zlib compression, in blocks of 16 scan lines PIZ - piz-based wavelet compression (default) PXR24 - lossy 24-bit float compression --keep-xyz By default, color channels XYZ from pfs stream are converted to RGB color space and HALF format, which is a standard format for color data in OpenEXR. Since Half format is 16-bit and floating points values used in pfs stream are 32-bit, this conversion causes loss of precision. When keep-xyz option is specified, color channels XYZ are stored as they are without any conversion (32-bit float XYZ channels). Note however, that most OpenEXR applications can recognize only RGB Half format images and can not handle 32-bit XYZ. --fix-halfmax The maximum value that can be stored in OpenEXR file is limited to 65504 if 16-bit HALF float is used (color channels are stored by default in this format unless --keep-xyz switch is specified). If the luminance data is calibrated in absolute values (cd/m^2), pixel values can easily exceed 65504. To avoid clamping large pixel values, pfsoutexr can rescale data to the range that is valid for 16-bit HALF float format when --fix-halfmax switch is specified. If this switch is missing, a warning message is displayed. Scale factor used for rescaling is stored in OpenEXR file as OpenEXR standard attribute WhiteLuminance, so that pfsinexr can later restore the absolute values. EXAMPLES
pfsin memorial.hdr | pfsoutexr memorial.exr Converts from one HDR format to another SEE ALSO
pfsout(1) pfsoutppm(1) pfsinexr(1) BUGS
pfsinexr and pfsoutexr can not take stdin / stdout as an input/output (dash '-' instead of file name). Please report bugs and comments on implementation to the discussion group http://groups.google.com/group/pfstools pfsoutexr(1)
All times are GMT -4. The time now is 01:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy