Sponsored Content
Top Forums Shell Programming and Scripting Recursively UNTARing and then TARing back Post 302476518 by exchequer598 on Thursday 2nd of December 2010 12:26:48 AM
Old 12-02-2010
Data

Quote:
Originally Posted by methyl
I give up.
SmilieSmilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

untaring multiple files

Hi, i'm pretty new to unix and shell scripting and i need to untar a load of files all with different names e.g. YAAN00.V404.T13467.tar, YAAN00.V404.T15623.tar etc with the .T* part following no particular series. I tried to untar them in a script using simply tar -xvf YAAN00.V404.T*.tar ... (3 Replies)
Discussion started by: rinceboy
3 Replies

2. UNIX for Dummies Questions & Answers

How to move files while Taring..

Hi, When I run the following command the files get TAR but the files in the folder remain intact. tar -cvf TARZIP.10 Nov09/ Is there any way to move them into the folder than just copying them. Thanks and regards, Gideon. (2 Replies)
Discussion started by: preethgideon
2 Replies

3. AIX

back to back printing in UNIX

Hi , Can you suggest me how to back to back printing in UNIX? Is there any way? Kindly advise. Regards Vijaya Amirtha Raj (3 Replies)
Discussion started by: amirthraj_12
3 Replies

4. IP Networking

Back-to-Back Connection using HBAs

Hi every body, Is it possible to connect two servers Back-to-Back (Point-to-Point) using HBA adapters & using Fiber. Note it is direct connection & there is no switches between the servers. I'm concern about using HBA adapters, it is possible or not. Thanks in advance. :) (3 Replies)
Discussion started by: aldowsary
3 Replies

5. Shell Programming and Scripting

TARing multiple files at once

Hi guys, I'm trying to write a quick script to archive off some data once a week. So far I have got; DATE=`date +%Y-%m-%d` TARFILE=${DATE}.tar for file in `find /usr/local/DATA/in -mtime +6`; do tar -czvf ${TARFILE} ${file}; done The problem I have is it is going through the results... (2 Replies)
Discussion started by: JayC89
2 Replies

6. Shell Programming and Scripting

Script for Taring the all the folderand move into another server

I Need to run a Unix Aix Shell Script should contains 1)Find all the folders in the directory /fss/fin. 2)Tar the Folders. 3)Move the Tar folders into another directory /fs/fi which in server .s11003232sz.net 4)When user requests untar the Folders and move it back to the orignal... (1 Reply)
Discussion started by: sreekumar
1 Replies

7. Shell Programming and Scripting

Taring 2 dir together

Hello everyone, I am trying to tar 2 directories together in KSH. tar -cvf temptarfile.tar scripts tar -cvf temptarfile.tar scripts.2 I need all the files in scripts and scripts.2 to be in one tar file. (1 Reply)
Discussion started by: BrutalBryan
1 Replies

8. Shell Programming and Scripting

Problem untaring gzip

I'm having an issue extracting my tar.gz file. I am trying to compress all directories based on their last modified date (particularly their last modified month), and move them to a different directory by month. When I run my script everything seems to work ok and my compressed file gets moved to... (4 Replies)
Discussion started by: jrymer
4 Replies

9. Shell Programming and Scripting

Issue in Untaring the Tar files Script

I have written a below script to untar the tar files from /tmp/tarfiles/ directory. # cat /tmp/tarfiles/script.sh #!/bin/sh cd /tmp/tarfiles/ TFL="tar_files_list.txt" TCF="tar_completed_list.txt" ls -l *.tar | awk '{print $9}' > $TFL for i in `cat $TFL` do if then for j in... (2 Replies)
Discussion started by: thomasraj87
2 Replies

10. UNIX for Dummies Questions & Answers

Tar command not taring all files

I am just creating tar.gz file with comand tar -zcvf xyz.tar.gz /home/xyz/* xyz folder contains thousands of files mostly .c, .cpp, etc.. I see that many times all the files are not zipped. Many files(in hundreds) are abruptly left out. What may be the reason for this and how to resolve... (10 Replies)
Discussion started by: rupeshkp728
10 Replies
ppmtopgm(1)						      General Commands Manual						       ppmtopgm(1)

NAME
ppmtopgm - convert a portable pixmap into a portable graymap SYNOPSIS
ppmtopgm [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces a portable graymap as output. The output is a "black and white" rendering of the original image, as in a black and white photograph. The quantization formula used is .299 r + .587 g + .114 b. Note that although there is a pgmtoppm program, it is not necessary for simple conversions from pgm to ppm , because any ppm program can read pgm (and pbm ) files automatically. pgmtoppm is for colorizing a pgm file. Also, see ppmtorgb3 for a different way of converting color to gray. And ppmdist generates a grayscale image from a color image, but in a way that makes it easy to differentiate the original colors, not necessarily a way that looks like a black and white photograph. QUOTE
Cold-hearted orb that rules the night Removes the colors from our sight Red is gray, and yellow white But we decide which is right And which is a quantization error. SEE ALSO
pgmtoppm(1),ppmtorgb3(1),rgb3toppm(1),ppmdist(1),ppm(5),pgm(5) AUTHOR
Copyright (C) 1989 by Jef Poskanzer. 10 April 2000 ppmtopgm(1)
All times are GMT -4. The time now is 08:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy