bashdb is maintained separate from bash, by a different person:
http://bashdb.sourceforge.net/
John,
After trail and error the following works for me but still has to be
refined.
find . -type f | while read i; do echo -e "$(dirname ${i}}} | cut -b 3-)
$(basename ${i}) $(wc -l ${i})" ; done | cut -d " " -f 1,2,3
1. All the folders that I am interested in are all starts with number
2.
Please copy the following to a file test.sh
#!/bin/bash
rx='(wlan)(1)'
if [[ 'wlan1' =~ $rx ]]; then
echo 'if returned 0'
echo ${BASH_REMATCH[0]}
echo ${BASH_REMATCH[1]}
echo ${BASH_REMATCH[2]}
echo ${#BASH_REMATCH}