diff options
author | msglm <msglm@techchud.xyz> | 2023-01-27 20:06:41 -0600 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-01-27 20:06:41 -0600 |
commit | d612a94561d976f256624bdf83b906058da33268 (patch) | |
tree | 4f78f385c0be734feb22c26922c0f6a5db0a902c /.local/bin | |
parent | ea9cef406d75a4b8e776a8b15cf9c3e14bcb7bf4 (diff) | |
download | msglm-dotfiles-d612a94561d976f256624bdf83b906058da33268.tar.gz msglm-dotfiles-d612a94561d976f256624bdf83b906058da33268.tar.bz2 msglm-dotfiles-d612a94561d976f256624bdf83b906058da33268.zip |
now jobconsider actually works properly
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/jobconsider | 12 |
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" |