This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
manual:Filters [2023/09/18 04:31] peternlewis |
manual:Filters [2024/07/15 21:58] (current) peternlewis |
||
---|---|---|---|
Line 27: | Line 27: | ||
* Get parent of a path. | * Get parent of a path. | ||
* Get the filename component of a path. | * Get the filename component of a path. | ||
- | * Get the basename of the path (ie the filename without directory or extension). | + | * Get the base name of the path (ie the filename without directory or extension). |
* Get or delete the path extension. | * Get or delete the path extension. | ||
* Get the display name of a path. | * Get the display name of a path. | ||
Line 33: | Line 33: | ||
* Resolve symlinks, or standardize the path. | * Resolve symlinks, or standardize the path. | ||
* Get the URL scheme, host, port, user, password, path, fragment or query. | * Get the URL scheme, host, port, user, password, path, fragment or query. | ||
- | * Sort, reverse sort, or shuffle lines. | + | * Sort, reverse (first<=>last), or shuffle (permute) lines. |
* Delete or bullet (•) control characters. | * Delete or bullet (•) control characters. | ||
* Calculate an expression and return the result, see the [[manual:Calculations]] section. | * Calculate an expression and return the result, see the [[manual:Calculations]] section. | ||
Line 40: | Line 40: | ||
* 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. You can also process text 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. |
+ | |||
+ | You can also process text using an AppleScript or shell script, for example the shell script: | ||
{{ perl-pe-filter.png?nolink&583 |}} | {{ perl-pe-filter.png?nolink&583 |}} |