Skip to content
Open

Sb2 #253

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions q2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -i
HISTFILE=~/.bash_history
set -o history
history | tr -s " " | cut -d ' ' -f 3 | sort | uniq -c | sort -nr
9 changes: 9 additions & 0 deletions q3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
crontab $1 2>/dev/null 1>/dev/null
if [ $? -eq 0 ]
then
echo "Yes"
else
echo "No"
fi