04-15-2020
Thank you, but nope.
Still fails.
It passes [a-zA-Z] (double & single quotes) just to fail at the '^\[\[' line AFTERwards....
But either way, the "++debug output showed single quotes in the first post, despite not having them.
AHHHHHHHHHHHHHHHHH SCREW IT....
Closed terminal... started a new one and now....
No colors/borders anymore... FFFFFF=white of anger....
Bet the issue was somewhere there (in the env-memory of said now-closed terminal window-tab).....
All my (obviously imagined) fixes.. worthless... once more... again....
I'm back to square one... to fix the display-functions that i THOUGHT were working yesterday evening.. 24 hrs ago... WTF?!?!
No more coding today...
8 More Discussions You Might Find Interesting
1. Linux
We have requirments to not allow a userid login abilities but allow users to 'su' to it. In solaris I normally set the shell in /etc/passwd to bin/false. THis does not work on Linux, any suggestions would help. (1 Reply)
Discussion started by: bryanthomas
1 Replies
2. Shell Programming and Scripting
i want to delete every newline and every line which starts with "RECORD......." in a file.
FILE:
Record 61391 in base BROCKHAUS (Timestamp: 2008-04-09 11:38:38)
UNTERTITEL :
Gräfin (seit 1707 Reichsgräfin) von, * Schwerin 4. 2. 1686, + Berlin
21. 10. 1744; wurde
Record 61392 in base BROCKHAUS... (4 Replies)
Discussion started by: trek
4 Replies
3. Shell Programming and Scripting
Hi,
I'm new to UNIX and am trying to learn shell scripting in order to work on an interface that I inherited when a co-worker left. I need to be able to check to see whether a file exists to determine whether the FTP has taken place, but in testing, the if statement always evaluates as false,... (3 Replies)
Discussion started by: JeffR
3 Replies
4. Shell Programming and Scripting
Hi All,
I am using the below Script to enter a line in the File:
#!/bin/ksh
# To delete the last line if it contains the pattern Redirect permanent / Virgin Atlantic Airways - Popup
echo "Enter the URL that should point to the particular microsite"
read url
# To delete the last line if it... (0 Replies)
Discussion started by: Shazin
0 Replies
5. IP Networking
Why this happens?
How to solve this?
$netstat -na |grep 9325
tcp 0 0 127.0.0.1:9325 127.0.0.1:9325 ESTABLISHED
When a client socket repeatedly tries to connect to an inactive(no server socket is listening on this port) local port,connect succeeds.
... (1 Reply)
Discussion started by: johnbach
1 Replies
6. AIX
Checking configuration access files for an AIX server, left me wondering about this :confused::
If a user is added to system group, it gets gid=0 with some security risks because it gets some root kind of file access level.
Is this insecure condition kept if the user has admin variable... (0 Replies)
Discussion started by: bkiddo
0 Replies
7. UNIX for Dummies Questions & Answers
I have read the below from the book bash cookbook.Tail +1 filenames is similar to cat filename
I have tried the same in Ubuntu 11.10 with bash. 4.0 .
I have received error for the Same.
May I know in which system that will work fine ?
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
8. Shell Programming and Scripting
Hi
I have written a script to send email alerts when load of my linux server reaches max point
I keep getting false emails thought the load is normal , looks like same email is generated again and again - called from cron tab
checked if the tempfile is present , no it is not , cleaned... (22 Replies)
Discussion started by: anil529
22 Replies
LEARN ABOUT REDHAT
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)