Move under www to ease rsync
This commit is contained in:
13
www/eps/hpr2669/hpr2669_bash12_ex2.sh
Executable file
13
www/eps/hpr2669/hpr2669_bash12_ex2.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Demonstrate the use of a regular expression to detect blank lines in a file,
|
||||
# and those containing only whitespace
|
||||
#
|
||||
|
||||
re="^[[:digit:]]+[[:blank:]]*$"
|
||||
|
||||
while read -r line; do
|
||||
[[ $line =~ $re ]] && continue
|
||||
echo "$line"
|
||||
done < <(cat -n "$0")
|
||||
Reference in New Issue
Block a user