About sedroid
"sedroid" is a tool which performs a sed-like script language on Android smartphones and tablets.
★ What is sed?
It is a kind of UNIX utility which analyzes and transforms some text and its execution environment. It is also a kind of the text editor that is called Stream Editor.
★ Features
- After receiving any text using the share capabilities of Android and transforming it by the sed script, you can share the result with other applications.
- Use the Java regular expression engine inside.
-Some useful sample scripts have been pre-registered, you can use even if you have not been using the sed script language.
- You can apply some control to the application from a script by its own extension.
★ Example of the sample scripts that are registered from the beginning
- Put the ">" at the beginning / remove.
- Erase a new-line (CR) and summarize in one line.
- Insert a line break every 40 characters.
- Conversion of A.D. and Japanese calendar.
- Enclosed in "angle brackets" the text.
- Convert the "angle brackets" inside the "angle brackets" to "double angle brackets".
- Separated by "," for each three-digit numbers.
- Convert single byte alphanumeric characters to/from double-bytes alphanumeric characters.
In addition, sedroid includes scripts that is transplanted from the GNU sed sample script, samples which use sedroid extended function, and so on.
★ Difference between "sedroid" and GNU sed / POSIX sed
sedroid uses the regular expression engine of Java inside, and it is not compatible with GNU sed and POSIX sed.
* "sedroid" cannot do.
- Cannot use syntax to replace "/" that is the delimiter of an s command and regular expressions to another character.
- Cannot use standard regular expressions.
What is the most impact is that there is no need to escape (Do not) " { } ( ) + ". It is almost in the same state as having attached -r option of GNU sed.
- In GNU/POSIX sed , only a newline character means a terminal symbol for command a, i, c, and #. In sedroid, you can use "; (semicolon)" as a terminal symbol for these commands. If you want to write ";" explicitly in these commands, please put the escape character immediately in front.
- Cannot deal with large text.
"sedroid" keeps the input text on memory while internal processing. ANR might be occurred when dealing with large text.
ANR:Application Not Responding
- Cannot read a file as an input, or write to a file as an output.
There is also no function which is equivalent to an argument when you run the system file operation.
- There is no function equivalent to -l option (the number of wrappped lines of the l command is specified).
* "sedroid" can do.
- -n option (suppress the output of an implicit pattern space at the end of the cycle) can realize the same functionality by describing it as "#n" to the 1st line of the script. This is the same as that of GNU sed extension.
- The meta character of Java regular expression can be used altogether fundamentally.
Please refer to the reference of a java.util.regex.Pattern class.
- The e command (run the system command) executes a /system/bin subordinate's command.
- specifying a parameter at the end of a script by q command and Q command, you can share the result text, copy to the clipboard, control a reference by the browser, and so on. For more information, please see the Help within the app.
(*) Please read 【sedroidソフトウエア利用許諾規約】the software license terms inside the application before start using the software.
(*) listed company name, product, and service names are trademarks or registered trademarks of their respective companies.
by R####:
Handy Tool