| My Blog | http://bloglessness.pockettheories.com |
#Ruby 2.7 will be EOL-ed at the end of the month:
https://endoflife.date/ruby
AWS hasn't deprecated the Ruby 2.7 runtime yet on Lambda, so perhaps someone with a dependency on v2.7 can move there?
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Here’s an attempt at building a grep-alternative in Ruby… #!/usr/bin/env ruby # # Author: Katkam Nitin Reddy # Email: <[email protected]> # Date: 2023-02-08 # Description: Replacement for grep with support for lookahead/lookbehind # require 'optparse' require 'colorize' def process(options) input = File.read options[:inputfile] unless options[:inputfile]=='-' input = ARGF.read if options[:inputfile]=='-' # input = STDIN.gets if options[:inputfile]=='-' # This returns only 1 line, so we use ARGF.read instead input.each_line do |iter_line| if not (mat = iter_line.
If you are familiar with older versions of MacOS, when MacBooks still had Intel CPUs, touchbars, and thick bezels, the default shell providing a command line interface was bash. The version of the bash shell that MacOS provides is version 3.2, which is from the year 2006. The older versions of the bash shell was distributed under the GNU GPL v2 license, and Apple was perfectly happy to comply with the terms of the license when bundling it with MacOS.