Hi dasun...
As a starting point you could try something like this and is fully POSIX compliant...
Longhand on OSX 10.14.3, default bash terminal calling dash purely as a demonstration:
This ASSUMES you want the whole of (binary1) string replacing.
Friends,
I've tried on solaris, but I could n't get ascii data
dd if=binaryinputfile bs=1 skip=3800 count=4 | od -t u4
output :
INDBU3:/usr/users/FTAMUSER/kk $
dd if=SMP20041006173649188151 bs=1 skip=3800 count=4 | od -t u4
4+0 records in
4+0 records out
0000000 0000000000
0000004... (4 Replies)
Hi everybody. I need help and I hope someone is willing to help me out here.
My wholesale company is currently moving to new software. The old software is running on a UNIX platform. We need to migrate data from the UNIX system, but our former software provider refuses to assist the data... (5 Replies)
Hi All,
Please help me out with a script which checks whether a given file say abc.txt is in ASCII format and data is tab-delimited. If the condition doesn't satisfy then it should generate error code "100" for file not in ASCII format and "105" if it is not in tab-delimited format.
If the... (9 Replies)
hi
i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format,
please help
thanks in advance
satya (1 Reply)
Hi All,
Please let me know if it is possible to convert data from ASCII to Packed Decimal through Unix?
Basically we have ASCII file with numeric data we want to convert that files data to Packed decimal format to send it to main frame.
Please let me know if we can do it through unix script.... (1 Reply)
I have an ASCII 28 delimited text file(non-printable delimiter) with 4 columns along with the header.I need to open this text file in Excel or any other tool to view each column content.
Please help..
Thanks (6 Replies)
Hi,
I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ?
gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (0 Replies)
Hello,
With bash-script (ubunto server) I'm trying to read a binary file and, for each character, give back its ascii code (including extended ascii). For example:
HEX => ASCII => PRINT
f5 => 245 => õ
50 => 80 => P
To load the binary file into a variable I tried in this way: ... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi Guys,
I am new on the scripting world and would like ask for help if you can.
Here are my questions... (1 Reply)
Discussion started by: mahiwaga
1 Replies
LEARN ABOUT HPUX
strord
strord(3C)strord(3C)NAME
strord - convert string data order
SYNOPSIS DESCRIPTION
The text orientation (mode) of a file can be right-to-left (non-Latin) or left-to-right (Latin). This text orientation can affect the way
data is arranged in the file. The data arrangements that result are called screen order and keyboard order.
converts the order of characters in s2 from screen to keyboard order or vice versa and places the result in s1. The arguments s1 and s2
point to strings (arrays of characters terminated by a null character). returns s1.
performs the conversion based on mode information indicated by the argument m. The argument m is of type nl_mode found in the header file
The mode argument can have two possible values: and
If the mode argument is the text orientation is left-to-right, and all non-Latin sub-strings are reversed. Non-Latin sub-strings are any
number of contiguous right-to-left language characters. Non-Latin sub-strings are delimited by ASCII characters.
Similarly, if the mode argument is the text orientation is right-to-left and all Latin sub-strings are reversed. Latin sub-strings are any
number of contiguous printable ASCII characters. Latin sub-strings are delimited by right-to-left language characters and ASCII control
codes.
Some right-to-left languages have a duplicate set of digits called alternative numbers. Alternative numbers always have a left-to-right
orientation.
EXTERNAL INFLUENCES
Locale
The category determines whether a right-to-left language has alternative numbers.
International Code Set Support
Single-byte character code sets are supported.
WARNINGS
does not check for overflow of the array pointed to by s1.
Obsolescent Interfaces
is to be obsoleted at a future date.
AUTHOR
was developed by HP.
SEE ALSO forder(1), nljust(1), setlocale(3C), environ(5), thread_safety(5).
TO BE OBSOLETED strord(3C)