Sponsored Content
Top Forums Shell Programming and Scripting Enhance existing script: Extract Multiple variables & Input in an echo string Post 303042213 by nk1984 on Thursday 19th of December 2019 01:56:43 AM
Old 12-19-2019
Thanks for your quick help.

It works absolutely fine & the execution Time is improved significantly.

Regards
Nk
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

extract from string variable into new variables

I have a variable which consists of a string like this: 001 aaabc 44 a bbb12 How do I extract each substring, delimited by the spaces, into new variables - one for each substring? eg var1 will be 001, var2 will be aaabc, var3 will be 44, var4 will be a, etc? I've come up with this:... (2 Replies)
Discussion started by: Sniper Pixie
2 Replies

2. Shell Programming and Scripting

Extract numbers from a string and store in variables

Hi All, Is it possible in Unix shell script to extract numbers from a string containing ".", such as; 5.2.314 And store in variables so; var1 = 5 var2 = 2 var3 = 314 Thanks in advance for any help anyone can provide dave (6 Replies)
Discussion started by: davewg
6 Replies

3. Shell Programming and Scripting

Find & Replace string in multiple files & folders using perl

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)
Discussion started by: Zaheer.mic
0 Replies

4. Shell Programming and Scripting

Tailing new log file & echo the string on console

Guys, I do have a script that runs to take the server out from network, after running the script it is writing the new log file{outFile} in to directory . Now what i need is my script should tail the last modified file{outFile} & search the string {Server Status} ans should echo the same at the... (0 Replies)
Discussion started by: raghunsi
0 Replies

5. Shell Programming and Scripting

Multiple Variables in Array from Existing Directories

I would like to extract directories from a specific place and keep them into an array of variables to run functions into it. Example, bash-3.00$ls adrian bryan caren derrick I want to keep each directory names into a variable adrian --> document bryan --> document caren --> document... (3 Replies)
Discussion started by: lynxlee
3 Replies

6. Shell Programming and Scripting

awk + gsub to search multiple input values & replace with located string + extra text

Hi all. I have the following command that is successfully searching for any one of the strings on all lines of a file and replacing it with the instructed value. cat inputFile | awk '{gsub(/aaa|bbb|ccc|ddd/,"1234")}1' > outputFile This does in fact replace any occurrence of aaa, bbb,... (2 Replies)
Discussion started by: dazhoop
2 Replies

7. Shell Programming and Scripting

Script to find & replace a multiple lines string across multiple php files and subdirectories

Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ? The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories. So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Discussion started by: spfc_dmt
12 Replies

8. Shell Programming and Scripting

Pattern Match & Extract from a string

Hi, I have long string in 2nd field, as shown below: REF1 | CLESCLJSCSHSCSMSCSNSCSRSCUDSCUFSCU7SCV1SCWPSCXGPDBACAPA0DHDPDMESED6 REF2 | SBR4PCBFPCDRSCSCG3SCHEBSCKNSCKPSCLLSCMCZXTNPCVFPCV6P4KL0DMDSDSASEWG I have a group of fixed patterns which can occur in these long strings & only... (11 Replies)
Discussion started by: karumudi7
11 Replies

9. Shell Programming and Scripting

How to read each line from input file, assign variables, and echo to output file?

I've got a file that looks like this (spaces before first entries intentional): 12345650-000005000GL140227 ANNUAL HELC FEE EN 22345650-000005000GL140227 ANNUAL HELC FEE EN 32345650-000005000GL140227 ANNUAL HELC FEE EN I want to read through the file line by line,... (6 Replies)
Discussion started by: Scottie1954
6 Replies

10. Shell Programming and Scripting

Extract multiple values into corresponding variables

Here is my input # MANIFEST.MF Manifest-Version: 1.0 Build-Jdk: 1.6.0 Built-By: CM_TEAM Build_SvnRev: 662789 Build_Number: 13.0.0.0-JDK8 Build_Date: Wed 04/05/2017-20:48:19.17 Archiver-Version: Plexus Archiver Created-By: Apache Maven 3.1.0 Here is the expected output:... (4 Replies)
Discussion started by: kchinnam
4 Replies
GIMPPRINT-DITHERS(7)					      Gimp-Print Manual Pages					      GIMPPRINT-DITHERS(7)

NAME
gimpprint-dithers - Gimp-Print dither algorithms DESCRIPTION
Gimp-Print includes several dither algorithms. Dithering attempts to reproduce various shades of gray (or all colors) from only a few dif- ferent inks (black, cyan, magenta, yellow, and sometimes light cyan and light magenta). The dots can't vary in darkness or size (except for certain special printers), and so we need to lay down a certain fraction of dots to represent each distinct level. Different dither algorithms are suited to different purposes, and some are significantly faster than others. DITHER ALGORITHMS
Dither Algorithm Description ------------------------------------------------------- Adaptive Adaptive Hybrid EvenTone EvenTone screening (experimental) Ordered Ordered Fast Fast VeryFast Very Fast Floyd Hybrid Floyd-Steinberg For the highest quality, we recommend use of Adaptive Hybrid dithering. For continuous tone images, Ordered works just as well and is somewhat faster. Ordered dithering yields noticeably inferior results with text and intricate line art, particularly at high resolutions. EvenTone dithering is a relatively new screening technology developed by Raph Levien. It offers superior smoothness in highlights and mid- tones, and increased accuracy in shadows, resulting in significantly improved results overall. The version of EvenTone dithering that we are using is enhanced with some additional improvements we have made. It currently only operates with CMYK (4, 6, or 7 color output) with RGB input, and should be considered experimental. Note that it is patented (see US patent 5917614), but it is licensed for use with GPL software. See http://www.levien.com/patents.html for more information. Fast dithering, which is a simplified version of ordered dither, is significantly faster, but color accuracy is worse, particularly on six color printers and printer using variable dot sizes. On simple four color printers, the quality is quite reasonable, although color print- ing will show more speckling in dark tones than Ordered dither. For single dot size printers, printing grayscale, this algorithm yields almost identical results to Ordered with some performance improvement. On three color printers, the results should be very similar to Ordered. Very Fast is even faster than Fast, with even more loss of quality. It shows even more speckling, and the output is heavily patterned. On laser printers, and possibly on certain kinds of text and line art, Very Fast dithering may actually yield the best quality. Error diffusion algorithms (Hybrid Floyd-Steinberg is such an algorithm) perform very well at high densities, and are capable of rendering very fine detail well, but they tend to exhibit artifacts in the form of "waves" or "worms" of dots which results in noticeable texturing in pale areas. Furthermore, pale areas immediately adjacent to white take a while to "build up" sufficient error to print at all. This is sometimes called "tearing". Its use is not recommended. COPYRIGHT
Copyright (C) 2001 Michael Sweet (mike@easysw.com) and Robert Krawitz (rlk@alum.mit.edu) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This manual page was written by Roger Leigh (roger@whinlatter.uklinux.net) SEE ALSO
gimpprint-color(7), gimpprint-imagetypes(7), gimpprint-inktypes(7), gimpprint-mediasizes(7), gimpprint-mediasources(7), gimpprint-medi- atypes(7), gimpprint-models(7), gimpprint-resolutions(7). Version 4.2.4 25 Nov 2002 GIMPPRINT-DITHERS(7)
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy