Move under www to ease rsync
This commit is contained in:
23
www/eps/hpr2060/hpr2060_centre.sed
Executable file
23
www/eps/hpr2060/hpr2060_centre.sed
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sed -f
|
||||
|
||||
# Put 80 spaces in the buffer
|
||||
1 {
|
||||
x
|
||||
s/^$/ /
|
||||
s/^.*$/&&&&&&&&/
|
||||
x
|
||||
}
|
||||
|
||||
# del leading and trailing spaces
|
||||
y/\t/ /
|
||||
s/^ *//
|
||||
s/ *$//
|
||||
|
||||
# add a newline and 80 spaces to end of line
|
||||
G
|
||||
|
||||
# keep first 81 chars (80 + a newline)
|
||||
s/^\(.\{81\}\).*$/\1/
|
||||
|
||||
# \2 matches half of the spaces, which are moved to the beginning
|
||||
s/^\(.*\)\n\(.*\)\2/\2\1/
|
||||
Reference in New Issue
Block a user