09-13-2013
i think i may have found a flaw in this code. It seems as though if there is a space in any of the lines, it's ignored/thrown out, even if it's unique.
Can someone please help me?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
snp.txt
CHR_A SNP_A BP_A_st BP_A_End CHR_B BP_B SNP_B R2 p-SNP_A p-SNP_B
5 rs1988728 74904317 74904318 5 74960646 rs1427924 0.377333 0.000740085 0.013930081
5 ... (12 Replies)
Discussion started by: genehunter
12 Replies
2. Shell Programming and Scripting
I have a datafile that is formatted as fixed.
I know that each line should contain 880 characters.
I want to separate the file into 2 files, one that has lines with 880 characters and the other file with everything else.
Is this possible ? (9 Replies)
Discussion started by: cheeko111
9 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
Discussion started by: krishnix
16 Replies
4. Shell Programming and Scripting
hi
my problem is little complicated one. i have 2 files which appear like this
file 1
abbsss:aa:22:34:as akl abc 1234
mkilll:as:ss:23:qs asc abc 0987
mlopii:cd:wq:24:as asd abc 7866
file2
lkoaa:as:24:32:sa alk abc 3245
lkmo:as:34:43:qs qsa abc 0987
kloia:ds:45:56:sa acq abc 7805
i... (5 Replies)
Discussion started by: anurupa777
5 Replies
5. Shell Programming and Scripting
Hello,
I need some sort of way to extract every date contained in a file, and count how many of those dates there are.
Here are the specifics:
The date format I'm looking for is mm/dd/yyyy
I only need to look after line 45 in the file (that's where the data begins)
The columns of... (2 Replies)
Discussion started by: ronan1219
2 Replies
6. UNIX for Dummies Questions & Answers
Hello guys. I really hope someone will help me with this one..
So, I have to write this script who:
- creates a file home/student/vmdisk of 10 mb
- formats that file to ext3
- mounts that partition to /mnt/partition
- creates a file /mnt/partition/data. In this file, there will... (1 Reply)
Discussion started by: razolo13
1 Replies
7. Shell Programming and Scripting
Hello to all, happy new year 2013!
May somebody could help me, is about a very similar problem to the problem I've posted here where the member rdrtx1 and bipinajith helped me a lot.
https://www.unix.com/shell-programming-scripting/211147-map-values-blocks-single-line-2.html
It is very... (3 Replies)
Discussion started by: Ophiuchus
3 Replies
8. Shell Programming and Scripting
file1:
file2:
I need to find matches for any lines in file1 that appear in file2. Desired output is '>' plus the file1 term, followed by the line after the match in file2 (so the title is a little misleading):
This is honestly beyond what I can do without spending the whole night on it, so I'm... (2 Replies)
Discussion started by: pathunkathunk
2 Replies
9. UNIX for Dummies Questions & Answers
I would like to print unique lines without sort or unique. Unfortunately the server I am working on does not have sort or unique. I have not been able to contact the administrator of the server to ask him to add it for several weeks. (7 Replies)
Discussion started by: cokedude
7 Replies
10. UNIX for Beginners Questions & Answers
For some reason I am having difficulty performing what should be a fairly easy task. I would like to print lines of a file that have a unique value in the first field. For example, I have a large data-set with the following excerpt:
PS003,001 MZMWR/ L-DWD// *
PS003,001... (4 Replies)
Discussion started by: jvoot
4 Replies
LEARN ABOUT DEBIAN
rt::client::rest::exception
RT::Client::REST::Exception(3pm) User Contributed Perl Documentation RT::Client::REST::Exception(3pm)
NAME
RT::Client::REST::Exception -- exceptions thrown by RT::Client::REST methods.
DESCRIPTION
These are exceptions that are thrown by various RT::Client::REST methods.
EXCEPTION HIERARCHY
RT::Client::REST::Exception
This exception is virtual -- it is never thrown. It is used to group all the exceptions in this category.
RT::Client::REST::OddNumberOfArgumentsException
This means that the method you called wants key-value pairs.
RT::Client::REST::InvaildObjectTypeException
Thrown when you specify an invalid type to "show()", "edit()", or "search()" methods.
RT::Client::REST::RequiredAttributeUnsetException
An operation failed because a required attribute was not set in the object.
RT::Client::REST::MalformedRTResponseException
RT server sent response that we cannot parse. This may very well mean a bug in this client, so if you get this exception, some debug
information mailed to the author would be appreciated.
RT::Client::REST::InvalidParameterValueException
Invalid value for comments, link types, object IDs, etc.
RT::Client::REST::CannotReadAttachmentException
Cannot read attachment (thrown from methods "comment()" and "correspond").
RT::Client::REST::RTException
This is a virtual exception and is never thrown. It is used to group exceptions thrown because RT server returns an error.
RT::Client::REST::ObjectNotFoundException
One or more of the specified objects was not found.
RT::Client::REST::AuthenticationFailureException
Incorrect username or password.
RT::Client::REST::UpdateException
This is a virtual exception. It is used to group exceptions thrown when RT server returns an error trying to update an object.
RT::Client::REST::CouldNotSetAttributeException
For one or another reason, attribute could not be updated with the new value.
RT::Client::REST::InvalidEmailAddressException
Invalid e-mail address specified.
RT::Client::REST::AlreadyCurrentValueException
The attribute you are trying to update already has this value. I do not know why RT insists on treating this as an exception, but
since it does so, so should the client. You can probably safely catch and throw away this exception in your code.
RT::Client::REST::ImmutableFieldException
Trying to update an immutable field (such as "last_updated", for example).
RT::Client::REST::IllegalValueException
Illegal value for attribute was specified.
RT::Client::REST::UnknownCustomFieldException
Unknown custom field was specified in the request.
RT::Client::REST::InvalidQueryException
Server could not parse the search query.
RT::Client::REST::UnauthorizedActionException
You are not authorized to perform this action.
RT::Client::REST::AlreadyTicketOwnerException
The owner you are trying to assign to a ticket is already the owner. This exception is usually thrown by methods "take()", "untake",
and "steal", if the operation is a noop.
RT::Client::REST::RequestTimedOutException
Request timed out.
RT::Client::REST::UnknownRTException
Some other RT exception that the driver cannot recognize.
METHODS
_get_exception_class
Figure out exception class based on content returned by RT.
_rt_content_to_exception
Translate error string returned by RT server into an exception object ready to be thrown.
SEE ALSO
Exception::Class, RT::Client::REST.
AUTHOR
Dmitri Tikhonov <dtikhonov@yahoo.com>
perl v5.14.2 2011-12-27 RT::Client::REST::Exception(3pm)