12-17-2005
Yeah Jim ... i m takling abt endian change
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 SUNOS
mlib_vectorreversebyteorder_s16
mlib_VectorReverseByteOrder_S16(3MLIB) mediaLib Library Functions mlib_VectorReverseByteOrder_S16(3MLIB)
NAME
mlib_VectorReverseByteOrder_S16, mlib_VectorReverseByteOrder_U16, mlib_VectorReverseByteOrder_S32, mlib_VectorReverseByteOrder_U32,
mlib_VectorReverseByteOrder_S64, mlib_VectorReverseByteOrder_U64, mlib_VectorReverseByteOrder_F32, mlib_VectorReverseByteOrder_D64 -
reverse byte order of vector, in place
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_VectorReverseByteOrder_S16(mlib_s16 *xz, mlib_s32 n);
mlib_status mlib_VectorReverseByteOrder_U16(mlib_u16 *xz, mlib_s32 n);
mlib_status mlib_VectorReverseByteOrder_S32(mlib_s32 *xz, mlib_s32 n);
mlib_status mlib_VectorReverseByteOrder_U32(mlib_u32 *xz, mlib_s32 n);
mlib_status mlib_VectorReverseByteOrder_S64(mlib_s64 *xz, mlib_s32 n);
mlib_status mlib_VectorReverseByteOrder_U64(mlib_u64 *xz, mlib_s32 n);
mlib_status mlib_VectorReverseByteOrder_F32(mlib_f32 *xz, mlib_s32 n);
mlib_status mlib_VectorReverseByteOrder_D64(mlib_d64 *xz, mlib_s32 n);
DESCRIPTION
Each of these functions changes the encoding of each element from big endian to little endian, or from little endian to big endian.
It reverses the byte order of each element of the vector, in place.
PARAMETERS
Each of the functions takes the following arguments:
xz Pointer to input and output vector.
n Number of elements in the vectors.
RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_VectorReverseByteOrder(3MLIB), mlib_VectorReverseByteOrder_Inp(3MLIB), mlib_VectorReverseByteOrder_S16_S16(3MLIB), attributes(5)
SunOS 5.10 9 Nov 2004 mlib_VectorReverseByteOrder_S16(3MLIB)