Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
-- Get the run of non-white-space at the end, if any.
|
||||
try
|
||||
set output to (do shell script "echo 'I am a string' | egrep -o '\\S+$'")
|
||||
on error message
|
||||
set output to "No match"
|
||||
end try
|
||||
-- Replace the first instance of "orig…" with "modified".
|
||||
set moreOutput to(do shell script "echo 'I am the original string' | sed 's/orig[a-z]*/modified/'")
|
||||
return output & linefeed & moreOutput
|
||||
Loading…
Add table
Add a link
Reference in a new issue