Move under www to ease rsync
This commit is contained in:
15
www/eps/hpr2824/hpr2824_awk15_ex3.awk
Executable file
15
www/eps/hpr2824/hpr2824_awk15_ex3.awk
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/awk -f
|
||||
|
||||
# Downloadable example 3 for GNU Awk Part 15
|
||||
|
||||
{
|
||||
if ($NF == "-") {
|
||||
$NF = ""
|
||||
line = $0
|
||||
getline
|
||||
print line $0
|
||||
}
|
||||
else {
|
||||
print $0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user