Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Tuesday July 10, 2007
06:42 AM

Yeah, I'm an idiot

[ #33767 ]

The joys of trying to fix a tiny problem, trying to do it quickly and not having enough coffee.

$ mkdir conf/devel
$ cp -R conf/* conf/devel

Hey, why is that taking so long?

Sigh.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • => mkdir conf; mkdir conf/devel; touch conf/a => find conf conf conf/devel conf/a => cp -R conf/* conf/devel/ cp: cannot copy a directory, `conf/devel', into itself, `conf/devel/devel' => find conf conf conf/devel conf/devel/a conf/devel/devel conf/devel/devel/a conf/a one level too deep, but it stopped quickly. standard bash from ubuntu. => bash --version GNU bash, version 3.2.13(1)-release (i486-pc-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc.
    • eh. it was supposed to be better formatted.

      => mkdir conf; mkdir conf/devel; touch conf/a

      => find conf
      conf
      conf/devel
      conf/a

      => cp -R conf/* conf/devel/
      cp: cannot copy a directory, `conf/devel', into itself, `conf/devel/devel'

      => find conf
      conf
      conf/devel
      conf/devel/a
      conf/devel/devel
      conf/devel/devel/a
      conf/a

      one level too deep, but it stopped quickly. standard bash from ubuntu.

      => bash --version
      GNU bash, version 3.2.13(1)-release (i486-pc-linux-gnu)
      Copyright (C) 2005 Free Software
      • $ uname -a
        FreeBSD ************** 6.2-STABLE FreeBSD 6.2-STABLE #2: Thu Mar 29 20:01:22 BST 2007
        root@**************:**************  i386
      • Oh, and my bash:

        $ bash --version
        GNU bash, version 3.00.16(1)-release (i386-portbld-freebsd5.4)
        Copyright (C) 2004 Free Software Foundation, Inc.
  • yeah, that's why i always do something like

    mkdir conf/zzzz
    cp -R conf/*
    mv conf/zzzz conf/devel
  • shopt -s extglob
    cp -R conf/!(devel) conf/devel
  • grep PATTERN *.txt >grepped.txt