01-21-2012
Hi.
Are you sure that you have unformatted data? What do you think that means? ... cheers, drl
This User Gave Thanks to drl For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have what is probably a simple task in text manipulation, but I just can't wrap my brain around it.
I have a text file that looks something like the following. Note that some have middle initials in the first field and some don't.
john.r.smith:john.smith@yahoo.com... (4 Replies)
Discussion started by: manouche
4 Replies
2. Shell Programming and Scripting
Hi Guys,
I'm trying to clean up my home logger file and can't seem to work this out.
Here is my data:
10-19-2009 08:39 00.2 00.0 00.7 01.1 49.1 0.0 11.9 270.1 -49.1 220.9
10-19-2009 08:40 00.2 00.0 00.7 00.7 49.1 0.0 171.9 171.9 49.1 220.9
10-19-2009 08:41 00.1 00.0 00.7 00.8 24.5 0.0... (2 Replies)
Discussion started by: BeJay
2 Replies
3. Shell Programming and Scripting
I am trying to process file which has following data
#23456789012345
ACNASPSA13N0N0
ACNAPCPA05N0N0
ACNAFATS11N0N0
I want to take out each line from the file and what to put in the file by name which if part of the line starting from offset 10 to 15. It means I want to create three file... (3 Replies)
Discussion started by: ekb
3 Replies
4. Shell Programming and Scripting
Input File:
1234, 2345,abc
1,24141,gw
222,rff,sds
2232145,sdsd,121
Output file to be generated:
000001234,2345,abc
000000001,24141,gw
000000222,rff,sds
002232145,sdsd,121
i.e; the first column is padded to get 9 digits.
I tried with following: (1 Reply)
Discussion started by: karumudi7
1 Replies
5. Shell Programming and Scripting
Input File:
1234, 2345,abc
1,24141,gw
222,rff,sds
2232145,sdsd,121
Output file to be generated:
000001234,2345,abc
000000001,24141,gw
000000222,rff,sds
002232145,sdsd,121
i.e; the first column is padded to get 9 digits.
I tried with following: (3 Replies)
Discussion started by: karumudi7
3 Replies
6. Shell Programming and Scripting
I have a line from table space report:
5 135_TT ms Normal 1774336.0 1774208.0 761152.0 1013056.0 57.1%
Now I have to get 1013056.0 as o/p.
For this I tried cut -f32 -d" " previously it worked now it is showing empty space.
Suggest me the best code for this which... (1 Reply)
Discussion started by: karumudi7
1 Replies
7. Shell Programming and Scripting
Hi,
I have two input files as
File1 :
ABC:client1:project1
XYZ:client2-aa:project2
DEF:client4:proj
File2 :
client1:W-170:xx
client2-aa:WT-04:yy
client4:L-005A:zz
Also, array of valid values can be hardcoded like
Output :
ABC:W:project1
XYZ:WT:project2 (1 Reply)
Discussion started by: aa2601
1 Replies
8. Programming
Hello,
I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this :
This is the output of ls command : I stored the output in a file filelist
1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies
9. Shell Programming and Scripting
hello All, I'm new to AWK programming and learned myself few things to process a file and deal with duplicate lines, but I got into a scenario which makes me clueless to handle. Here is the scenario..
Input file:
user role
----- ----
AAA add
AAA delete
BBB delete
CCC delete
DDD ... (10 Replies)
Discussion started by: julearn
10 Replies
10. Shell Programming and Scripting
Hi - I want to interrogate information about my poker hands, sessions are all recorded in a text file in a particular format. Each hand starts with the string <PokerStars> followed by a unique hand reference and other data like date/time. There is then all the information about each hand. My first... (5 Replies)
Discussion started by: rbeech23
5 Replies
PERROR(3F) PERROR(3F)
NAME
perror, gerror, ierrno - get system error messages
SYNOPSIS
subroutine perror (string)
character*(*) string
subroutine gerror (string)
character*(*) string
character*(*) function gerror()
function ierrno()
DESCRIPTION
Perror will write a message to fortran logical unit 0 appropriate to the last detected system error. String will be written preceding the
standard error message.
Gerror returns the system error message in character variable string. Gerror may be called either as a subroutine or as a function.
Ierrno will return the error number of the last detected system error. This number is updated only when an error actually occurs. Most
routines and I/O statements that might generate such errors return an error code after the call; that value is a more reliable indicator of
what caused the error condition.
FILES
/usr/lib/libU77.a
SEE ALSO
intro(2), perror(3)
D. L. Wasley, Introduction to the f77 I/O Library
BUGS
String in the call to perror can be no longer than 127 characters.
The length of the string returned by gerror is determined by the calling program.
NOTES
UNIX system error codes are described in intro(2). The f77 I/O error codes and their meanings are:
100 ``error in format''
101 ``illegal unit number''
102 ``formatted i/o not allowed''
103 ``unformatted i/o not allowed''
104 ``direct i/o not allowed''
105 ``sequential i/o not allowed''
106 ``can't backspace file''
107 ``off beginning of record''
108 ``can't stat file''
109 ``no * after repeat count''
110 ``off end of record''
111 ``truncation failed''
112 ``incomprehensible list input''
113 ``out of free space''
114 ``unit not connected''
115 ``invalid data for integer format term''
116 ``invalid data for logical format term''
117 ``'new' file exists''
118 ``can't find 'old' file''
119 ``opening too many files or unknown system error''
120 ``requires seek ability''
121 ``illegal argument''
122 ``negative repeat count''
123 ``illegal operation for unit''
124 ``invalid data for d, e, f, or g format term''
4.2 Berkeley Distribution June 7, 1985 PERROR(3F)