Comments (3)
Hey @BoyangMichael
I don't think it's related to Raycast itself - I think it's more sed
.
As far as I know some versions of sed
had problems with \s
.
Did you try maybe with: echo "123 456" | sed -E 's/[[:space:]]//g'
or echo "123 456" | sed -E 's/[ ]//g
?
from script-commands.
Hey @BoyangMichael
I don't think it's related to Raycast itself - I think it's more
sed
.
As far as I know some versions ofsed
had problems with\s
.Did you try maybe with:
echo "123 456" | sed -E 's/[[:space:]]//g'
orecho "123 456" | sed -E 's/[ ]//g
?
I tried with [[:space:]]
and [ ]
. They both work!
You are right. I found that my terminal app and the Raycast do use different versions of sed
!
Thanks for the answer and solution!
from script-commands.
Ok great it worked !
from script-commands.
Related Issues (20)
- Getting a NSPOSIXErrorDomain 13 error when trying to run a script that has previously worked
- Fail to call jupyter notebook command in scirpt command HOT 1
- Clipboard History: Disabled Applications not working HOT 2
- Define Word can not show the pronunciation button HOT 1
- Can't get system variables in Python script. HOT 1
- `refreshTime` just not refreshing. Help needed debugging please HOT 4
- Raycast for Windows OS HOT 1
- How to delete a script HOT 11
- Markdown Table support in fullOutput HOT 1
- Nodejs script error HOT 3
- Why the new version of Raycast script cannot send text to clipboard? HOT 14
- How to automatically get the user-selected text to fill the Query HOT 3
- highjacks current terminal window instead of opening new terminal window HOT 2
- I'm not sure If this is just me not knowing how scripts work or if it's a bug HOT 4
- allow recursive search in script directory HOT 1
- "Running script" continues indefinitely HOT 2
- My script commands is occasionally missing HOT 15
- I hope to set the default value and memory ability. HOT 2
- AppleScript missing icons HOT 1
- Can't stop script from running in the background HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from script-commands.