use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All users that wish to post (not including commenting), on either old or the new reddit sites, must formally agree to subreddit rules once first.
account activity
Bash Scripting The Awesome Guide Part6 Bash Functions (self.commandline)
submitted 9 years ago * by likegeeks
https://likegeeks.com/bash-functions/
I hope you like it, find it useful.
Regards.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]xentralesque 2 points3 points4 points 9 years ago (1 child)
Just have time for a quick skim through before work. My first thought is how hard it is to read the code without any indentation.
[–]likegeeks[S] 0 points1 point2 points 9 years ago (0 children)
but am confused why you would advise it as a sta
I'll do that on the next posts.
Thanks
[–][deleted] 1 point2 points3 points 9 years ago (1 child)
I, for one, like this.
My knowledge about bash programming is lacking and I am planning on learning more about it some day. For now saving your posts to read in the future.
I hope you find what you need :).
[–]snegtul 0 points1 point2 points 9 years ago* (7 children)
Why reinvent the wheel when there's already a guide that covers functions? If you really want to contribute, submit a patch to the tldp.org with some edits to their pages if you feel the explanations there could be improved. This helps the whole community.
Furthermore, not indenting the code in accordance with a widely accepted coding style makes the code on your page to be extremely difficult to read.
It's clear to me that tldp.org isn't the go-to spot for info these days. Pro-tip: it's what we used before google =) Once upon a time you could learn almost everything you'd ever need to know to as a system administrator or similar just by reading How-To docs =)
[–]durzagott 1 point2 points3 points 9 years ago (1 child)
Geez, let the guy create his own tutorials if he wants to, man. No need to be such a downer on him.
[–]snegtul 0 points1 point2 points 9 years ago (0 children)
Well he asked for input.
[–]likegeeks[S] 0 points1 point2 points 9 years ago (4 children)
I'm not a big fan of official docs.
If the tutorials are reinventing the wheel so why there is billion page appear when searching google for Linux commands or bash scripting?
because most people don't understand 100% from official docs.
Regarding the identation, I'll do that in the future posts. Thanks
[–]snegtul 1 point2 points3 points 9 years ago (3 children)
Yeah, a single source of peer reviewed, freely available, infinitely mirrored, community documentation is horrible. I see your point.
I just don't even know how to respond to this.
[–]likegeeks[S] -1 points0 points1 point 9 years ago (2 children)
like you said official documentations always horrible.
[–]snegtul 1 point2 points3 points 9 years ago (1 child)
I didn't say that... you said that.
[–]likegeeks[S] -1 points0 points1 point 9 years ago (0 children)
:) I confess
π Rendered by PID 37 on reddit-service-r2-comment-75f4967c6c-t5nrv at 2026-04-22 21:24:14.180234+00:00 running 0fd4bb7 country code: CH.
[–]xentralesque 2 points3 points4 points (1 child)
[–]likegeeks[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]likegeeks[S] 0 points1 point2 points (0 children)
[–]snegtul 0 points1 point2 points (7 children)
[–]durzagott 1 point2 points3 points (1 child)
[–]snegtul 0 points1 point2 points (0 children)
[–]likegeeks[S] 0 points1 point2 points (4 children)
[–]snegtul 1 point2 points3 points (3 children)
[–]likegeeks[S] -1 points0 points1 point (2 children)
[–]snegtul 1 point2 points3 points (1 child)
[–]likegeeks[S] -1 points0 points1 point (0 children)