Remove leading spaces.
TODO: collapasable, copyable, download, etc
What is a sed command to turn modified: benchmark/data/env_states/otel_demo/1.0.1/neo4j.json
into benchmark/data/env_states/otel_demo/1.0.1/neo4j.json
? Please be breifYou can use the following sed
command:
sed 's/^[ \t]*//'
This command removes leading spaces and tabs from the line.I wanted to also remove the word "modified:"To remove leading spaces or tabs and the word "modified:", you can use:
sed 's/^[ \t]*modified:[ \t]*//'
Remove leading spaces. created at Tue Jan 20 1970 19:03:01 GMT+0000 (Coordinated Universal Time) Related Chats
Refactoring code to capture GUID. 0.427
Population Percentage: 2.41% 0.403
Extract `key` and `value`. 0.302
Rust: Replace String Substitution 0.298
Update Docker Compose Envvars 0.285
Rust regex pattern for prices. 0.284
Git Diff: Compare Branches 0.283