Could this also be implemented as a bashscript?