for i in *.pcap do mkdir ${i%%.*}; cd ${%%.*} bro here cd .. done -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20161028/ad577b9d/attachment.html