12-16-2005
Are you talking about endian changes by any chance?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please any one can help me how to swap first 2 words in every line in a file using sed
Thankk you (4 Replies)
Discussion started by: web123
4 Replies
2. Shell Programming and Scripting
hi,
I am a begginer in unix and i want to know how to open a file and read it and separate the numbers & words and storing it in separate files, Using shell scripting.
Please help me out for this.
Regards
S.Kamakshi (2 Replies)
Discussion started by: kamakshi s
2 Replies
3. Shell Programming and Scripting
Is it possible to do this with sed?
Go from this:
958211 XXYYXXYYXX file1 file2 file3
958897 XXYYXXYYXX file1 file2
To this:
file1 file2 file3 XXYYXXYYXX 958211
file1 file2 XXYYXXYYXX 958897
The only thing consistant is XXYYXXYYXX. The numbers and files vary in length. I have seen I... (5 Replies)
Discussion started by: crowman
5 Replies
4. Shell Programming and Scripting
Hi Everybody,
I am trying to write a script that will get some perticuler data from a file and redirect to a file.
My Question is,
I have a Very huge file,In that file I have my required data is started from 25th line and it will ends in 100th line.
I know the line numbers, I need to get all... (9 Replies)
Discussion started by: Anji
9 Replies
5. Shell Programming and Scripting
I have a file with a list of config files numbered on the lefthand side 1-300. I need to have bash read each lines number and assign it to a variable so it can be chosen by the user called by the script later.
Ex. 1 some data
2 something else
3 more stuff
which number do you... (1 Reply)
Discussion started by: glev2005
1 Replies
6. UNIX for Dummies Questions & Answers
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
Discussion started by: grc
5 Replies
7. Shell Programming and Scripting
Hi,
I have a set of files in a directory that I have to read and replace the first occurrence of a number with another dummy number. This is what I have so far but it does not seem to work. The files have lot of other data in each row and each data element is separated by ,@,
for file in... (13 Replies)
Discussion started by: scorpioraghu
13 Replies
8. Shell Programming and Scripting
Hi!
I just want to count number of files in a directory, and write to new text file, with number of files and their name
output should look like this,,
assume that below one is a new file created by script
Number of files in directory = 25
1. a.txt
2. abc.txt
3. asd.dat... (20 Replies)
Discussion started by: Akshay Hegde
20 Replies
9. Shell Programming and Scripting
Hi friends, here is my problem.
I have three files like this..
cat file1.txt
=======
unix is best
unix is best
linux is best
unix is best
linux is best
linux is best
unix is best
unix is best
cat file2.txt
========
Windows performs better
Mac OS performs better
Windows... (4 Replies)
Discussion started by: Jagadeesh Kumar
4 Replies
LEARN ABOUT OSF1
dxmsvngetselections
DXmSvnGetSelections(3X) DXmSvnGetSelections(3X)
NAME
DXmSvnGetSelections - Retrieves (returns) a list of selected entry numbers.
SYNOPSIS
void DXmSvnGetSelections(
Widget widget,
int *entries(),
int *comps(),
XtPointer *tags(),
int len );
PARAMETERS
The identifier (widget ID) of the SVN widget. A pointer to an array of integers to receive the selected entry numbers. A pointer to an
array of integers to receive the component numbers on which the entry was selected. A component number of 0 means that the entry was
selected using range selection and not by directly clicking on the entry. If components are not needed, a Null pointer may be passed. A
pointer to an array of longwords to receive the application tag value for each entry selected. If tags are not needed, a Null pointer may
be passed. An integer that represents the number of entries allocated in the provided array.
DESCRIPTION
The DXmSvnGetSelections routine returns a list of entries that are currently selected by the user. Make this call in your application
between calls to DXmSvnDisableDisplay and DXmSvnEnableDisplay to ensure that the selected list is not changing.
The application is responsible for managing the memory used to return this list of highlighted entries. As such, note the following: At
the minimum, the number of entries in the array should be capable of holding the number of entries indicated by the value returned from the
DXmSvnGetNumHighlighted routine. If there are more entries in the array than the application will need, the SVN widget will set the value
for those extra entries to 0. If the capacity of the arrays passed is less than the number of selected entries, only the number of entries
allocated in the provided array (the value for len) will be returned.
DXmSvnGetSelections(3X)