This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:Filters [2017/09/10 22:25] peternlewis |
manual:Filters [2021/10/04 03:18] peternlewis |
||
---|---|---|---|
Line 18: | Line 18: | ||
* Percent Encode or Decode a URL. | * Percent Encode or Decode a URL. | ||
* Quote for AppleScript, JavaScript, Shell (bash) Script, or Swift. | * Quote for AppleScript, JavaScript, Shell (bash) Script, or Swift. | ||
- | * Get or delete the last path component or the path extension. | + | * Convert a JSON object string to Compact or Pretty format. |
+ | * Get the filename component of a path. | ||
+ | * Get parent of a path. | ||
* Get the basename of the path (ie the name without directory or extension). | * Get the basename of the path (ie the name without directory or extension). | ||
+ | * Get or delete the path extension. | ||
+ | * Get the display name of a path. | ||
* Expand tilde (~) paths, or abbreviate with a tilde. | * Expand tilde (~) paths, or abbreviate with a tilde. | ||
* Resolve symlinks, or standardize the path. | * Resolve symlinks, or standardize the path. | ||
* Delete or bullet (•) control characters. | * Delete or bullet (•) control characters. | ||
- | * Calculate an expression and return the result, see the [[Calculations]] section. | + | * Calculate an expression and return the result, see the [[manual:Calculations]] section. |
- | * Process Tokens and return the result, see the [[Tokens]] section. | + | * Process Text Tokens and return the result, see the [[manual:Tokens]] section. |
* Get the value of a named variable or named clipboard. | * Get the value of a named variable or named clipboard. | ||
* Count the characters, words or lines and return the result. | * Count the characters, words or lines and return the result. | ||
- | We will likely expand the list of possible filters, so if you have specific filtering needs that you think might be of general interest, please let us know. In the mean time, remember that you can apply scripted filters using an AppleScript or shell script, for example the shell script: | + | We will likely expand the list of possible filters, so if you have specific filtering needs that you think might be of general interest, please let us know. In the mean time, remember that you can apply scripted filters using an AppleScript or shell script, for example the shell script `perl -pe 'tr/A-Z/a-z/'`: |
- | <code bash> | + | {{ perl-pe-filter.png?nolink&583 |}} |
- | pbpaste | perl -pe 'tr/A-Z/a-z/' | pbcopy | + | |
- | </code> | + | |
is roughly equivalent to the Lowercase filter, except that it only works with ASCII characters. | is roughly equivalent to the Lowercase filter, except that it only works with ASCII characters. | ||