This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bash_scripts [2022/04/07 13:53] admin |
bash_scripts [2025/03/17 13:35] (current) admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Bash Scripts ====== | ====== Bash Scripts ====== | ||
| + | |||
| + | ===== Getting current date ===== | ||
| + | <code current_date.sh> | ||
| + | #!/bin/bash | ||
| + | DATE=$(date +"%Y-%m-%d") | ||
| + | echo $DATE | ||
| + | </code> | ||
| ===== Extracting compressed files ===== | ===== Extracting compressed files ===== | ||
| Line 56: | Line 63: | ||
| <code bash> | <code bash> | ||
| aspell -H -c filename.php | aspell -H -c filename.php | ||
| - | </bash> | + | </code> |
| The ''-c'' asks aspell to check, and the ''-H'' prepares it for HTML (it skips class names and php tags etc). | The ''-c'' asks aspell to check, and the ''-H'' prepares it for HTML (it skips class names and php tags etc). | ||