Posted By

rowntreerob on 03/12/09


Tagged

Bash filenames


Versions (?)

directory names , get base dir removing fileName from string


 / Published in: Bash
 

you have to collect the filenames from 'find' in an input file then open the input in this script

  1. /home/rob/bin/str_get_dirname.sh /var/tmp/vid_all | sort | uniq -c
  2.  
  3. 3 vbuilder/glass/images_ads
  4. 3 vbuilder/glass/vbuilder/glass/images_ads
  5. 248 vbuilder/images_gallery
  6. 96 vbuilder/netvibes_gallery

Report this snippet  

You need to login to post a comment.