Re: Remove last 10 lines of all files in a directory



DJ Stunks wrote:
$#file -= 10;

Hey, no kidding? I never realized $#foo could be assigned to... that's
a neat trick.

--
David Filmer (http://DavidFilmer.com)

.



Relevant Pages

  • Re: Halloween
    ... didn't want them to have it, they wouldn't be out trick or treating. ... Are you kidding?! ... but the pester-power ...
    (alt.support.diabetes)
  • Re: Freshening RPMs and obsolete files
    ... > maintainers merge the functionality of foo_helper into foo and release a ... >]Wasting space. ... The trick is identifying the orphan packages. ...
    (comp.os.linux.misc)
  • Re: Is this a bug, or is it me?
    ... def f1: pass ... The trick is to realise that the object stored in the dict is not the ... foo() takes exactly 1 argument ...
    (comp.lang.python)
  • Re: The Road to Lisp
    ... I'll look for it using the search tool. ... The trick is that you have to call your page "Foo ... I've re-fixed the instructions on the wiki. ...
    (comp.lang.lisp)
  • Re: deprecated
    ... as most have noted, 'deprecated' denotes that ... while the "foo" will function in this release ... that while there are those who have done this trick, ... go back and refactor any code you had that used ...
    (perl.beginners)