Sponsored Content
Top Forums Shell Programming and Scripting Change file content based on data Post 302446145 by rdcwayx on Wednesday 18th of August 2010 01:40:48 AM
Old 08-18-2010
not clear.

provide sample input file and output file here.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Need help to change the content for remote located file

Hi All, I have one file that sits on 4 diffrent servers, those servers are diffrent region based and they are authentication protected and that file has a diff port numbers, so when run the script it must ask my login details,region of server and port no for that file once it took from me... (1 Reply)
Discussion started by: tmarjuna
1 Replies

2. Shell Programming and Scripting

How to change a file's content by row?

Greetings. So the question is basically the same as it's in the title. I'd like to write a program that changes a file by rows. So to clarify it. (i know i shouldn't use code,/code here but i would like to separate it) So for example a text file looks like something like this: Happy... (5 Replies)
Discussion started by: buddhist
5 Replies

3. Shell Programming and Scripting

Scan and change file data content problem

Input file >Read_1 XXXXXXXXXXSDFXXXXXDS (condition 1: After the last "X" per line, if the distance is less than or equal to 3 letter, replace those not "X" letter with "X") TREXXXXXXXSDFXXXXXDS (condition 2: Before the first "X" per line, if the distance is less than or equal to 3 letter,... (12 Replies)
Discussion started by: patrick87
12 Replies

4. Shell Programming and Scripting

Execution Problems with scan and change file data content

Input file >Read_1 XXXXXXXXXXSDFXXXXXDS ASDRXXXXXTGAGTXXXXXT TGTGATXXXXXAXXXXGXXA . . Desired output file >Read_1 XXXXXXXXXXXXXXXXXXDS ASDRXXXXXTGAGTXXXXXT TGTGATXXXXXXXXXXXXXA . . (5 Replies)
Discussion started by: patrick87
5 Replies

5. Linux

when SCP, does file content change?

Good day to you all, Just want to check here, i know when scping a file, size might change due to space issue. it might sound silly, but does file content get change too? if so, what kind of situation that might be? (1 Reply)
Discussion started by: ahtat99
1 Replies

6. Shell Programming and Scripting

Split the file based on the content

Arun kumar something somehting Enterting in to the line . . . . Some text text Finshing the sentence Some other text . . . . Again something somehting Enterting in to the line . . . . . . Again text text Finshing the sentence (6 Replies)
Discussion started by: arukuku
6 Replies

7. Shell Programming and Scripting

Help with analysis data based on particular column content

Input file: Total_counts 1306726155 100% Number_of_count_true 855020282 Number_of_count_true_1 160014283 Number_of_count_true_2 44002825 Number_of_count_true_3 18098424 Number_of_count_true_4 24693745 Number_of_count_false 115421870 Number_of_count_true 51048447 Total_number_of_false ... (2 Replies)
Discussion started by: perl_beginner
2 Replies

8. Shell Programming and Scripting

Help with data rearrangement based on share same content

Input file data_2 USA data_2 JAPAN data_3 UK data_4 Brazil data_5 Singapore data_5 Indo data_5 Thailand data_6 China Desired output file data_2 USA/JAPAN data_3 UK data_4 Brazil data_5 Singapore/Indo/Thailand data_6 China I would like to merge all data content that share same... (2 Replies)
Discussion started by: perl_beginner
2 Replies

9. Shell Programming and Scripting

Change a file content format using awk

Hi, i have a file input.txt Continent North America Country USA Capital Washington D.C. Country Canada Capital Ottawa Continent South America Country Argentina Capital Buenos Aires Country Brazil Capital Brasília Coutry Colombia Capital Bogotá and i want to get an output.txt ... (3 Replies)
Discussion started by: fastlane3000
3 Replies

10. Shell Programming and Scripting

Script to change the file content using some conditions

Hello, I would like to change the content of the file that has few blocks starts with 10 and ends with ";" File1.txt 10 bonuses D 20 MATCHED 30 UPD COL 40 (SOL=30) 20 NOT MATCHED 30 INS COL 40 (SOL=30) ; 10 bonuses D 20 MATCHED 30 UPD COL 40... (5 Replies)
Discussion started by: Mannu2525
5 Replies
Bio::Map::PositionHandlerI(3pm) 			User Contributed Perl Documentation			   Bio::Map::PositionHandlerI(3pm)

NAME
Bio::Map::PositionHandlerI - A Position Handler Interface SYNOPSIS
# do not use this module directly # See Bio::Map::PositionHandler for an example of # implementation. DESCRIPTION
This interface describes the basic methods required for Position Handlers. A Position Handler copes with the coordination of different Bio::Map::EntityI objects, adding and removing them from each other and knowning who belongs to who. These relationships between objects are based around shared Positions, hence PositionHandler. 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 the Bioperl mailing list. 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 of the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHOR - Sendu Bala Email bix@sendu.me.uk APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ General methods register Title : register Usage : $position_handler->register(); Function: Ask this Position Handler to look after your entity relationships. Returns : n/a Args : none index Title : index Usage : my $index = $position_handler->index(); Function: Get the unique registry index for yourself, generated during the resistration process. Returns : int Args : none get_entity Title : get_entity Usage : my $entity = $position_handler->get_entity($index); Function: Get the entity that corresponds to the supplied registry index. Returns : Bio::Map::EntityI object Args : int Methods for Bio::Map::PositionI objects map Title : map Usage : my $map = $position_handler->map(); $position_handler->map($map); Function: Get/Set the map you are on. You must be a Position. Returns : L<Bio::Map::MapI> Args : none to get, OR new L<Bio::Map::MapI> to set element Title : element Usage : my $element = $position_handler->element(); $position_handler->element($element); Function: Get/Set the map element you are for. You must be a Position. Returns : L<Bio::Map::MappableI> Args : none to get, OR new L<Bio::Map::MappableI> to set Methods for all other Bio::Map::EntityI objects add_positions Title : add_positions Usage : $position_handler->add_positions($pos1, $pos2, ...); Function: Add some positions to yourself. You can't be a position. Returns : n/a Args : Array of Bio::Map::PositionI objects get_positions Title : get_positions Usage : my @positions = $position_handler->get_positions(); Function: Get all your positions. You can't be a Position. Returns : Array of Bio::Map::PositionI objects Args : none for all, OR Bio::Map::EntityI object to limit the Positions to those that are shared by you and this other entity. purge_positions Title : purge_positions Usage : $position_handler->purge_positions(); Function: Remove all positions from yourself. You can't be a Position. Returns : n/a Args : none to remove all, OR Bio::Map::PositionI object to remove only that entity, OR Bio::Map::EntityI object to limit the removal to those Positions that are shared by you and this other entity. get_other_entities Title : get_other_entities Usage : my @entities = $position_handler->get_other_entities(); Function: Get all the entities that share your Positions. You can't be a Position. Returns : Array of Bio::Map::EntityI objects Args : none perl v5.14.2 2012-03-02 Bio::Map::PositionHandlerI(3pm)
All times are GMT -4. The time now is 10:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy