From d612a94561d976f256624bdf83b906058da33268 Mon Sep 17 00:00:00 2001 From: msglm Date: Fri, 27 Jan 2023 20:06:41 -0600 Subject: now jobconsider actually works properly --- .local/bin/jobconsider | 12 ++++++------ 1 file 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" -- cgit v1.2.3