poly to mono alphabet for every 2nd line


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers poly to mono alphabet for every 2nd line
# 1  
Old 02-18-2010
poly to mono alphabet for every 2nd line

Hi,

Can anyone teach me by using perl.

let say i have an input file that content like below:

->line_01
aaabbbDDDTTTUSSy
->line_02
cccdddEEESSSGTTT
->line_03
xxxxyyyyzzzzzzzzzz

want the above input file content to become output file like below (every 2nd line after ->... become mono alphabet):

->line_01
abDTUSy
->line_02
cdESGTTT
->line_03
xyz

Thks..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to read file line by line and compare subset of 1st line with 2nd?

Hi all, I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like: <date1>|<data1>|<url1>|<result1> <date2>|<data2>|<url2>|<result2> <date3>|<data3>|<url3>|<result3> <date4>|<data4>|<url4>|<result4> What I... (3 Replies)
Discussion started by: pat_pramod
3 Replies

2. Shell Programming and Scripting

Conditional for every letter in alphabet

I wanted to know if there was a more efficient to do this. I was to setup a conditional for every letter of the alphabet, like so (I am parsing an array): for i in "${arr}"; do if ]; then echo "$i starts with A" else echo "$i does not start with A" fi done I want to do this A-Z, is there... (6 Replies)
Discussion started by: sudo
6 Replies

3. Shell Programming and Scripting

Recode alphabet into numbers

I have a genotype.bim file where it contains information about SNPs and genotype. As a hypothetical example, let's say genotype.bim snp1 ... A G snp2 ... G T snp3 ... G T snp4 ... G A ... snpN ... C G where first column identifies each SNP and 5th and 6th column has genotype... (3 Replies)
Discussion started by: johnkim0806
3 Replies

4. Shell Programming and Scripting

1st column,2nd column on first line 3rd,4th on second line ect...

I need to take one column of data and put it into the following format: 1st line,2nd line 3rd line,4th line 5th line,6th line ... Thanks! (6 Replies)
Discussion started by: batcho
6 Replies

5. Shell Programming and Scripting

last character is digit or alphabet!

Hello, I have to find out whether the last character is digit or alphabet. I manage to strip the last character but would need some help if there is one liner available to test the above. set x = WM echo $x | sed 's/.*\(.$\)/\1/' O/P M I would like a one liner code to test whether the... (1 Reply)
Discussion started by: dixits
1 Replies

6. Shell Programming and Scripting

Alphabet counting

I have a text file in the following format CCCCCGCCCCCCCCCCcCCCCCCCCCCCCCCC AAAATAAAAAAAAAAAaAAAAAAAAAAAAAAA TGTTTTTTTTTTTTGGtTTTTTTTTTTTTTTT TTTT-TTTTTTTTTCTtTTTTTTTTTTTTTTT Each row/line will have 32 letters and each line will only have multiple occurrences of 2 letters out of a pool... (1 Reply)
Discussion started by: Lucky Ali
1 Replies

7. UNIX for Dummies Questions & Answers

Poly character into mono character

Hi, Can anyone teach me by using perl. let say i have an input file that content like below: ->line_01 aaabbbDDDTTTUSSy ->line_02 cccdddEEESSSGTTT ->line_03 xxxxyyyyzzzzzzzzzz want the above input file content to become output file like below (every 2nd line after ->... become mono... (7 Replies)
Discussion started by: eisya10
7 Replies

8. Linux

Mono Project!

Hello, Does anyone know about MONO PROJECT? It supports .NET on linux! I have downloaded its packages and installed it. But I don't know how to start it!!! Where can I find installed programs?! (5 Replies)
Discussion started by: HSN
5 Replies

9. Shell Programming and Scripting

Get the line count from 2nd line of the file ?

Hi, I want to get the line count of the file from the 2nd line of the file ? The first line is header so want to skip that. Thanks. (8 Replies)
Discussion started by: smc3
8 Replies

10. Shell Programming and Scripting

What can i do to check that the input is all alphabet.. ?

What can i do to check that the input is all alphabet.. ? (4 Replies)
Discussion started by: XXXXXXXXXX
4 Replies
Login or Register to Ask a Question
MONO-SERVER4-ADMIN(8)					User Contributed Perl Documentation				     MONO-SERVER4-ADMIN(8)

NAME
mono-server4-admin - mono-server4 hosts file creator, hosts file is part of the debianized mod_mono package SYNOPSIS
mono-server4-admin [action] [args] OPTIONS Actions: add Use 'add' if you want to create an application and want mono-server4 scripts to manage it del If you want to remove an application Args: --path The path where you have your aspx files, MUST EXISTS!, required only with add action --app The name of your application --libs If you have dlls outside your path, you must use this! --port Needed if you are running multiple virtual hosts in different ports in Apache --vhost If you want to add asp.net support to a virtualhost you must use this. Example: foobar.com DESCRIPTION
mono-server4-admin is a perl tool to adminstrate your ASP.NET webapps that will be executed with mod_mono. When you try to add an application, mono-server4-admin will verify that your path exists, if it is, it will add a directory inside /etc/xsp/conf.d with the name of your app, and also as a file with the filename format: 10_appname. This file will have the information (path, app). So, when mono-xsp-update is executed it will read those dirs and create a debian.webapp in /etc/xsp that the xsp daemon will read, also with a mono-server4-hosts that will have your directory settings with apache directives. Apache will read mono-server4-hosts.conf! AUTHOR
Pablo Fischer <pablo@pablo.com.mx> perl v5.14.2 2012-01-18 MONO-SERVER4-ADMIN(8)