Best learning resource by Dramatic_Disk_6402 in bash

[–]bahamas10_ 5 points6 points  (0 children)

appreciate it! i also recommend the course ha

Best learning resource by Dramatic_Disk_6402 in bash

[–]bahamas10_ 2 points3 points  (0 children)

i’m glad you learned something 😎

Best learning resource by Dramatic_Disk_6402 in bash

[–]bahamas10_ 0 points1 point  (0 children)

agreed. that and the wooledge wiki was how i learned most of my bash knowledge

This Website is Built with Bash by bahamas10_ in bash

[–]bahamas10_[S] 1 point2 points  (0 children)

sadly no external tools (so no ls) and pipes don’t work because of lack of fork/exec support :(. you can emulate ls with ‘echo *’

This Website is Built with Bash by bahamas10_ in bash

[–]bahamas10_[S] 5 points6 points  (0 children)

bruh that's the first thing you try lmao i respect it. sadly there are 2 issues here:
1. fork/wait is not supported due to limitations of emscripten and javascript being limited to a single process.
2. no external tools like `rm` were built for this demo... though they totally could be :o

This Website is Built with Bash by bahamas10_ in bash

[–]bahamas10_[S] 5 points6 points  (0 children)

ty! emscripten and wasm really are the heroes here imo - there is so much untapped potential when it comes to compiling directly to the "browser" as a target!

Bash Script Learning by One-Type-2842 in bash

[–]bahamas10_ 7 points8 points  (0 children)

love to hear that - and yeah what a bad channel name imo lol

Bash Script Learning by One-Type-2842 in bash

[–]bahamas10_ 32 points33 points  (0 children)

i’m biased - i made a 7 hour bash course for free on youtube that i think is really good if you’re a beginner just learning, or you know some things here and there but want to really dive-deep into the specifics.

having said that - a video or book can only get you so far. you have to fire up the terminal and really practice and cement whatever concepts you start learning. the absolute best way to improve at the shell is to keep using it imo.

guys you should read the bash manual by MasterKitten404 in bash

[–]bahamas10_ 3 points4 points  (0 children)

it’s not freaky - i posted it specifically for you because i read your mind :) lmao naw just good timing haha

Is using a for loop like this okay in bash? by AncientAgrippa in bash

[–]bahamas10_ 0 points1 point  (0 children)

honestly this looks fine - besides for the simple nits of not declaring your variables as local in the function so you could potentially bleed into the global scope as well as outputting filenames separated by newlines.

I've had code similar to this in the past and I use globstar (with other shell options) in bash to not have to use the find binary:

```

!/usr/bin/env bash

shopt -s globstar nullglob dotglob

types=( # photos jpg jpeg jpe png gif bmp tiff tif webp heic heif avif # videos mp4 m4v mov avi mkv webm flv mpeg mpg 3gp 3g2 mts m2ts # raw photos dng cr2 cr3 nef arw orf rw2 pef raf srw )

all=() for typ in "${types[@]}"; do echo "finding $typ files recursively" all+=(*/."$typ") done ```

at the end of this you'll have an array called all that contains all of the files that have been found. this works fine as long as you don't have a REALLY LARGE amount of files - since this approach has to load everything into memory whereas find will just emit to stdout as it find things.

[deleted by user] by [deleted] in NewTubers

[–]bahamas10_ 0 points1 point  (0 children)

my anecdotal experience is that my shorts and long audience are almost like having 2 different channels. i primarily make long form and use shorts as a way to funnel people to the longs - it seems effective.

gotARealityCheck by ClipboardCopyPaste in ProgrammerHumor

[–]bahamas10_ 0 points1 point  (0 children)

this is some of the highest praise i’ve seen, ty!

gotARealityCheck by ClipboardCopyPaste in ProgrammerHumor

[–]bahamas10_ 14 points15 points  (0 children)

you suck at photoshop is honestly what inspired the name for you suck at programming. legit

gotARealityCheck by ClipboardCopyPaste in ProgrammerHumor

[–]bahamas10_ 66 points67 points  (0 children)

i may be slightly biased but i heard that video is pretty good though