Difference between revisions of "Gsed -i"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 4: | Line 4: | ||
[[brew install gsed]] | [[brew install gsed]] | ||
[[sed -i]] | [[sed -i]] | ||
+ | |||
+ | Remove non [[ASCII]] [[characters]] | ||
+ | LANG=C [[gsed -i]] 's/[\d128-\d255]//g' | ||
== See also == | == See also == | ||
− | |||
* {{sed}} | * {{sed}} | ||
[[Category:Sed]] | [[Category:Sed]] |
Latest revision as of 10:03, 8 December 2023
brew install gsed sed -i
Remove non ASCII characters
LANG=C gsed -i 's/[\d128-\d255]//g'
See also[edit]
sed, gsed
,-n, -i
,Ansible: replace
,append
,Chef: Editing a file
,lineinfile
Advertising: