Move under www to ease rsync
This commit is contained in:
16
www/eps/hpr2060/hpr2060_reverse_characters.sed
Executable file
16
www/eps/hpr2060/hpr2060_reverse_characters.sed
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sed -f
|
||||
|
||||
/../! b
|
||||
|
||||
# Reverse a line. Begin embedding the line between two newlines
|
||||
s/^.*$/\n&\n/
|
||||
|
||||
# Move first character at the end. The regexp matches until
|
||||
# there are zero or one characters between the markers
|
||||
tx
|
||||
:x
|
||||
s/\(\n.\)\(.*\)\(.\n\)/\3\2\1/
|
||||
tx
|
||||
|
||||
# Remove the newline markers
|
||||
s/\n//g
|
||||
Reference in New Issue
Block a user