You're welcome, Makaveli. And I hate to add to an already too-long thread, but, I don't like posting a solution that will sometimes give incorrect results. So, I offer my new solution, which should handle all cases including suid and sticky bits. And special thanks to Perderabo for his excellent contribution.
when i list the content of a directory
date informations are also listed (ls -ltr)
for included files and directories.
for example: i see the date Jun 29 14:43
for one of the included directory,
but when i look into the files contained in
this directory i cannot see any file with this... (1 Reply)
hi,
say I have
dirA/file1
dirB/file2
and I tar them up, and then do
zcat Tar.tar | tar tvf -
Sometimes I will see:
dirA/
dirA/file1
dirB/
dirB/file2
yet other times I will see (4 Replies)
Hello All,
Got a question to make a script what reads a directory and put the file names from that directory in a file with some extra text.
ls /tempdir
output is:
file1.gfh
file2.txt
file4.zzz
these file names (always with an extention) must be placed in a line and written to... (2 Replies)
Hi all,
Have to generate an xml having information related to files in the directory
Suppose i have file
file1.xml (datafile)
file2.xml (datafile)
file3.xml (metafile)
Now i need to generate an xml in the format >>
<?xml version="1.0" encoding="UTF-8"?>
<AuditFile Version="2.0">... (8 Replies)
Hi
i have a single line xml file having many account no tag, from which i need only the account no from the tag. any one can help on this.
below is the xml file:
... (2 Replies)
Hi to all,
I got this content/pattern from file http.log.20110808.gz
mail1 httpd: Account Notice: close igchung@abc.com 2011/8/7 7:37:36 0:00:03 0 0 1
mail1 httpd: Account Information: login sastria9@abc.com proxy sid=gFp4DLm5HnU
mail1 httpd: Account Notice: close sastria9@abc.com... (16 Replies)
Hi
I am trying to extract information out of a file but keep getting grep cant open errors
the code is below:
#bash
#extract orders with blank address details
#
# obtain the current date
# set today to the current date ccyymmdd format
today=`date +%c%m%d | cut -c24-31`
echo... (8 Replies)
I need my code to compare two different files that are in two completely different directories, How can I do this?
So for example, my code will look at file1 which is in my home directory, and compare the files with those from file2 that is in /abc/adf/adr/afc/adf/file2... does that make sense? (1 Reply)
I have a flat file that looks like this, let's call it Chromosome_9.txt:
FT /Gene_Name="Guanyl-Acetylase 9"
FT /Gene_Number"36952"
FT /Gene_Name="Endoplasmic Luciferase"
FT /Gene_Number"36953"
FT ... (4 Replies)
Hi Gurus,
I am SQL developer and new unix user.
I need to create some file and file content based on information in two files.
I have one file contains basic information below file1 and another exception file file2. the rule is if "zone' and "cd" in file1 exists in file2, then file name is... (13 Replies)
Discussion started by: Torhong
13 Replies
LEARN ABOUT MINIX
pnmmontage
pnmmontage(1) General Commands Manual pnmmontage(1)NAME
pnmmontage - create a montage of portable anymaps
SYNOPSIS
pnmmontage [-?|-help] [-header=headerfile] [-quality=n] [-prefix=prefix] [-0|-1|-2|...|-9] pnmfile...
DESCRIPTION
Packs images of differing sizes into a minimum-area composite image, optionally producing a C header file with the locations of the subim-
ages within the composite image.
OPTIONS
-?, -help
Displays a (very) short usage message.
-header
Tells pnmmontage to write a C header file of the locations of the original images within the packed image. Each original image gen-
erates four #defines within the packed file: xxxX, xxxY, xxxSZX, and xxxSZY, where xxx is the name of the file, converted to all
uppercase. The #defines OVERALLX and OVERALLY are also produced, specifying the total size of the montage image.
-prefix
Tells pnmmontage to use the specified prefix on all of the #defines it generates.
-quality
Before attempting to place the subimages, pnmmontage will calculate a minimum possible area for the montage; this is either the
total of the areas of all the subimages, or the width of the widest subimage times the height of the tallest subimage, whichever is
greater. pnmmontage then initiates a problem-space search to find the best packing; if it finds a solution that is (at least) as
good as the minimum area times the quality as a percent, it will break out of the search. Thus, -q 100 will find the best possible
solution; however, it may take a very long time to do so. The default is -q 200.
-0, -1, ... -9
These options control the quality at a higher level than -q; -0 is the worst quality (literally pick the first solution found),
while -9 is the best quality (perform an exhaustive search of problem space for the absolute best packing). The higher the number,
the slower the computation. The default is -5.
NOTES
Using -9 is excessively slow on all but the smallest image sets. If the anymaps differ in maxvals, then pnmmontage will pick the smallest
maxval which is evenly divisible by each of the maxvals of the original images.
SEE ALSO pnmcat(1), pnmindex(1), pnm(5), pam(5), pbm(5), pgm(5), ppm(5)AUTHOR
Copyright (C) 2000 by Ben Olmstead.
31 December 2000 pnmmontage(1)