summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/jobconsider12
1 files changed, 6 insertions, 6 deletions
diff --git a/.local/bin/jobconsider b/.local/bin/jobconsider
index 68bef0c..84aea74 100755
--- a/.local/bin/jobconsider
+++ b/.local/bin/jobconsider
@@ -11,12 +11,12 @@ numofjobs=1
consideringjob="$(find /home/"$USER"/Documents/Jobs/Considering -maxdepth 1 -type f | shuf | head -1)"
if [[ $# = 0 ]]
then
- less "$consideringjob"
+ grep "URL : " "$consideringjob"|sed -e 's/URL : //g'|xargs xdg-open
read -r -p "Are you interested? (y/n): " Choice
if [ "$Choice" = 'y' ]
then
- mkdir /home/joybuke/Documents/"$USER"/Applying/"$(basename "$consideringjob")"
- mv -v "$consideringjob" /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob")"
+ mkdir /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob" .txt)"
+ mv -v "$consideringjob" /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob" .txt)"/"$(basename "$consideringjob")"
elif [ "$Choice" = 'n' ]
then
rm "$consideringjob"
@@ -25,12 +25,12 @@ fi
while [[ "$numofjobs" -le "$1" ]]
do
- less "$consideringjob"
+ grep "URL : " "$consideringjob"|sed -e 's/URL : //g'|xargs xdg-open
read -r -p "Are you interested? (y/n): " Choice
if [ "$Choice" = 'y' ]
then
- mkdir /home/joybuke/Documents/"$USER"/Applying/"$(basename "$consideringjob")"
- mv -v "$consideringjob" /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob")"
+ mkdir /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob" .txt)"
+ mv -v "$consideringjob" /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob" .txt)"/"$(basename "$consideringjob")"
elif [ "$Choice" = 'n' ]
then
rm "$consideringjob"