03-03-2008
looking at the bigger picture, i feel this is all very messy. You seem to want to change the contents of a script dynamically? Do you need to change it everytime?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have an requirement of reading a long line of 7000 chars and cutting it
iam doing this :
while read -r x
do
echo $x
.........
done < `cat filename`
when iam doing this it is giving me "0403-016 Cannot find or open the file."
Can anyone let how this can be done. (2 Replies)
Discussion started by: karthee
2 Replies
2. Shell Programming and Scripting
Hey all, I need to retrieve something from a line, say
<TEST><A>123</A><B>456</B><ID>1111</ID><C>789</C><D>000</D></TEST><TEST><A>123</A><B>456</B><ID>2222</ID><C>789</C><D>000</D></TEST>
I need to match <ID>111</ID>, so I want to retrieve
<ID>1111</ID><C>789</C><D>000</D></TEST>
is... (14 Replies)
Discussion started by: mpang_
14 Replies
3. UNIX for Dummies Questions & Answers
I'm getting a "line too long" error when I try to vi a particular file. I really just need to view the contents as I don't have to change anything. Any suggestions?? I already tried to cat but it didnt work........:( (7 Replies)
Discussion started by: shorty
7 Replies
4. UNIX for Dummies Questions & Answers
I am trying to get the count of a word from an xml using the below command
grep "search word" -c test.xml
The result is only 1, because my xml contains only one line (hule line- several thousand characters).
I guess grep command will process for only 128 characters for each line.
... (7 Replies)
Discussion started by: venky23
7 Replies
5. UNIX for Dummies Questions & Answers
Hi !
I am woking on Solaris 5.10 and face a problem sometimes when i try to open files in the vi editor .
Sometime when the file is big i am not able to view the file in vi and i get the error like
I guess vi have some line size setting and if the lines are ,longer than that... (4 Replies)
Discussion started by: Paarth
4 Replies
6. Shell Programming and Scripting
hello
i try this command in console mode
sed -e :a -e '/$/N; s/\(\)\n/\1 /; ta' test.txt > result.txt
i have in the output screen "Output line too long" for multiples lines
can you please tell me how can i retrieve those long lines during the execution ?
Another thing very... (5 Replies)
Discussion started by: ade05fr
5 Replies
7. Shell Programming and Scripting
Hello,
Need help substituting a particular word in a file having a single line but no newline character at the end.
I was trying to use sed but it doesn't work probably because there is no newline char at the end of the line.
$ cat hlq_detail
/outputs/alvan23/PDFs/bills
$ cat... (5 Replies)
Discussion started by: Shan_u2005
5 Replies
8. Solaris
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
4 Replies
9. Shell Programming and Scripting
Hello all,
i need to get a script running which checks for powersupply problems of attached storages. I was faced with problems running this script in a terminal session, obviously the procued outupt is to long, but the problem could be solved with 'stty columns 120'. but I can't use this... (15 Replies)
Discussion started by: themroc
15 Replies
10. Shell Programming and Scripting
Hi,
cat server.out | grep user1
grep: line too long
I tried grep -o, grep -z and cat server.out | grep user1 > output.txt
uname -a
Linux mymac 2.6.18-410.el5 #1 SMP Fri Apr 8 05:48:52 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
Can you please... (6 Replies)
Discussion started by: mohtashims
6 Replies
LEARN ABOUT OPENSOLARIS
picture
Picture(3U) InterViews Reference Manual Picture(3U)
NAME
Picture - composite structured graphic
SYNOPSIS
#include <Unidraw/Graphic/picture.h>
DESCRIPTION
A Picture defines a composition of graphic objects. A picture has its own graphics state, which it concatenates with its children's state
when it is drawn or erased. Picture adopts the default concatenation semantics supported by the Graphic base class: The picture's graphics
state effectively overrides its children's so that they are drawn with the picture's state information substituted for their own. A
child's attribute is used only when the picture does not already define it. Moreover, each child's transformer is postmultiplied by the
picture's transformer when the picture is drawn; thus children are drawn relative to the picture's coordinate system.
PUBLIC OPERATIONS
Picture(Graphic* = nil)
Construct a new picture, optionally supply a graphic from which to copy an initial set of graphics state. Picture is derived from
FullGraphic and therefore defines a full set of graphics state.
virtual ~Picture()
The picture deletes its children when it is deleted.
boolean IsEmpty()
Picture defines IsEmpty in addition to the standard Graphic child traversal operations to provide a convenient way to check if the
picture has any children.
PROTECTED OPERATIONS
Graphic* graphic(UList*)
UList* Elem(Iterator)
Convenience functions for extracting a graphic from a UList element and a UList from an iterator.
SEE ALSO
Graphic(3U), Iterator(3U), Transformer(3I), UList(3U), pspaint(3U)
Unidraw 1 February 1991 Picture(3U)