Please post your OS, shell, and preferred tools' versions in the future so people in here don't need to guess what system features you have available and which you don't.
Your RS character \r (<CR> = 0x0D = ^M) seems a bit strange a choice as \n (<LF> = 0x0A) is the *nix line terminator. How was that input file produced? And, no attempt was made to get to the desired day-of-week result.
GNU date around, and a shell with "process substitution"? Try
HI guys,
I have created a script to read 1 column in a csv file and then place it in text file.
However, when i checked out the text file, it is not in a column format...
Example:
CSV file contains
name,age
aa,11
bb,22
cc,33
After using awk to get first column
TXT file... (1 Reply)
I have an assignment in a Linux class I am taking. It has multiple scripts. Basicly when it runs it asks the user name and shows information about the user from the /etc/passwd and /etc/shadow files. The one I need help with is the one that reads the /etc/shadow file. I need to format the date into... (1 Reply)
The date format in the delimited file for one column '6/27/2011 12:00:00 AM' Is it possible o change it to '2011-06-27 12:00:00 AM' for all the records..
Thanks in advance..... (8 Replies)
I have this code to compare columns 1 and 10 between file1 and file 2 and give me all records that match column 1 but dont match column 10
However column 10 is date format mm/dd/yy and awk cant read it and compare ...i tried
awk < file1 -F~ '{print $10}'
and it gave blank screen
Is... (1 Reply)
I have below date format in a CSV file. (dd/mm/yyyy)
Ex Input:
9/8/2013
Need to convert it into below format (yyyymmdd ) and redirect to new file.
Ex Output:
20130809
How do I use awk here to change the format and if leading 0 (zero) is not then add it.
Please help. Thanks. (8 Replies)
Could you tell me how to convert the following dates?
If I have m/d/yyyy, I want to have
0m/0d/yyyy. I want my dates to always be 8 digits.
In other words, I want a 0 inserted whenever the month or day is a single digit.
My issue is first I need to use FS="," to get field $4 for the... (7 Replies)
Hi All,
I have file like
“April 10, 2013”,”raj”
“April 29, 2013”,”raj1”
Output :
“2013/04/10”,”raj”
“2013/04/29”,”raj1”
Please help me how to do... (9 Replies)
Hi,
i have a flat file namely temp.txt with this data below
ID|name|contact_date
101|Kay|2013-12-26
102|let|2013-12-26
I need to modify the date data in the flat file into MM/DD/YYYY HH24:MI:SS format
let me know the code for this.
Thank you! (5 Replies)
Hi have a large spreadsheet which has 4 columns
APM00111803814 server_2 96085 Corp IT Desktop and Apps
APM00111803814 server_2 96085 Corp IT Desktop and Apps
APM00111803814 server_2 96034 Storage Mgmt Team
APM00111803814 server_2 96152 GWP... (6 Replies)
Discussion started by: kieranfoley
6 Replies
LEARN ABOUT DEBIAN
bio::phenotype::omim::minimimentry
Bio::Phenotype::OMIM::MiniMIMentry(3pm) User Contributed Perl Documentation Bio::Phenotype::OMIM::MiniMIMentry(3pm)NAME
Bio::Phenotype::OMIM::MiniMIMentry - Representation of a Mini MIM entry
SYNOPSIS
use Bio::Phenotype::OMIM::MiniMIMentry;
$mm = Bio::Phenotype::OMIM::MiniMIMentry->new( -description => "The central form of ...",
-created => "Victor A. McKusick: 6/4/1986",
-contributors => "Kelly A. Przylepa - revised: 03/18/2002",
-edited => "alopez: 06/03/1997" );
DESCRIPTION
This class representats of Mini MIM entries. This class is intended to be used together with a OMIM entry class.
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one
of the Bioperl mailing lists. Your participation is much appreciated.
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address
it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the
web:
https://redmine.open-bio.org/projects/bioperl/
AUTHOR
Christian M. Zmasek
Email: czmasek-at-burnham.org or cmzmasek@yahoo.com
WWW: http://monochrome-effect.net/
Address:
Genomics Institute of the Novartis Research Foundation
10675 John Jay Hopkins Drive
San Diego, CA 92121
APPENDIX
The rest of the documentation details each of the object methods.
new
Title : new
Usage : $mm = Bio::Phenotype::OMIM::MiniMIMentry->new( -description => "The central form of ...",
-created => "Victor A. McKusick: 6/4/1986",
-contributors => "Kelly A. Przylepa - revised: 03/18/2002",
-edited => "alopez: 06/03/1997" );
Function: Creates a new MiniMIMentry object.
Returns : A new MiniMIMentry object.
Args : -description => a description
-created => name(s) and date(s) (free form)
-contributors => name(s) and date(s) (free form)
-edited => name(s) and date(s) (free form)
init
Title : init()
Usage : $mm->init();
Function: Initializes this MiniMIMentry to all "".
Returns :
Args :
description
Title : description
Usage : $mm->description( "The central form of ..." );
or
print $mm->description();
Function: Set/get for the description field of the Mini MIM database.
Returns : The description.
Args : The description (optional).
created
Title : created
Usage : $mm->created( "Victor A. McKusick: 6/4/1986" );
or
print $mm->created();
Function: Set/get for the created field of the Mini MIM database.
Returns : Name(s) and date(s) [scalar - free form].
Args : Name(s) and date(s) [scalar - free form] (optional).
contributors
Title : contributors
Usage : $mm->contributors( "Kelly A. Przylepa - revised: 03/18/2002" );
or
print $mm->contributors();
Function: Set/get for the contributors field of the Mini MIM database.
Returns : Name(s) and date(s) [scalar - free form].
Args : Name(s) and date(s) [scalar - free form] (optional).
edited
Title : edited
Usage : $mm->edited( "alopez: 06/03/1997" );
or
print $mm->edited();
Function: Set/get for the edited field of the Mini MIM database.
Returns : Name(s) and date(s) [scalar - free form].
Args : Name(s) and date(s) [scalar - free form] (optional).
to_string
Title : to_string()
Usage : print $mm->to_string();
Function: To string method for MiniMIMentry objects.
Returns : A string representations of this MiniMIMentry.
Args :
perl v5.14.2 2012-03-02 Bio::Phenotype::OMIM::MiniMIMentry(3pm)