GitBucket
4.20.0
Toggle navigation
Sign in
Files
Branches
1
Tags
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
Jonathan
/
note
Browse code
Minor edit.
master
1 parent
37bcef4
commit
0ff3cccb7f82e565db12bc6eea5081d905ba3c13
Jonathan
authored
on 23 Feb 2017
Patch
Showing
1 changed file
note
Ignore Space
Show notes
View
note
100755 → 100644
#!/bin/bash # Check if there is any arguments, if there is then append all of it. if [ "$1" == "less" ]; then less ~/notefile exit 1 elif [ "$1" != "" ]; then date >> ~/notefile echo "$@" >> ~/notefile exit 1 fi echo 'Enter input or type :exit or :q to exit. Type :less to show the notefile.' read input if [ "$input" != ":exit" ] && [ "$input" != ":q" ]; then date >> ~/notefile fi while [ "$input" != ":exit" ] && [ "$input" != ":q" ]; do if [ "$input" == ":less" ]; then less ~/notefile else echo "$input" >> ~/notefile fi read input done
#!/bin/bash # Check if there is any arguments, if there is append all of it. if [ "$1" == "less" ]; then less ~/notefile exit 1 elif [ "$1" != "" ]; then date >> ~/notefile echo "$@" >> ~/notefile exit 1 fi echo 'Enter input or type :exit or :q to exit. Type :less to show the notefile.' read input if [ "$input" != ":exit" ] && [ "$input" != ":q" ]; then date >> ~/notefile fi while [ "$input" != ":exit" ] && [ "$input" != ":q" ]; do if [ "$input" == ":less" ]; then less ~/notefile else echo "$input" >> ~/notefile fi read input done
Show line notes below