Re: Why I love bash scripting?

2015-12-20 Thread Eduardo A . Bustamante López
bashdb is maintained separate from bash, by a different person: http://bashdb.sourceforge.net/

Re: count

2015-12-20 Thread Krem
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.

Why I love bash scripting?

2015-12-20 Thread ken . w . martin
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}