[ale] another darn sed/awk question - disregard
Fletch
fletch at phydeaux.org
Thu Jul 24 11:50:37 EDT 2003
Erm, your sample data had only 7 characters before the digits on the
first two lines, but presuming you meant what you asked there's
always:
perl -lpe 's/^(.{8})/$1 /' foo
Or even:
ruby -pe '$_=$_[0..7]+" "+$_[8..-1]' foo
Or:
ruby -pe '$_.sub!(/^(.{8})/,"\\1 ")' foo
But then that's not using sed or awk. Then again who'd want to? :)
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 294-0820 (m) | scary questions." -- Jules =(___)=
| U
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list