Sponsored Content
Top Forums Shell Programming and Scripting sed or awk, cut, to extract specific data from line Post 302724581 by ocramas on Wednesday 31st of October 2012 11:53:55 PM
Old 11-01-2012
hmm, that one it is just returning 0.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can't figure out how to display specific data from a line using awk.

Hello, I cannot figure this one out. I would like to do the following. I have a line that has 7 words. It is possible that the line can have 20 words too. I always want to show the 9th word and beyond. The 9th word will always change so I do not have something to search for, so I think... (1 Reply)
Discussion started by: ctcuser
1 Replies

2. Shell Programming and Scripting

sed or awk to extract data from Xml file

Hi, I want to get data from Xml file by using sed or awk command. I want to get the following result : mon titre 1;Createur1;Dossier1 mon titre 1;Createur1;Dossier1 and save it in cvs file (fichier.cvs). FROM this Xml file (test.xml): <playlist version="1"> <trackList> <track>... (1 Reply)
Discussion started by: yeclota
1 Replies

3. Shell Programming and Scripting

Extract specific data content from a long list of data

My input: Data name: ABC001 Data length: 1000 Detail info Data Direction Start_time End_time Length 1 forward 10 100 90 1 forward 15 200 185 2 reverse 50 500 450 Data name: XFG110 Data length: 100 Detail info Data Direction Start_time End_time Length 1 forward 50 100 50 ... (11 Replies)
Discussion started by: patrick87
11 Replies

4. UNIX for Advanced & Expert Users

bash/grep/awk/sed: How to extract every appearance of text between two specific strings

I have a text wich looks like this: clid=2 cid=6 client_database_id=35 client_nickname=Peter client_type=0|clid=3 cid=22 client_database_id=57 client_nickname=Paul client_type=0|clid=5 cid=22 client_database_id=7 client_nickname=Mary client_type=0|clid=6 cid=22 client_database_id=6... (3 Replies)
Discussion started by: Pioneer1976
3 Replies

5. Shell Programming and Scripting

Line/Variable Editing for Awk sed Cut

Hello, i have a file, i open the file and read the line, i want to get the first item in the csv file and also teh third+6 item and wirte it to a new csv file. only problem is that using echo it takes TOO LONG: please help a newbie. below is my code: WorkingDir=$1 FileName=`cut -d ',' -f... (2 Replies)
Discussion started by: limamichelle
2 Replies

6. Shell Programming and Scripting

cut, sed, awk too slow to retrieve line - other options?

Hi, I have a script that, basically, has two input files of this type: file1 key1=value1_1_1 key2=value1_2_1 key4=value1_4_1 ... file2 key2=value2_2_1 key2=value2_2_2 key3=value2_3_1 key4=value2_4_1 ... My files are 10k lines big each (approx). The keys are strings that don't... (7 Replies)
Discussion started by: fzd
7 Replies

7. Shell Programming and Scripting

Router ping log extract data from it Awk/Sed/grep

Hi, I am new to this world.. Using expect i loging to router and checking ping response to my links. I need to genarate report using this output and that report contains only three file link name, packet loss, latency. my output of script is like below: -bash-3.00$ monmw/mwbkp... (2 Replies)
Discussion started by: jkmistry
2 Replies

8. Shell Programming and Scripting

Replace specific field on specific line sed or awk

I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work. Brief overview: I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
Discussion started by: crownedzero
14 Replies

9. Shell Programming and Scripting

sed / awk to get specific word in line

I have http log that I want to get words after specific "tag", this a sample line from the log: 98,POST,200 OK,www.facebook.com,Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1,/ajax/updatestatus.php?__a=1,datr=P_H1TgjTczCHxiGwdIF5tvpC; lu=Si1fMkcrU2SInpY8tk_7tAnw;... (6 Replies)
Discussion started by: erlanq
6 Replies

10. UNIX for Dummies Questions & Answers

using sed delete a line from csv file based on specific data in two separate fields

Hello, :wall: I have a 12 column csv file. I wish to delete the entire line if column 7 = hello and column 12 = goodbye. I have tried everything that I can find in all of my ref books. I know this does not work /^*,*,*,*,*,*,"hello",*,*,*,*,"goodbye"/d Any ideas? Thanks Please... (2 Replies)
Discussion started by: Chris Eagleson
2 Replies
Bio::Tools::Run::Genemark(3pm)				User Contributed Perl Documentation			    Bio::Tools::Run::Genemark(3pm)

NAME
Bio::Tools::Run::Genemark - Wrapper for local execution of the GeneMark family of programs. SYNOPSIS
# GeneMark.hmm (prokaryotic) my $factory = Bio::Tools::Run::Genemark->new('-program' => 'gmhmmp', '-m' => 'model.icm'); # Pass the factory Bio::Seq objects # returns a Bio::Tools::Genemark object my $genemark = $factory->run($seq); DESCRIPTION
Wrapper module for the GeneMark family of programs. Should work with all flavors of GeneMark.hmm at least, although only the prokaryotic version has been tested. General information about GeneMark is available at <http://exon.gatech.edu/GeneMark/>. Contact information for licensing inquiries is available at: <http://opal.biology.gatech.edu/GeneMark/contact.html> Note that GeneMark.hmm (prokaryotic at least) will only process the first sequence in a fasta file (if you run() more than one sequence at a time, only the first will be processed). 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: http://redmine.open-bio.org/projects/bioperl/ AUTHOR - Mark Johnson Email: mjohnson-at-watson-dot-wustl-dot-edu APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ program_name Title : program_name Usage : $factory>program_name() Function: gets/sets the program name Returns: string Args : string program_dir Title : program_dir Usage : $factory->program_dir() Function: gets/sets the program dir Returns: string Args : string new Title : new Usage : $genemark->new(@params) Function: creates a new Genemark factory Returns: Bio::Tools::Run::Genemark Args : run Title : run Usage : $obj->run($seq_file) Function: Runs Genemark Returns : A Bio::Tools::Genemark object Args : An array of Bio::PrimarySeqI objects _run Title : _run Usage : $obj->_run() Function: Internal(not to be used directly) Returns : An instance of Bio::Tools::Genemark Args : file name, sequence identifier (optional) _write_seq_file Title : _write_seq_file Usage : obj->_write_seq_file($seq) or obj->_write_seq_file(@seq) Function: Internal(not to be used directly) Returns : Name of a temp file containing program output Args : One or more Bio::PrimarySeqI objects perl v5.12.3 2011-06-18 Bio::Tools::Run::Genemark(3pm)
All times are GMT -4. The time now is 10:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy