06-06-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I need to extract the Particular string from the whole word,the input file is :
123,345,aaaa,555,....,....
I need all the record from 345 so i need to eliminate the first record.
Output:
345,aaa,5555,....,.....,.....
Thanks in advance. (3 Replies)
Discussion started by: ithirak17
3 Replies
2. Shell Programming and Scripting
Just wondering if there's a better way to get these complete sentences into an array and keep the quotes intact? All the quotes make it look ugly to me but it works. I want to be able to refer to the full sentences by index. I've tried a few qw and qq/ aproaches but what I have below seems about... (4 Replies)
Discussion started by: gctaylor
4 Replies
3. Programming
Hi ,
i have a text file that contain a story
How do i extract the out all the sentences that contain the word Mon. in C++
I only want to show those sentences that contain the word mon
eg.
Monkey on a tree.
Rabbit jumping around the tree.
I am very rich, I have lots of money.
Today... (1 Reply)
Discussion started by: xiaojesus
1 Replies
4. UNIX for Dummies Questions & Answers
Hi guys
Need your help how do I extract sentences with only a word
i.e.
today is hot
hot
very
humid
humid2
Sample output
hot
very (0 Replies)
Discussion started by: jamestan
0 Replies
5. Shell Programming and Scripting
Hi Guys,
Need you quick assistance on the below, trying to extract a word from a variable
i.e. acmi101acmi102acmi103acmi104
When i use the following code awk '{gsub(/cmi102/,"")};1' it leaves a space in the variable, need to get rid of the space that it leaves. Any ideas.
the above... (3 Replies)
Discussion started by: eo29
3 Replies
6. Shell Programming and Scripting
I have a file containing strings such as:
UPDATE PS_CA_BI_FF2_TA3 SET DELETE_ME = 'Y' WHERE PROCESS_INSTANCE
BI.LAST_UPDATE_DTTM FROM PS_CA_BP_LINES LINE, PS_INTFC_BI BI WHERE
EXISTS ( SELECT 'X' FROM PS_CA_BILL_PLAN BP WHERE BP.CONTRACT_NUM
%Select(COUNTER4) SELECT COUNT(*) FROM PS_INTFC_BI... (2 Replies)
Discussion started by: simpletech369
2 Replies
7. UNIX for Dummies Questions & Answers
I have the code
message={TP=2012:09:23:00:00:00:GMT,SD=2012:09:23:00:00:00:GMT,SP=2,FT=CCGT,FG=3605}
I want to extract the FG=3605 parts of this. Please help. I am trying to do this using awk or unix. (5 Replies)
Discussion started by: JenniferTopham
5 Replies
8. Shell Programming and Scripting
hello.
I get this text when using some command :
S | Name | Type | Version | Arch | Repository
--+-----------------+---------+---------+------+-------------
| AdobeReader_enu | package | 9.5.4-1 | i486 | zypper_local
I need to get "AdobeReader_enu" from the the pattern "Ado"... (7 Replies)
Discussion started by: jcdole
7 Replies
9. Shell Programming and Scripting
Hello All,
I am extracting a part of file. the file looks as follows
USING CHARACTER SET UTF8 DEFINE JOB
(
DEFINE SCHEMA Flat_File_Schema
(
cntnt_id VARCHAR(10)
);
DEFINE OPERATOR o_mload
TYPE update
SCHEMA *
ATTRIBUTES
(
VARCHAR TdpId = @TdpId (5 Replies)
Discussion started by: nnani
5 Replies
10. Shell Programming and Scripting
Hello.
from a text file, I want to get only the first word ( before blank ) following code=
grep -i -e "WORD1" "/path/to/text/file.txt | sed -n 's/WORD1\+//p' | sed -n 's/code=/\1/p'
return an error.
sed: -e expression #1, char 12: invalid reference \1 on `s' command's RHSFor debugging... (12 Replies)
Discussion started by: jcdole
12 Replies
LEARN ABOUT DEBIAN
jpeghotp
JPEGHOTP(1) User Commands JPEGHOTP(1)
NAME
jpeghotp - find hot or dead pixels in otherwise black or white JPEG images
SYNOPSIS
jpeghotp [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE]
DESCRIPTION
Jpeghotp automatically finds hot pixels in an otherwise black JPEG image (default) or dead pixels in an otherwise white JPEG image (if the
--invert option is specified). The output is suitable as a pixel block specification file for the jpegpixi(1) program. A typical applica-
tion is to process an image taken with a digital camera with CCD defects.
To obtain a black image, take a picture in total darkness or with covered lens. To obtain a while image, take an overexposed picture of a
well-lit piece of white paper.
JPEG-FILE is the filename of the JPEG image to read. It can be -, which refers to standard input.
PIXEL-BLOCKS-FILE is the name of the file to write the coordinates and sizes of the hot (or dead) pixel blocks to. If it is omitted, the
coordinates and sizes are written to standard output.
OPTIONS
-t THRESHOLD, --threshold=THRESHOLD
Specify the threshold between noise and signal. Pixel luminosities below the threshold are considered CCD noise, luminosities above
are considered hot pixels. THRESHOLD must be a number between 0 and 100 followed by a percent character (%). The default is 10%.
-i, --invert
Invert the image. If this option is specified, dead pixels in an otherwise white image instead of hot pixels in an otherwise black
image are found.
-c, --comments
Output comments with the luminosities of the hot (or dead) pixel blocks. This can be helpful in hand tuning the pixel blocks file.
--help Display a short help text and exit immediately.
--version
Display version information and exit immediately.
BUGS
Please report bugs to <martin-jpegpixi@zero-based.org>.
COPYRIGHT
Copyright (C) 2003, 2004, 2005 Martin Dickopp
Jpeghotp is free software; it may be copied and/or modified under the terms of the GNU General Public License version 2 or (at your option)
any later version. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
jpegpixi(1)
The jpegpixi homepage: http://www.zero-based.org/software/jpegpixi/
jpegpixi 1.1.1 18-Apr-2005 JPEGHOTP(1)