From b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 26 Feb 2026 10:05:59 +0000 Subject: overhaul --- ltok | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ltok') diff --git a/ltok b/ltok index c90823e..fc25a65 100755 --- a/ltok +++ b/ltok @@ -1,9 +1,8 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby -STDIN.set_encoding 'utf-8' -STDOUT.set_encoding 'utf-8' +STDIN.set_encoding "utf-8" +STDOUT.set_encoding "utf-8" while line = STDIN.gets puts line.strip.split(/\s/).size end - -- cgit v1.2.3