in reply to Using perl interactively with VI
(update: added +1 to preserve first question mark)perl -pi -le'$_=substr($_,0,index($_,"?")+1)' file.txt
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using perl interactively with VI
by ambrus (Abbot) on Mar 14, 2004 at 13:14 UTC | |
by jeffa (Bishop) on Mar 15, 2004 at 19:33 UTC |