07-03-2013
The linux version of dd in particular only does very basic translation, the iconv utility may work better.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
i am reading a string values from a file.the values are
2000
20000
300
10
5000
now retrieving each value one by one and printing if they are greater than 1000.
i use this statement for the same (in perl script)
if ($_ gt 1000){
print $_
}
but its now prininting all... (3 Replies)
Discussion started by: vivekshankar
3 Replies
2. Shell Programming and Scripting
Hi All,
I am putting the file on UNIX server using "put" remote command. i have one character i.e. Pipeline(|) in the file. When i send this file from other system(Mainframe) to UNIX server, i found that the chracter get changed to Exlametory mark(!). I don't know why?.
Can any way tell me... (2 Replies)
Discussion started by: Balkrishna
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
My input file contains the record(s) as below with space as FS.
01-01024180 35000 MV010 02/03/09 0306 03060226 03
02-00410330 470000 MV010 02/03/09 0301 03010276 03
1. I need to convert the field 02/03/09 (dd/mm/yy) to yyyymmdd yet retain the Field separator.
Using the modified... (2 Replies)
Discussion started by: talk2pawee
2 Replies
4. Programming
Hi all.
I have the following code:
#include<stdio.h>
#include<time.h>
int main()
{
struct tm tm;
time_t time = 1262322000; /*Jan, 01, 2010*/
char temp;
int i = 0;
while(i < 4)
{
memset(temp, 0, 128);
localtime_r(&time,... (2 Replies)
Discussion started by: adm1n
2 Replies
5. Shell Programming and Scripting
Hi,
typeset -l sgf # all lowercase letters
typeset -u SGF # all uppercase letters
sgf=$1
SGF=$sgf
these lines used in my scripts . It ran fine in ksh but when we convert this to bash it erroring out.
I like to know what the use of typeset ??
Thanks & Regards
kanagaraj (3 Replies)
Discussion started by: kanagaraj
3 Replies
6. Shell Programming and Scripting
This is the ldf file
dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com
objectClass: sdcsSubscriber
objectClass: top
postalCode: 29600
sdcsServiceLevel: 10
sdcsCustomerType: 14
givenName: Adelia
sdcsBlackListAll: FALSE
sdcsOwnerType: T-Mobile
sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies
7. Shell Programming and Scripting
Request if some one could provide me shell script that converts the below "input file" to "CSV format file" given
Name Domain Contact Phone Email Location
----------------------- ------------------------------------------------ ------- ----- ---------------------------------... (7 Replies)
Discussion started by: sreenath1037
7 Replies
8. Shell Programming and Scripting
Input file (each line is separaed by spaces )given below:
Name Domain Contact Phone Email Location
----------------------- ------------------------------------------------ ------- -----... (18 Replies)
Discussion started by: sreenath1037
18 Replies
9. Shell Programming and Scripting
Hi Friends,
I am not able to conver character set from UTF-8 to IBM-284 throwing an error "cannot open convertor" . Could you please help me how to get out of this error.
Below command is working fine
iconv -f ISO8859-15 -t UTF-8 fromfile.txt > tofile.txt
But the below command is... (2 Replies)
Discussion started by: sivakumarl
2 Replies
10. Linux
I have a .CSV file when I check for the special characters in the file using the command cat -vet filename.csv, i get very lengthy lines with "^@", "^I^@" and "^@^M" characters in between each alphabet in all of the records. Using the code below file filename.csv I get the output as
I have a... (2 Replies)
Discussion started by: dhruuv369
2 Replies
ftoi(3) Library Functions Manual ftoi(3)
Name
ftoi, itof, dtoi, itod, gtoi, itog - convert floating values between VAX and IEEE format
Syntax
int ftoi(value)
float *value;
int itof(value)
float *value;
int dtoi(value)
double *value;
int itod(value)
double *value;
int gtoi(value)
double *value;
int itog(value)
double *value;
Description
The following C library functions convert floating values between VAX and IEEE formats.
The function converts the specified VAX ffloat number to IEEE single-precision format. It returns zero if successful and nonzero without
performing the conversion if not successful (for example, underflow).
The function converts the specified IEEE single-precision number to VAX ffloat format. It returns zero if successful and nonzero without
performing the conversion if not successful (for example, overflow).
The function converts the specified VAX dfloat number to IEEE double-precision format. It returns zero if successful and nonzero without
performing the conversion if not successful (for example, underflow).
The function converts the specified IEEE double-precision number to VAX dfloat format. It returns zero if successful and nonzero without
performing the conversion if not successful (for example, underflow or overflow).
The function converts the specified VAX gfloat number to IEEE double-precision format. It returns zero if successful and nonzero without
performing the conversion if not successful (for example, underflow).
The function converts the specified IEEE double-precision number to VAX gfloat format. It returns zero if successful and nonzero without
performing the conversion if not successful (for example, underflow).
ftoi(3)