9 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Here is my cron entry:
13 10 * * * /home/my_login/mystf/myscriptsize.sh > /home/my_login/mystf/`date +"%Y%m%d"`log.csv
Here is my cron error:
unexpected EOF while looking for matching ``'
...cron executes:
/home/my_login/mystf/myscriptsize.sh > /home/my_login/mystf/`date +"
..and NOT... (2 Replies)
Discussion started by: landog
2 Replies
3. Shell Programming and Scripting
Dear All,
i want to search particular string and want to replance next line value.
following is the test file.
search string is
tmp,???
,10:1 "???" may contain any 3 character it should remain the same and next line replace with ,10:50
tmp,123 --- if match tmp,??? then... (3 Replies)
Discussion started by: arvindng
3 Replies
4. 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
5. 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
6. Shell Programming and Scripting
Hi,
i have to search for a char like that :
export var1="i am not happy /not happy"
with a command like :
grep $var1 file
but this not working with me !!!
thank you in advance. (2 Replies)
Discussion started by: tizilfin
2 Replies
7. Shell Programming and Scripting
Hi All,
I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text.
An example of 4 lines in my file is:
1. MatchText_randomNumberOfText moreData ReplaceMe moreData
2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Discussion started by: Crypto
4 Replies
8. 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
9. Shell Programming and Scripting
Goodmorning,
I have MKS Toolkit (K-Shell) running on a windows server. On it I have a c program that in a true unix environment works fine, but here it adds an extra '0000000000000016000A' in various places in the file that the c program produces that I need to remove.
Here is what the file... (3 Replies)
Discussion started by: philplasma
3 Replies
SoXtClipboard(3IV)() SoXtClipboard(3IV)()
NAME
SoXtClipboard -- Provides Inventor copy/paste support
INHERITS FROM
SoXtClipboard
SYNOPSIS
#include <Inventor/Xt/SoXtClipboard.h>
typedef void SoXtClipboardPasteCB(void *userData, SoPathList *pathList)
typedef void SoXtClipboardImportCB(void *userData, Atom dataType, void *data, uint32_t numBytes)
#define _XA_CLIPBOARD_ ((Atom) 0)
Methods from class SoXtClipboard:
SoXtClipboard(Widget w, Atom selectionAtom = _XA_CLIPBOARD_)
~SoXtClipboard()
void copy(SoNode *node, Time eventTime)
void copy(SoPath *path, Time eventTime)
void copy(SoPathList *pathList, Time eventTime)
void copy(Atom dataType, void *data, uint32_t numBytes, Time eventTime)
void paste(Time eventTime, SoXtClipboardPasteCB *pasteDoneFunc, void *userData = NULL)
void addPasteInterest(Atom dataType, SoXtClipboardImportCB *pasteImportFunc, void *userData = NULL)
DESCRIPTION
This class manages data transfers for copy and paste. Transfers may occur within the same process, or between different processes. This
uses the Xt selection mechanism to implement the ICCCM protocol for the transfer of data.
METHODS
SoXtClipboard(Widget w, Atom selectionAtom = _XA_CLIPBOARD_)
~SoXtClipboard()
Constructor and destructor. w is the Xt widget for which this clipboard acts as an agent. selectionAtom is the X selection through which
data should be transferred. For quick data transfers, this should be XA_PRIMARY. The default is _XA_CLIPBOARD_ which uses the X clip-
board selection.
void copy(SoNode *node, Time eventTime)
void copy(SoPath *path, Time eventTime)
void copy(SoPathList *pathList, Time eventTime)
This copies the passed scene graph object, and tells the X server that the clipboard now owns the selection which was specified by
selectionAtom in the constructor. When a paste happens (in this window, another window, or another process), the X server will ask this
clipboard for the data it copied here. The eventTime should be the time found in the X event structure which triggered the copy opera-
tion, and is used to ensure synchronization of copy and paste requests. Data targets supported for export are INVENTOR_2_1, INVEN-
TOR_2_1_FILE, INVENTOR_2_0, INVENTOR_2_0_FILE, VRML_1_0, VRML_1_0_FILE. Also exported for backwards compatibility are INVENTOR and
INVENTOR_FILE, which are equivalent to INVENTOR_2_0 and INVENTOR_2_0_FILE.
void copy(Atom dataType, void *data, uint32_t numBytes, Time eventTime)
This behaves like the above copy routines, but the data can be in any format as specified by dataType.
void paste(Time eventTime, SoXtClipboardPasteCB *pasteDoneFunc, void *userData = NULL)
This makes a request to the X server for data to paste from the selection atom specified in the constructor (selectionAtom), then
returns. When the data is retrieved from the selection owner, the pasteDoneFunc callback is invoked. The newly pasted data is passed as
the callback function's pathList argument (an SoPathList). Data targets supported for import are INVENTOR_2_1, INVENTOR_2_1_FILE, INVEN-
TOR_2_0, INVENTOR_2_0_FILE, VRML_1_0, VRML_1_0_FILE. Also imported for backwards compatibility are INVENTOR and INVENTOR_FILE, which
are equivalent to INVENTOR_2_0 and INVENTOR_2_0_FILE.
void addPasteInterest(Atom dataType, SoXtClipboardImportCB *pasteImportFunc, void *userData = NULL)
This extends the paste interest to recognize an additional target as specified by dataType. It can be called multiple times to register
interest in more than one extension. The pasteImportFunc will be called when data of the registered type is pasted. Passing NULL as the
pasteImportFunc will remove paste interest for that data type (even if the data type is one of the defaults). This should be called
before paste() so that paste() will accept pastes of data types that have been registered here. A dataType atom can be created with
XmInternAtom, e.g.: XmInternAtom(XtDisplay(widget),"INVENTOR",False);
SEE ALSO
SoSelection, SoByteStream, SoXt, X Selections
SoXtClipboard(3IV)()