examples.rb 202 B

1234567891011121314
  1. #!/bin/ruby
  2. require_relative 'rubysh'
  3. #examples
  4. -ls("/").grep("file").tail("-n 1")
  5. puts ""
  6. p +curl("\"https://www.weather.gov\" -s").grep("33")
  7. p +"a\nb\nc\nb1234\nbc".grep("\"b\"")
  8. -"hello".less