Hi,
need some help from all of you as i'm a beginner in shellscript. Currently i have a textfile(filename.txt) with the below content:
TOTAL: 30
RECORDS: 300
anyone one know how do i plug out the value of 30 and put into a variable(var1) and 300 into another variable(var2)?I'm coding using... (7 Replies)
I have delimited-text files ( > 4GB ) and is just one line.
OS: HP-UX 11.23
Awk / cut / sed all have line_max limitations. & unable to read one line in (Buffered-mode).
Sample file:
xxxx|adsfadf|Afdsa|adsf|afds|Asdfas|ads|Afds|Asdf| .....till forever,
I want to put a carriage... (5 Replies)
Tag allerseits
Ich habe ein umfangreiches Script. Darin möchte ich zu Beginn ein textfile lesen. Den ersten Satz.
Dann kommen mehrere Instruktionen und dann soll wieder gelesen werden. Den zweiten Satz.
Etc.
Ich kann also das herkömmliche while read xyz / do ... done nicht benützen.
... (0 Replies)
Hi all
I'm new to this forum and I really hope someone can help me out with a (for you guys) fairly easy question.
I want to have a script that takes 1-14 arguments, all numbers 1-14, say
myscript 1 3 4 5 7
what the script shall do is basically generare a textfile that contains 16... (5 Replies)
i have text file as below
CMF_COMP_ELEM_ GSM2_B71.WORLD_20121114130908.log 107496444 rows inserted into ALL_S1_CMF_COMP_ELEM.
CMF_COMP_ELEM_ GSM3_B71.WORLD_20121114130908.log 110729006 rows inserted into ALL_S1_CMF_COMP_ELEM.
CMF_COMP_ELEM_ GSM4_B71.WORLD_20121114130908.log 92549475... (8 Replies)
Hi everyone,
I need to make a script to take three parameters:
-> KEY
-> NEW_VALUE
-> FILE
The FILE is a text plane file.
The KEY is a variable to configure, for example:
KEY1 = HOLA
KEY2= HOLA
KEY3=HELLO
KEY4 =HOLA
And the... (4 Replies)
So...
I have a text file that contains this (hex.txt):
#8C7CA6
#6C70A5
#75777C
#959A90
#7A7C6C
#867DAB
#80867E
#8A87BD
#6B71C6
#8F8A79
#9A9DCE
#7E87D0
#69709E
#82968C
#7C8F81
#A3917B (5 Replies)
I want to save a variablecontent in a Textfile. How can i do that?
These works only with ls shell_exec("ls > text.txt");Please use code tags, thanks (2 Replies)
Discussion started by: Linuxmann
2 Replies
LEARN ABOUT OSX
ppmtoxpm
ppmtoxpm(1) General Commands Manual ppmtoxpm(1)NAME
ppmtoxpm - convert a portable pixmap into an X11 pixmap
SYNOPSIS
ppmtoxpm [-name=xpmname] [-rgb=rgb-textfile] [-alphamask=pgmfile] [ppmfile]
Minimum unique abbrevations are acceptable.
DESCRIPTION
Reads a portable pixmap as input. Produces X11 pixmap (version 3) as output which can be loaded directly by the XPM library.
For example, to convert the file "dot" (found in /usr/include/X11/bitmaps), from xbm to xpm one could specify
xbmtopbm dot | ppmtoxpm -name dot
or, with a rgb text file (in the local directory)
xbmtopbm dot | ppmtoxpm -name dot -rgb rgb.txt
OPTIONS -name=xpmname
The -name option allows you to specify the prefix string which is printed in the resulting XPM output. If not specified, will
default to the filename (without extension) of the <ppmfile> argument. If you do not specify -name or ppmfile, (i.e. your input is
from Standad Input), the prefix string defaults to the string noname.
rgb=rgb-textfile
The -rgb option allows you to specify an X11 rgb text file for the lookup of color name mnemonics. This rgb text file is typically
the /usr/lib/X11/rgb.txt of the MIT X11 distribution, but any file using the same format may be used. When specified and a RGB
value from the ppm input matches a RGB value from the <rgb-textfile>, then the corresponding color name mnemonic is printed in the
XPM's colormap. If you don't specify -rgb or if the RGB values don't match, then ppmtoxpm produces the color specifications in the
#RGB, #RRGGBB, #RRRGGGBBB, or #RRRRGGGGBBBB hexadecimal format.
-alphamask=pgmfile
This option names a PGM file to use as an alpha (transparency) mask. The file must contain an image the same dimensions as the
input image. ppmtoxpm marks as transparent any pixel whose position in the alpha mask image is at most half white.
If you don't specify -alphamask, ppmtoxpm makes all pixels in the output opaque.
ppmcolormask is one way to generate an alpha mask file. You might also generate it by extracting transparency information from an
XPM file with the -alphaout option to xpmtoppm. There are similar options on other Netpbm converters that convert from formats that
include transparency information too.
LIMITATIONS
An option to match the closest (rather than exact) color name mnemonic from the rgb text would be a desirable enhancement.
Truncation of the least significant bits of a RGB value may result in nonexact matches when performing color name mnemonic lookups.
SEE ALSO ppmcolormask(1), xpmtoppm(1), ppm(5)
XPM Manual by Arnaud Le Hors lehors@mirsa.inria.fr
AUTHOR
Copyright (C) 1990 by Mark W. Snitily.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, pro-
vided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup-
porting documentation. This software is provided "as is" without express or implied warranty.
This tool was developed for Schlumberger Technologies, ATE Division, and with their permission is being made available to the public with
the above copyright notice and permission notice.
Upgraded to XPM2 by
Paul Breslaw, Mecasoft SA, Zurich, Switzerland (paul@mecazh.uu.ch)
Thu Nov 8 16:01:17 1990
Upgraded to XPM version 3 by
Arnaud Le Hors (lehors@mirsa.inria.fr)
Tue Apr 9 1991
Tue Apr 9 1991 ppmtoxpm(1)