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
- Host: GitHub
- URL: https://github.com/bgelov/bash-comment-all
- Owner: bgelov
- License: cc0-1.0
- Created: 2023-06-12T02:11:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T02:35:35.000Z (almost 3 years ago)
- Last Synced: 2025-01-03T15:46:46.293Z (over 1 year ago)
- Topics: bash, bash-parser, bash-sed, parse, sed
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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}"
```