Loading ...
Sorry, an error occurred while loading the content.

Re: How NOT to count lines per The Daily WTF

Expand Messages
  • thad_floryan
    ... For the curious, the j and pop are related. The j displays any parent processes to which I can pop up into from a child shell. So how do I use
    Message 1 of 12 , Jun 30, 2011
    • 0 Attachment
      --- In linux@yahoogroups.com, "thad_floryan" <thad@...> wrote:
      > [...]
      > FWIW, here's what's in my .bash_aliases:
      > [...]
      > alias j="jobs -l"
      > [...]
      > alias pop="fg"
      > [...]

      For the curious, the "j" and "pop" are related. The "j" displays any
      parent processes to which I can "pop" up into from a child shell.

      So how do I use those? In emacs, typing a ^Z (Ctrl-Z) forks a new bash
      child shell. The presence of the parent emacs process is revealed by
      the "j".

      Why did I alias a longer "pop" rather than simply using "fg" (which is
      for foreground)? This goes back to circa 1970s on DECsystem-20s which
      had a "pop" command whose action is identical to UNIX's/linux's "fg" and
      the "pop" is easier for _me_ to type given I'm right-handed. :-)
    • Michael Kjorling
      ... Hash: SHA1 ... Try ls -l poems/ some time (note the slash). Or ls -1 poems/ if you prefer. - -- Michael Kjörling .. michael@kjorling.se ..
      Message 2 of 12 , Jul 4, 2011
      • 0 Attachment
        -----BEGIN PGP SIGNED MESSAGE-----
        Hash: SHA1

        On Jun 30 2011 01:23 -0700, from cidhus@... (Herbert R Coburn):
        > I like to track the number of poems I've written. Bad memory and all.
        > I use cd poems; ls -l | wc -l quite frequently. poems is a link, so
        > ls -l poems doesn't quite give the correct answer to stdout.

        Try "ls -l poems/" some time (note the slash). Or "ls -1 poems/" if
        you prefer.

        - --
        Michael Kjörling .. michael@... .. http://michael.kjorling.se
        * ..... No bird soars too high if he soars with his own wings ..... *
        * ENCRYPTED email preferred -- OpenPGP keys: 0x32D6B8C6, 0xBDE9ADA6 *
        * ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *

        -----BEGIN PGP SIGNATURE-----
        Version: GnuPG v1.4.10 (GNU/Linux)

        -----END PGP SIGNATURE-----
      Your message has been successfully submitted and would be delivered to recipients shortly.