01-24-2010
What OS are you using?
Commands have different flags based on the OS.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi !
i have to write a script that archivs homes not used since 3 years.
First, my script gathers the users that are concerned, using the following command :
ll -lt /home/*/.sh_history | egrep '2000|1999|1998|1997' | awk '{print $3}'
i obtain a list like this :
user_1
user_2
...... (3 Replies)
Discussion started by: tomapam
3 Replies
2. UNIX for Dummies Questions & Answers
Hi All
Can some one help me out.
Please tell the unix command to cound the number of files in a folder.
Ungent please#
Thanks manas (6 Replies)
Discussion started by: manas6
6 Replies
3. Shell Programming and Scripting
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)
Discussion started by: edr
4 Replies
4. UNIX for Dummies Questions & Answers
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
When i am tar the file particular ,csv file format in a folder i am receiving the error
Command:
tar cf New_data.tar /new/file/mari/getdata/small/*.xml
Arguements too long
But sometimes
i am able to compress other folder but the tar folder contains all the file format and... (10 Replies)
Discussion started by: marivinay
10 Replies
6. Shell Programming and Scripting
Hi,
I have hundreds of files "*.out" located in one folder,
and I want to:
1. Identify the good files containing "Normal termination" (grep "Normal termination" *.out )
2. Compress the good files into a tar.gz file (tar cvfz good.tar.gz *.goog.out )
Is there a way I can automate this... (4 Replies)
Discussion started by: rockytodd
4 Replies
7. Emergency UNIX and Linux Support
Hi All-
I want to extract a particular folder from .tar format files.
For example:
File Name: backup.tar
The backup.tar contains the below folders & files.
1) /root_folder/Folder1/Folder1-1/*
2) /root_folder/Folder1/Folder1-2/*
3) /root_folder/Folder2/Folder2-1/*
4)... (5 Replies)
Discussion started by: k_manimuthu
5 Replies
8. Shell Programming and Scripting
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
9. UNIX for Dummies Questions & Answers
Hi,
I do have question for un tar a file. I have several 'tar'ed files. For example: SRS.tar.bz2. I was trying to untar them in a linux server using the command:
tar xvjf SRS.tar.bz2
It worked perfectly. but when I open this file in my mac computer all the files are extracted into a... (7 Replies)
Discussion started by: Lucky Ali
7 Replies
10. HP-UX
Environment: HP-Unix Operating System B.11.31 U ia64
I have a folder with around 2000 files. There are some files which sizes are more than 8 GB. I need to compress all the files in the folder into a single file, so that I can transfer the file.
I tried with tar command, but the tar... (8 Replies)
Discussion started by: Siva SQL
8 Replies
LEARN ABOUT REDHAT
ppmnorm
ppmnorm(1) General Commands Manual ppmnorm(1)
NAME
ppmnorm - normalize the contrast in a portable pixmap
SYNOPSIS
ppmnorm [-bpercent N | -bvalue N] [-wpercent N | -wvalue N] [ppmfile]
DESCRIPTION
Reads a portable pixmap as input. Normalizes the contrast by forcing the lightest pixels to white, the darkest pixels to black, and lin-
early rescaling the ones in between; and produces a portable pixmap as output.
Works by computing the realtive grey-level of each pixel a'la ppmtopgm, and uses those values to scale the RGB levels. Note that this is
different from using pgmnorm on the individual red, green, and blue greymaps (as produced by ppmtorgb3) and recombining them.
OPTIONS
By default, the darkest 2 percent of all pixels are mapped to black, and the lightest 1 percent are mapped to white. You can override
these percentages by using the -bpercent and -wpercent flags, or you can specify the exact pixel values to be mapped by using the -bvalue
and -wvalue flags. Appropriate numbers for the flags can be gotten from the ppmhist tool. If you just want to enhance the contrast, then
choose values at elbows in the histogram; e.g. if value 29 represents 3% of the image but value 30 represents 20%, choose 30 for bvalue.
If you want to lighten the image, then set bvalue to 0 and just fiddle with wvalue; similarly, to darken the image, set wvalue to maxval
and play with bvalue.
All flags can be abbreviated to their shortest unique prefix.
SEE ALSO
pgmnorm(1), ppmhist(1), ppm(5)
AUTHOR
Wilson H. Bent. Jr. (whb@usc.edu), heavily based on the pgmnorm filter by Jef Poskanzer.
7 October 1993 ppmnorm(1)