Move under www to ease rsync
This commit is contained in:
14
www/eps/hpr2679/hpr2679_bash13_ex3.sh
Executable file
14
www/eps/hpr2679/hpr2679_bash13_ex3.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~
|
||||
# Experimenting with backreferences in Bash regular expressions
|
||||
# =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~ =~
|
||||
|
||||
re='(\<.{1,10}\>) \1'
|
||||
|
||||
if [[ $1 =~ $re ]]; then
|
||||
echo "Matched: $1"
|
||||
else
|
||||
echo "No match: $1"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user