Sponsored Content
Full Discussion: Change data in file
Top Forums Shell Programming and Scripting Change data in file Post 302723285 by pareshkp on Monday 29th of October 2012 08:29:16 PM
Old 10-29-2012
MySQL Change data in file

Change File data

Input A.txt

Code:
LL725 LL725_A
LL725 SIB.ra=6
LL725 LL725_B
LL725 SIB.ra=11
LL726 LL726_A
LL726 SIB.ra=20
LL726 LL726_B
LL726 SIB.ra=6
LL726 LL726_C
LL726 SIB.ra=10

Output :-

Code:
LL725 LL725_A SIB.ra=6
LL725 LL725_B SIB.ra=11
LL726 LL726_A SIB.ra=20
LL726 LL726_B SIB.ra=6
LL726 LL726_C SIB.ra=10


Last edited by pareshkp; 10-29-2012 at 09:46 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to change Raw data to Coloumn data fields

Dear All, I have some data file.see below. --------------ALARM CLEARING FROM SubNetwork=ONRM_RootMo,SubNetwork=AXE,ManagedElement=CGSN-------------- Alarm Record ID: 25196304 Event Time: 2006-08-28 13:41:35 Event Type: ... (1 Reply)
Discussion started by: Nayanajith
1 Replies

2. Shell Programming and Scripting

loop through file to change some data

Hi, I have a file with the following data -0.00000 0.00000 0.00000 F F F 0.00000 0.00000 0.80000 F F F 0.50000 0.50000 0.60000 F F F 0.50000 0.50000 0.20000 F F F -0.00000 0.00000 0.40000 F F F I would like to change the last 3 lines from F F F to T T T. I tried looping each line but don't... (5 Replies)
Discussion started by: princessotes
5 Replies

3. Shell Programming and Scripting

Change file content based on data

I have a Transaction File coming into the system. In this file, in all records the relevant data is as follows- Position 1:10 -> Transaction Code Position 252:255 -> 4 digit business code Now based on these 2 fields I have to alter value in Transaction code (Position 1:10)... (6 Replies)
Discussion started by: varunrbs
6 Replies

4. 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

5. 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

6. Shell Programming and Scripting

awk - change more data

Origin file has got 180 fields. I have to change olny 12th,18th and 52nd one. In a file new.txt I've got those changes in 4 fields (first one is index): I know how to change ONE field with awk array. But my question is: could it be changed more than one field in one single step? ps: one... (5 Replies)
Discussion started by: frajer
5 Replies

7. Shell Programming and Scripting

Help i want to change the data of one file and apend it into 2nd file.

Hi All, Please help i have written an ksh script, where i am actually take count of lines in one file and want to update this count to 2nd field of a new file and apend the this into an existing file. Note the below script is in for loop -------- I am apending few records in a file... (7 Replies)
Discussion started by: iamnoone
7 Replies

8. Shell Programming and Scripting

Change Data base on Column

Base of last two column i want to change may data if Last two Column have A and C then Copy Column $4 to Column $3. Input :- DD142 0_1 DD142_A DD142_B A B DD142 1_1 DD142_B DD142_C B C DD142 2_1 DD142_A DD142_C A C DD142 3_1 DD142_A A DD142 3_2 DD142_A A DD142 4_1 DD142_B B ... (4 Replies)
Discussion started by: pareshkp
4 Replies

9. Shell Programming and Scripting

Change Data of first ROW

My Input : A.txt 1@A 2@B 3@C 1 4 5 2 4 5 3 4 5 B.txt 1 2 3 A B C 1 4 5 2 4 5 3 4 5 (3 Replies)
Discussion started by: asavaliya
3 Replies

10. Shell Programming and Scripting

Change data in one column with data from another file's column

Hello, I have this file outputData: # cat /tmp/outputData __Capacity^6^NBSC01_Licences^L3_functionality_for_ESB_switch __Capacity^2100^NBSC01_Licences^Gb_over_IP __Capacity^1837^NBSC01_Licences^EDGE_BSS_Fnc __Capacity^1816^NBSC01_Licences^GPRS_CS3_and_CS4... (1 Reply)
Discussion started by: nypreH
1 Replies
T-COFFEE(1)						      General Commands Manual						       T-COFFEE(1)

NAME
t-coffee - multiple sequence alignment SYNOPSIS
t_coffee [options]file t-coffee aligns multiple DNA or protein sequences. OPTIONS
A summary of options is included below. For a complete description, see the documentation. -full_log S [0] -run_name S [0] -mem_mode S [0] mem -extend D [1] 1 -extend_mode S [0] very_fast_triplet -max_n_pair D [0] 10 -seq_name_for_quadruplet S [0] all -compact S [0] default -clean S [0] no -do_self FL [0] 0 -do_normalise D [0] 1000 -template_file S [0] -seq S [0] -in S [0] Mlalign_id_pair Mslow_pair -pdb S [0] -out_lib W_F [0] no -lib_only D [0] 0 -outseqweight W_F [0] no -seq_source S [0] ANY -cosmetic_penalty D [0] -50 -gapopen D [0] 0 -gapext D [0] 0 -fgapopen D [0] 0 -fgapext D [0] 0 -nomatch D [0] 0 -newtree W_F [0] default -usetree R_F [0] -tree_mode S [0] slow -quicktree FL [0] 0 -outfile W_F [0] default -maximise FL [1] 1 -output S [0] clustalw -infile R_F [0] -matrix S [0] blosum62mt -tg_mode D [0] 1 -profile_mode S [0] cw_profile_profile -profile_comparison S [0] full50 -dp_mode S [0] cfasta_pair_wise -ktuple D [0] 1 -ndiag D [0] 0 -diag_threshold D [0] 0 -diag_mode D [0] 0 -sim_matrix S [0] vasiliky -type S [0] -outorder S [0] aligned -seqnos S [0] off -case S [0] keep -cpu D [0] 0 -maxnseq D [0] 60 -maxlen D [0] -1 -weight S [0] default -seq_weight S [0] t_coffee -align FL [1] 1 -mocca FL [0] 0 -domain FL [0] 0 -start D [0] 0 -len D [0] 0 -scale D [0] 0 -mocca_interactive FL [0] 0 -evaluate_mode S [0] t_coffee_fast -get_type FL [0] 0 -clean_aln D [0] 0 -clean_threshold D [1] 1 -clean_iteration D [1] 1 -clean_evaluate_mode S [0] t_coffee_fast -profile S [0] -profile1 S [0] -profile2 S [0] -extend_matrix FL [0] 0 -prot_min_sim D [40] 40 -prot_max_sim D [60] 60 -prot_min_cov D [0] 0 -pdb_min_sim D [30] 30 -pdb_max_sim D [100] 100 -pdb_min_cov D [50] 50 -pdb_blast_server W_F [0] SIB -prot_blast_server W_F [0] SIB -pdb_db W_F [0] nrl3d -protein_db W_F [0] nr -method_log W_F [0] no -struc_to_use S [0] -cache W_F [0] use -align_pdb_param_file W_F [0] no -align_pdb_hasch_mode W_F [0] hasch_ca_trace_bubble -msa_mode S [0] tree -lalign_n_top D [0] 10 -iterate D [0] 0 -trim D [0] 0 -split D [0] 0 -trimfile S [0] default -split D [0] 0 -split_nseq_thres D [0] 0 -split_score_thres D [0] 0 -check_pdb_status D [0] 0 -seq_to_keep S [0] -dpa_master_aln S [0] -dpa_maxnseq D [0] 10 -dpa_min_score1 D [0] -dpa_min_score2 D [0] -dpa_keep_tmpfile FL [0] 0 -dpa_debug D [0] 0 -multi_thread S [0] -lib_list S [0] SEE ALSO
clustalw(1), /usr/share/doc/t-coffee/, http://igs-server.cnrs-mrs.fr/~cnotred/Projects_home_page/t_coffee_home AUTHOR
t-coffee was written by Cedric Notredame <cedric.notredame@europe.com> This manual page was written by Steffen Moeller <moeller@pzr.uni-rostock.de>, for the Debian project (but may be used by others). May 13, 2005 T-COFFEE(1)
All times are GMT -4. The time now is 09:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy