An open API service indexing awesome lists of open source software.

https://github.com/bgelov/bash-comment-all

Bash script for placing comment symbol # for all non-empty strings
https://github.com/bgelov/bash-comment-all

bash bash-parser bash-sed parse sed

Last synced: 19 days ago
JSON representation

Bash script for placing comment symbol # for all non-empty strings

Awesome Lists containing this project

README

          

# bash-comment-all
Bash script for placing comment symbol # for all non-empty strings

```
read -p "Enter filename or file path: " filename
sed -i '/./s/^/#/' "${filename}"
```