This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Set a script to execute from any place (path) (KDE Neon)

Tags: None
(comma "," separated)
darkmaster
Registered Member
Posts
1
Karma
0
Hello there, basically what I have is a script:
Code: Select all
#bin/bash

cbr=$1
start_directory=`pwd`

cbz=`basename "$cbr" .cbr`.cbz

tempdir=`mktemp -d`
cd "$tempdir"
unrar e -inul "$start_directory/$cbr"
zip -q "$start_directory/$cbz" *
rm -rf "$tempdir"

That I have on a file name cbr2cbz, and I want to execute the command 'cbr2cbz', for example for this:
Code: Select all
for a in *.cbr;do cbr2cbz "$a";done

from anywhere, how can I do this? In Ubuntu, I saved it as 'cbr2cbz' in either ~/.local/bin or ~/bin so the script is in the path and make it executable ('chmod u+x ~/bin/cbr2cbz' in a shell). And that was it. But there's none of those two folders available in KDE Neon. I tried with '.config/plasma-workspace/env/' which is what I found, but to na avail. Any ideas? Thank you, help will be appreciated.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]