Комментарии:
i suck at programming because you always teach scripting
Ответитьuse ${a}. My goodness. Do I need to teach you how to bash? Jokes.
ОтветитьYou do have a channel name that appeals to masochistic bashers(programmers?)
ОтветитьBash has lots of features, that are anti obvious and obscure. IFS is one of those. Thanks a lot for brilliant explanation in a concise manner, that was great.
ОтветитьWhy are you bully me? Just kidding, I really suck at programming, ty, sir. But tell me, please, what do you use to make videos, i.e. hardware (camera, mic) and software
ОтветитьCool
Ответитьecho "Bob;Alice;John" | while IFS=';' read a b c; do echo "$a + $b + $c"; done
Instead of
echo "Bob;Alice;John" | tr ";" " " | while read a b c; do echo "$a + $b + $c"; done
Bash is the only language that makes me wish I was working with Perl
ОтветитьThis is really useful stuff, thanks. Bash can be weird but its in Linux and subseqeuently UNIX everywhere so we like it or no, we need to know it
Ответить