This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
RosettaCodeData
/
Task
/
Strip-comments-from-a-string
/
Sed
/
strip-comments-from-a-strin...
4 lines
76 B
Sed
Raw
Permalink
Blame
History
#!/bin/sh
# Strip comments
e
cho "$1" | sed 's/ *[#
;
]
.
*
$
/
/
g
'
|
s
e
d 's/^ *//'
Reference in New Issue
View Git Blame
Copy Permalink