Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: command line perl reading from STDIN

by talexb (Canon)
on Jan 22, 2013 at 17:56 UTC ( #1014745=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cat input_file.fq | \
    perl -ne '$s=<>;<>;<>;chomp($s);print length($s)."\n";' > output.txt
    
  2. or download this
    perl -ne '$s=<>;<>;<>;chomp($s);print length($s)."\n";' \
    <input_file.fq >output.txt
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014745]
help
Chatterbox?
[Discipulus]: i cannot see any link to tye post..
[Lady_Aleena]: Hello.
[marto]: teleconf + coffee, I'll post it in a few mins
[beech]: fencepost?
beech is protected with velcro
[Lady_Aleena]: How is velco protective? It sticks to a lot of things.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-06-23 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (538 votes). Check out past polls.