Wow that is awesome...Sorry.. I removed a lot of stuff from the scripts to make it simpler for the post, in mine it uses the current directory. Is there a way to get glob to output just the directory names but not their entire paths (without just regexing it)---> This is the current output of what you posted

../results//jobs ../results//logs ../results//step0_tophat ../results//step1_2cuffcompare ../results//step1_cufflinks ../results//step2_cuffmerge ../results//step3_cuffdiff ../results//step4_createTranscriptome ../results//step6_bowtie_pe ../results//step7_bowtie_se ../results//step8_bowtie_hg19 ../results//step9_tophat_unmapped_hg19
This is what I was looking for, if it is possible:
jobs logs step0_tophat step1_2cuffcompare step1_cufflinks step2_cuffmerge step3_cuffdiff step4_createTranscriptome step6_bowtie_pe step7_bowtie_se step8_bowtie_hg19 step9_tophat_unmapped_hg19
Thanks so much for your time!

On a side note, I really want to learn more shorthand tricks like this, but they are really hard to find without asking a direct question... are you aware of any resources that instruct specifically on useful shorthand alternatives .. for example the difference between my script and your response.


In reply to Re^2: Most effective bash to perl for directory listing by ZWcarp
in thread Most effective bash to perl for directory listing by ZWcarp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.