Anonymous user
Strip comments from a string: Difference between revisions
→{{header|UNIX Shell}}
(Imported from markhobley.yi.org) |
|||
Line 23:
</lang>
The [[bash]] shell does include string manipulation facilities, so a different technique may be used on that shell:
{{works with|bash}}
<lang bash>
#!/bin/bash
# Strip comments from a string
</lang>
[[Category:String manipulation]]
|