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

20323Re: [Clip] Re: ^!MkDir

Expand Messages
  • Hugo Paulissen
    Feb 4, 2010
    • 0 Attachment

      This looks as an elegant solution, and is not too much OT.



      From: Alec Burgess <buralex@...>
      To: ntb-clips@yahoogroups.com
      Sent: Thu, February 4, 2010 3:39:05 PM
      Subject: Re: [Clip] Re: ^!MkDir

      This is an interesting thread though getting close to off-topic now. :-)
      (though all of the stuff we're talking about CAN be run from an NTB clip)

      I'm running WinXP and have cygwin and UnxUtils installed. I can't find
      any mkdirhier *BUT* when I check help for cygwin's mkdir I get:
      > sh-3.2$ mkdir --help
      > Usage: mkdir [OPTION] DIRECTORY...
      > Create the DIRECTORY(ies) , if they do not already exist.
      > Mandatory arguments to long options are mandatory for short options too.
      > -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask
      > -p, --parents no error if existing, make parent directories as
      > needed
      > -v, --verbose print a message for each created directory
      > -Z, --context=CTX set the SELinux security context of each created
      > directory to CTX
      > --help display this help and exit
      > --version output version information and exit
      so the --parents argument appears to be what Lotta originally wanted.
      Note: that (afaict) executing mkdir at cmd prompt uses the (native) DOS
      mkdir while entering 'bash' or 'sh' (ie. one of the unix shells) at
      that command prompt ... then ... mkdir executes the cygwin or UnxUtils

      so that gives us about 100 different ways to skin the cat :-)

      Al - if you do mkdir --help do you have the -p option?

      Al wrote:
      > loro wrote:
      >> Actually, creating a chain of new directories works both with
      >> command.com and cmd.exe here.
      > Y'all got me curious. this here O.S. that don't use drive letters but
      > instead uses things like /home
      > sh
      > bash
      > (shells. there's no command.com or cmd.exe)
      > mkdir
      > for make one at a time. But also has mkdirhier (make_dir_hierarchy ).
      > Makes unlimited levels deep (except eventually limited by ram and
      > computer's resources)
      > al@P5Q:~/temp/ tst$ mkdirhier ./new1/new2/ new3
      > al@P5Q:~/temp/ tst$ ls
      > new1/
      > al@P5Q:~/temp/ tst$ pwd
      > /home/al/temp/ tst
      > al@P5Q:~/temp/ tst$ cd ./new1/new2/ new3
      > al@P5Q:~/temp/ tst/new1/ new2/new3$ pwd
      > /home/al/temp/ tst/new1/ new2/new3
      > al@P5Q:~/temp/ tst/new1/ new2/new3$

      Regards ... Alec (buralex@gmail & WinLiveMess - alec.m.burgess@ skype)

      [Non-text portions of this message have been removed]

      [Non-text portions of this message have been removed]
    • Show all 21 messages in this topic