Some basic bash functions(Some originals and some tweaked).