Guest User

Untitled

a guest
May 25th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/usr/bin/ruby
  2. # Give this a file and an enlargement factor and pipe the resulting output to a bigger file
  3.  
  4. lines = File.open(ARGV.shift).readlines
  5.  
  6. factor = ARGV.shift.to_i
  7. factor.times do
  8. lines.each do |line|
  9. puts line
  10. end
  11. end
Add Comment
Please, Sign In to add comment