ex/passwd_report.rb in rio-0.3.3 vs ex/passwd_report.rb in rio-0.3.4
- old
+ new
@@ -1,12 +1,8 @@
-#!/usr/bin/env ruby
+#!/usr/local/bin/ruby
require 'rio'
+# Create a tab separated file of accounts in a UNIX passwd file,
+# listing only the username, uid, and realname fields
+
rio('/etc/passwd').csv(':').columns(0,2,4) > rio(?-).csv("\t")
-__END__
-
-From Seattle,Wa
-Take I-90 east, take exit 143 Gorge Amphitheatre. Follow amphitheatre signs approximately 6 miles.
-
-206-242-8738
-3:00