Skip to content

winebarrel/ruby-mawk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= ruby-mawk

== Description

Ruby binding for libmawk

see http://repo.hu/projects/libmawk/

== Install

gem install mawk

== Example

  #!/usr/bin/env ruby
  
  require 'mawk'
  
  open('file.txt') do |f|
    f.awk('/London/ {print}')
  end
  
  str = <<-EOS
    London Bridge is broken down,
    Broken down, bloken down.
    London Bridge is bloken down,
    My fair lady.
  EOS
  
  #puts str.sawk('{print $2}')
  
  str.sawk('{print $2}') do |line|
    puts line
  end

About

Ruby bindings for mawk text processing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors