I am writing a program to display a database to the screen(xterm) and want to allow the window resize signal to increase/decrease the amount data that is displayed. I have a signal handler function for catching the SIGWINCH event and calling a function to reallocate the space for the windows... (0 Replies)
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
Hi,
I"m trying to achieve the following:
I have a NAS which holds all my pictures, and have it mounted on my xbmc as a network share. I want to automatically synchronize my pictures (NAS -> xbmc, one direction).
But, during the synchronization I want to resize the pictures to make them... (7 Replies)
Hi,
I have a directory with Multiple subdirectories and 1000s of pictures (jpg) in each directory. The problem is that each directory has a 001.jpg in them. I want to append a unique name (the directory_name)would be fine. and then move them to one main backup directory once they have been... (1 Reply)
Is there a script or extension that I can look into that will re-size an allotment of images to a given size?? Id like to take images of a certain size and resize them but Im dont remember an install option that can do it if installed in ubuntu but I, also unsure in what code I will have to learn.... (2 Replies)
Hi & good day,
How to use find correctly ?
I have several folders, _img1, _img2 etc.
Then I want to use the find command to find part of an image name, such as:
the string ”modern”
which is (at least) in:
”_img2/modern_world2PS220.jpg”
Also I want to know _in which folder_ it... (10 Replies)
Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Discussion started by: JonaQuinn
1 Replies
LEARN ABOUT REDHAT
pamdice
pamdice(1) General Commands Manual pamdice(1)NAME
pamdice - slice a Netpbm image into many horizontally and/or vertically
SYNOPSIS
pamslice -outstem=filenamestem [-width=width] [-height=height] [-verbose] [filename]
You can use the minimum unique abbreviation of the options. You can use two hyphens instead of one. You can separate an option name from
its value with white space instead of an equals sign.
DESCRIPTION
Reads a PAM, PBM, PGM, or PPM image as input. Splits it horizontally and/or vertically into equal size pieces and writes them into sepa-
rate files as the same kind of image.
See the -outstem option for information on naming of the output files.
The -width and -height options determine the size of the output pieces.
pnmcat can rejoin the images.
OPTIONS -outstem=filenamestem
This option determines the names of the output files. Each output file is named filenamestem_y_x.type where filenamestem is the
value of the -outstem option, x and y are the horizontal and vertical locations, respectively, in the input image of the output
image, zero being the leftmost and top, and type is .pbm, .pgm, .ppm, or .pam, depending on the type of image.
-width=width
gives the width in pixels of the output images. The rightmost pieces are smaller than this if the input image is not a multiple of
width pixels wide.
-height=height
gives the height in pixels of the output images. The bottom pieces are smaller than this if the input image is not a multiple of
height pixels high.
-verbose
Print information about the processing to Standard Error.
SEE ALSO pamcut(1), pnmcat(1), pgmslice(1), pnm(5)AUTHOR
put by Bryan Henderson in the public domain in 2001
31 January 2001 pamdice(1)