Hi All,
I am new to this shell scripting world. Struck up with a problem, can anyone of you please pull me out of this.
Requirement : Need to get the index of a substring from a parent string
Eg : index("Sandy","dy") should return 4 or 3.
My Approach :
I used Awk function index to... (2 Replies)
On OS 10.4.11
I have filenames like:
670711 SA T2 v1-1_DS_EF.doc
CT_670520 AM T1 v1-2_DS_EF.doc
CT_670716 - 2 SA T4 v1-2_DS_EF.doc
CT_670713 SA T3 v1-1_DS_EF.doc
670421 PA DYP1 v1-1_DS_EF.doc
CT_670425 PA DYP2 v1-1_DS_EF.doc
CT_670107 RA T3 v1-2_DS_EF.doc
CT_670521 AM T2 v1-2_DS_EF.doc... (3 Replies)
I have a shell script that uses wget to grab a bunch of html from a url.
URL_DATA=`wget -qO - "$URL1"`
I now have a string $URL_DATA that I need to pull a substring out of..say I had the following in my string
<p><a href="/scooby/929011567.html">Dog pictures check them out! -</a><font... (3 Replies)
I have a string:
hgLogOutput=" +0000 files: forum/web/hook-test.txt /forum/web/hook-test-2.txt description: test"
and I want to extract the file names from it, they will always appear between the files: and the description:. I have worked out that I can do this:
"$hgLogOutput" | awk '{... (2 Replies)
i have srtring i.e. "NAME,CLASS,AGE" (length of string is not constant) and from this string i've extract each word delimited by "," (comma).
INPUT: "NAME,CLASS,AGE"
OUTPUT: NAME
CLASS
AGE
how can i do that?
i have tried some string manipulation function like... (5 Replies)
Hi,
I'm a newbie to shell scripting and have searched the forum but couldn't find what i was looking for.
Basically I have a list of filenames like...
123-fileone.txt
I want to be able to extract the prefix up to the first '-'. So I'd end up with 123. I have attempted it using a pretty... (2 Replies)
Hello,
A question please.
A have a file that contains a string. Ex:
AAAABBCCCCCDDEEEEEEEEEEFF
I'd want to recover 2 substrings, 'BB' and 'FF' and then leave them in a new file.
Could anoyone help me please?
Thanks in advance (3 Replies)
Hello,
A question please.
A have a file that contains a string. Ex:
AAAABBCCCCCDDEEEEEEEEEEFF
I'd want to recover 2 substrings, 'BB' and 'FF' and then leave them in a new file.
From position 5, 2 caracters (ex:"BB") and from position 25, 2 caracters (ex:"FF") in a file.
Could anoyone help me... (3 Replies)
Discussion started by: nolo41
3 Replies
LEARN ABOUT SUSE
pfsinexr
pfsinexr(1) General Commands Manual pfsinexr(1)NAME
pfsinexr - Load images or frames in OpenEXR format
SYNOPSIS
pfsinexr [--keep-rgb] (<file> [--frames <range>] [--skip-missing]) [<file>...]
DESCRIPTION
Use this command to read frames in OpenEXR format. The frames are converted to pfs stream and send to the standard output. This command can
read arbitrary channels from OpenEXR files; color channels XYZ are however specially handled (see option keep-rgb).
pfsinexr reads also all string attributes from OpenEXR file and write them as tags in pfs stream. Attributes of other types are ignored. If
attribute name contains a colon (:), the part before colon is treated as a channel name and the attribute is assigned to that channel (sim-
ilar notation as command line argument of pfstag program).
pfsinexr recognizes OpenEXR standard attribute WhiteLuminance and multiplies the data by that value to get absolute luminance values (see
also --fix-halfmax switch in pfsoutexr). Additionally the tag LUMINANCE is set to ABSOLUTE unless OpenEXR files contains attribute LUMI-
NANCE set to semething else. That is the channel Y is assumued to represent absolute luminance levels in cd/m^2.
If an OpenEXR file contains 'Z' channel, it is renamed to 'DEPTH' to avoid conflict with the Z color channel for the XYZ color space.
Details on the format of the pattern file names, which are used for reading multiple frames, can be found in the manual page of pfsinppm.
To automatically recognize a file format from the extension, use pfsin command instead.
--keep-rgb
By default, color channels R, G and B from an OpenEXR file are converted to XYZ color space, which is suggested format for color
data in pfs. When keep-rgb option is specified, color channels RGB are stored as they are without any conversion.
EXAMPLES
pfsin memorial.exr | pfsout memorial.hdr
Converts from one HDR format to another
BUGS
pfsinexr and pfsoutexr can not take stdin / stdout as an input/output (dash '-' instead of file name).
Please report bugs and comments on implementation to the discussion group http://groups.google.com/group/pfstools
SEE ALSO pfsin(1)pfsinppm(1)pfsoutexr(1)pfsinexr(1)