Move under www to ease rsync
This commit is contained in:
14
www/eps/hpr2610/hpr2610_awk12_extra.awk
Executable file
14
www/eps/hpr2610/hpr2610_awk12_extra.awk
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/awk -f
|
||||
#
|
||||
# Awk script to take a sequence of words separated by spaces and turn them
|
||||
# into a string where each word is followed by as many hyphens as there are
|
||||
# letters in the word itself.
|
||||
#
|
||||
{
|
||||
for (i=1; i<=NF; i++){
|
||||
fill=$i
|
||||
gsub(/./,"-",fill)
|
||||
printf "%s%s",$i,fill
|
||||
}
|
||||
print ""
|
||||
}
|
||||
Reference in New Issue
Block a user