11-30-2017
Thank you for cheering me up with that story.. and for reminding me that not everything is black or white.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, everyone.
I'm now using rsync command, and please tell me what is the wildcard for below looks like.
I want to chose dotfiles, such as
.ipod
.apple
but i don't want to chose
.
and
..
------------------
.*
doesn't work, of course.
Thanks,
Euler04 (2 Replies)
Discussion started by: Euler04
2 Replies
2. Shell Programming and Scripting
I am trying to split input that looks like
,2005-09-12 01:45:00.000000,2005-09-12 01:48:18.000000,
I want to split on the dot .
What I am using is ($ev_time,$rol)=split(/\./),$inputfile;
This does not recognize the dot as what I want to split on. (2 Replies)
Discussion started by: reggiej
2 Replies
3. Shell Programming and Scripting
I wanted to change 34.66 to 34,66.
I tried the command: sed 's/./,/' $NUM
Where $NUM is a variable with 34.66 value.
The output is ,4.66 (2 Replies)
Discussion started by: bdalmeida
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Is it possible to declare variable with name having dot(.) in it ?
something like gs.test='HELLO'
Thanks in advance :) (1 Reply)
Discussion started by: gopalss
1 Replies
5. Shell Programming and Scripting
Hi,
I want to connect a Oracle databse through unix shell script.
When I will execute a shell script it will ask for user name and password to connect the databsae.
At the time of entering the password field value, it willl display the characters like star(*), dot(.) instead of exact... (2 Replies)
Discussion started by: rajesh08
2 Replies
6. Shell Programming and Scripting
Hi,
I wanted to create a script what would take two numbers out of two files and add them together, but I got stuck with greping numbers what have a dot in it.
So far I have grepped the two lines what include the numbers I need (from both files) to a third file and from that file I try to... (7 Replies)
Discussion started by: mario8eren
7 Replies
7. Shell Programming and Scripting
Hi Friends,
I have a variable which has a number (e.g. 12.1234). I want to remove "." (dot) from that number i.e. 121234
I want to do this using perl.
Can you please guide me
Thank you
Anushree (2 Replies)
Discussion started by: anushree.a
2 Replies
8. Shell Programming and Scripting
I need a script that will allow me to rename all of my files in subdir /FilesIn
as follows:
From kumc_835_111200.RMT.dat to kumc_835_111200RMT.dat
kumc_835_111200.KMR.dat to kumc_835_111200KMR.dat
.................etc
How do I do that whithout doing a sed ... (10 Replies)
Discussion started by: mrn6430
10 Replies
9. Shell Programming and Scripting
I am on hp-ux and not able to catch the file with dot using a wild card.
$ touch .test
$ ls -l .test
-rw-r--r-- 1 oracle dba 0 Mar 21 05:20 .test
$ ls -l *test
*test not found
$ ls -la *test
*test not found
Why i am not able to list the file startign with .... (7 Replies)
Discussion started by: bang_dba
7 Replies
LEARN ABOUT LINUX
pnmcrop
pnmcrop(1) General Commands Manual pnmcrop(1)
NAME
pnmcrop - crop a portable anymap
SYNOPSIS
pnmcrop [-white|-black|-sides] [-left] [-right] [-top] [-bottom] [pnmfile]
All options may be abbreviated to their shortest unique prefix or specified with double hyphens.
DESCRIPTION
Reads a PBM, PGM, or PPM image as input. Removes borders that are the background color, and produces the same type of image as output.
If you don't specify otherwise, pnmcrop assumes the background color is whatever color the top left and right corners of the image are and
if they are different colors, something midway between them. You can specify that the background is white or black with the -white and
-black options or make pnmcrop base its guess on all four corners instead of just two with -sides.
By default, pnmcrop chops off any stripe of background color it finds, on all four sides. You can tell pnmcrop to remove only specific
borders with the -left, -right, -top, and -bottom options.
If you want to chop a specific amount off the side of an image, use pnmcut.
If you want to add different borders after removing the existing ones, use pnmcat or pnmcomp.
OPTIONS
-white Take white to be the background color. pnmcrop removes borders which are white.
-black Take black to be the background color. pnmcrop removes borders which are black.
-sides Determine the background color from the colors of the four corners of the input image. pnmcrop removes borders which are of the
background color.
If at least three of the four corners are the same color, pnmcrop takes that as the background color. If not, pnmcrop looks for two
corners of the same color in the following order, taking the first found as the background color: top, left, right, bottom. If all
four corners are different colors, pnmcrop assumes an average of the four colors as the background color.
The -sides option slows pnmcrop down, as it reads the entire image to determine the background color in addition to the up to three
times that it would read it without -sides.
-left Remove any left border.
-right Remove any right border.
-top Remove any top border.
-bottom
Remove any bottom border.
-verbose
Print on Standard Error information about the processing, including exactly how much is being cropped off of which sides.
SEE ALSO
pnmcut(1), pnmfile(1), pnm(5)
AUTHOR
Copyright (C) 1989 by Jef Poskanzer.
18 March 2001 pnmcrop(1)