Move under www to ease rsync
This commit is contained in:
Executable
+14
@@ -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