Sponsored Content
Top Forums Shell Programming and Scripting Find a special string in a text document Post 302403409 by lnino on Friday 12th of March 2010 11:16:59 AM
Old 03-12-2010
No difference.

Your were just faster with answering.

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help on find a document

Hey all, I've been trying to find a document. The document is a list of all supported hardware that Solaris 7 supports. If anyone knows where this can be found thx in advanced. I've tried looking through the docs.sun.com site and can't find what I am after. It's just a list of hardware... (1 Reply)
Discussion started by: merlin
1 Replies

2. Shell Programming and Scripting

Looking for command(s)/ script to find a text string within a file

I need to search through all files with different file suffixes in a directory structure to locate any files containing a specific string (5 Replies)
Discussion started by: wrwelden
5 Replies

3. UNIX for Dummies Questions & Answers

Help with find and replace w/string containing special characters

Can I get some help on this please, I have looked at the many post with similar questions and have tried the solutions and they are not working for my scenario which is: I have a text file (myfile) that contains b_log=$g_log/FILENAME.log echo "Begin processing file FILENAME " >> $b_log ... (4 Replies)
Discussion started by: CAGIRL
4 Replies

4. Shell Programming and Scripting

Find text containing paths and replace with a string in all the python files

I have 100+ python files in a single directory. I need to replace a specific path occurrence with a variable name. Following are the find and the replace strings: Findstring--"projects\\Debugger\\debugger_dp8051_01\\debugger_dp8051_01.cywrk" Replacestring--self.projpath I tried... (5 Replies)
Discussion started by: noorsam
5 Replies

5. UNIX for Dummies Questions & Answers

find text enclosed between special characters

Hi, I'm trying to find all DISTINCT words having _mr in the line and ENCLOSED in '/'. For eg below is the text in a file.. /database/new_mr254/1 /database/rawdb/views/new_mr254/1 /database/project/rawdb/tables/new_mr232/1 /database/project/rawdb/views/new_mr253/1... (5 Replies)
Discussion started by: northwest
5 Replies

6. Shell Programming and Scripting

Find string in text file

Hello! Please, help me to write such script. I have some text file with name filename.txt I must check if this file contains string "test-string-first", I must cut from this file string which follows string "keyword-string:" and till first white-space and save it to some variable. For... (3 Replies)
Discussion started by: optik77
3 Replies

7. Shell Programming and Scripting

How to find repeated string in a text file

I have a text file where I need to find the string = ST*850* This string is repetaed several times in the file, so I need to know how many times it appears in the file, this is the text files: ISA*00* *00* *08*925485USNR *ZZ*IMSALADDERSP... (13 Replies)
Discussion started by: cucosss
13 Replies

8. Shell Programming and Scripting

sed - Find a String and append a text end of the Line

Hi, I have a File, which have multiple rows. Like below 123456 Test1 FNAME JRW#$% PB MO Approver XXXXXX. YYYY 123457 Test2 FNAME JRW#$% PB MO Super XXXXXX. YYYY 123458 Test3 FNAME JRW#$% PB MO Approver XXXXXX. YYYY I want to search a line which contains PB MO Approver and append... (2 Replies)
Discussion started by: java2006
2 Replies

9. Shell Programming and Scripting

[Need help] perl script to find the occurance of string from a text file

I have two files 1. input.txt 2. keyword.txt input.txt has contents like .src_ref 0 "call.s" 24 first 0x000000 0x5a80 0x0060 BRA.l 0x60 .src_ref 0 "call.s" 30 first 0x000002 0x1bc5 RETI .src_ref 0 "call.s" 31 first 0x000003 0x6840 ... (2 Replies)
Discussion started by: acdc
2 Replies

10. UNIX for Beginners Questions & Answers

Find and replace a string in a text file

Dear all, I want to find all the "," in my text file and then replace the commas to a tab. I found a script online but I don't know how to modify the script for my case. Any one can help? Thank you. @echo off &setlocal set "search=%1" set "replace=%2" set "textfile=Input.txt" set... (2 Replies)
Discussion started by: forevertl
2 Replies
pnmscalefixed(1)					      General Commands Manual						  pnmscalefixed(1)

NAME
       pnmscalefixed - scale a portable anymap quickly, but less accurate

DESCRIPTION
       pnmscalefixed is the same thing as pnmscale except that it uses fixed point arithmetic internally instead of floating point, which makes it
       run faster.  In turn, it is less accurate and may distort the image.

       Use the pnmscale man page with pnmscalefixed.  This man page only describes the difference.

       pnmscalefixed uses fixed point 12 bit arithmetic.  By contrast, pnmscale uses floating point arithmetic which on most machines is  probably
       24  bit	precision.   This  makes pnmscalefixed run faster (30% faster in one experiment), but the imprecision can cause distortions at the
       right and bottom edges.

       The distortion takes the following form: One pixel from the edge of the input is rendered larger in the	output	than  the  scaling  factor
       requires.  Consequently, the rest of the image is smaller than the scaling factor requires, because the overall dimensions of the image are
       always as requested.  This distortion will usually be very hard to see.

       pnmscalefixed with the -verbose option tells you how much distortion there is.

       The amount of distortion depends on the size of the input image and how close the scaling factor is to an integral 1/4096th.

       If the scaling factor is an exact multiple of 1/4096, there is no distortion.  So, for example doubling or halving an image causes no  dis-
       tortion.  But reducing it or enlarging it by a third would cause some distortion.  To consider an extreme case, scaling a 100,000 row image
       down to 50,022 rows would create an output image with all of the input squeezed into the top 50,000 rows, and the last  row  of	the  input
       copied into the bottom 22 rows of output.

       pnmscalefixed  could  probably be modified to use 16 bit or better arithmetic without losing anything.  The modification would consist of a
       single constant in the source code.  Until there is a demonstrated need for that, though, the Netpbm maintainer wants to  keep  the  safety
       cushion afforded by the original 12 bit precision.

       pnmscalefixed does not have pnmscale 's -nomix option.

								 18 November 2000						  pnmscalefixed(1)
All times are GMT -4. The time now is 06:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy