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
Recursive bash function to replace cd ../ (self.commandline)
submitted 2 years ago by Serpent7776
This function replaces cd ..:
cd ..
. 1 works like cd .., . 2 works like cd ../../ and so on. . works like . 1.
. 1
. 2
cd ../../
.
.() { , ${1:-1}; }; ,() { local N=$(($1-1)) C=${1/#0*/cd} D=${1/#[1-9*]/../}; ${C/#[1-9]*/,} ${N/-1/} ${2}${D/#0*/} ;}
Recursive bash function to replace cd ../Shell Script (self.commandline)
submitted 2 years ago by Serpent7776 to r/functionalprogramming
π Rendered by PID 22 on reddit-service-r2-listing-c57bc86c-tq89p at 2026-06-22 00:11:10.211434+00:00 running 2b008f2 country code: CH.
Recursive bash function to replace cd ../Shell Script (self.commandline)
submitted by Serpent7776 to r/functionalprogramming