C Programming using getopt Tutorial in Linux

  Рет қаралды 54,503

theurbanpenguin

theurbanpenguin

Күн бұрын

Пікірлер: 49
@Joao-oj6bn
@Joao-oj6bn Жыл бұрын
Even after 8 years still the best video i can find about this subject, thanks!
@NeoColossus1020
@NeoColossus1020 10 жыл бұрын
Keep up the good work. I browse your videos from time to time and you always have a very direct/simple approach to explaining the concepts covered.
@TheLordoftheDarkness
@TheLordoftheDarkness 4 жыл бұрын
Thank you so much for explaining things slowly. All other tutorials I found on the Internet directly went to the ':' thing leaving me clueless. You video was very well presented on the other hand. Again thanks.
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Glad it worked for you
@dampdigits
@dampdigits Жыл бұрын
Thank You! I was having difficulty to understand the concept from articles.
@theurbanpenguin
@theurbanpenguin Жыл бұрын
Thanks
@dampdigits
@dampdigits Жыл бұрын
@@theurbanpenguin why use getopt.h instead of unistd.h header file
@N0AGI
@N0AGI 9 жыл бұрын
Andrew - great video. Your truly passionate about sharing your knowledge. Keep up the great work. I learn a lot from watching your videos. Especially the C programming on RASPI. thanks, 73, N0AGI, Nagi
@ДимаПетров-н3ц
@ДимаПетров-н3ц 5 ай бұрын
Bro, super good, thank you. I was writing copy of grep and don't know how to parse multiple flags so easy!
@multivalfran
@multivalfran 2 жыл бұрын
Great video. Absolutely everything I was looking for. Thank you very much
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
awesome
@joemeno123
@joemeno123 10 жыл бұрын
your videos are very useful. Keep up the good work, mate! :)
@trudyandgeorge
@trudyandgeorge 10 жыл бұрын
Mate, your videos are great. I love them.
@JasonKT13
@JasonKT13 4 жыл бұрын
thank you for providing this information, very useful
@heisserpriester7371
@heisserpriester7371 2 жыл бұрын
Loved that video! Thanks so much, you helped a lot!
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
Great
@codesk5653
@codesk5653 4 жыл бұрын
Hi there... Thank for this video, it is extremely easy to follow along and understand. However, if the input is ./temp -fc the program takes 'c' as the ...How would I ensure that it still checks the flags/options in this case?
@shiftrip
@shiftrip 2 жыл бұрын
Great video. I'm a c novice so here's my question - if option is int, why does compiler allow us to option=getopt(argc....) when what we are reading from command line are characters (c or f) and not integer numbers?
@PierreLombardini
@PierreLombardini 9 жыл бұрын
this was perfect ! really easy to follow :)
@MrMits92
@MrMits92 2 жыл бұрын
amazing explanation ! Great video ! Big thx !
@shyngysbek6907
@shyngysbek6907 Ай бұрын
option is declared as an integer but assigned a char symbol from the getopt and used in switch()? What?
@shyngysbek6907
@shyngysbek6907 Ай бұрын
ok, getopt returns an integer but it is represented as a char by its ASCII value
@D3rMesaa
@D3rMesaa 3 жыл бұрын
Ja geil, da hat der Kranzlmüller ja lang gesucht, bis er seine Aufgabe gefunden hat
@diogenisstogiannaris3841
@diogenisstogiannaris3841 2 жыл бұрын
Great video! getopt made simple !!!
@samehmouldi2289
@samehmouldi2289 5 жыл бұрын
how does the program know that cflag and flag reffer to the number of options please ?
@rafidm6263
@rafidm6263 10 жыл бұрын
is there a particular reason why the flags aren't boolean?
@miguelboxer177
@miguelboxer177 5 жыл бұрын
Why did you increment c and f flag?
@yogpooja-vq1pp
@yogpooja-vq1pp 4 жыл бұрын
very well explained .. thank you
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Thanks for commentiing
@Submersed24
@Submersed24 7 жыл бұрын
char **argv is the same as char *argv[] right?
@hro688
@hro688 6 жыл бұрын
yes ofc. ** is the pointer to pointer, so char ** and char * [] is an array (or a pointer on the first element of this array) of "c-style" strings, because every string is c is just an array of char symbols with the 0 symbol at the end.
@gothfrog69
@gothfrog69 Жыл бұрын
That was awesome!
@theurbanpenguin
@theurbanpenguin Жыл бұрын
Thank you
@chandrashekharjp3044
@chandrashekharjp3044 6 жыл бұрын
Great Tutorial :)
@luciomorra6174
@luciomorra6174 4 жыл бұрын
Didnt understand the fflag & cflag ...:(
@brianna8587
@brianna8587 3 жыл бұрын
YOU SAVED ME
@SepidehAsadi1
@SepidehAsadi1 7 жыл бұрын
Thanks! It would be useful if you provide the text of code below the video link.
@amos660
@amos660 2 жыл бұрын
beautiful.
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
Nice, comment thank you
@williamsilva8779
@williamsilva8779 2 жыл бұрын
thank you
@shrutiambashtha6196
@shrutiambashtha6196 5 жыл бұрын
Thank u sooooooo much ☺️☺️☺️
@hro688
@hro688 6 жыл бұрын
спасибо, бро! Сними видео про getopt_long(), плизки! ставлю лайкос! успехов!
@kumaravelrajan
@kumaravelrajan 3 жыл бұрын
Perfect.
@FERCHOLO0730
@FERCHOLO0730 3 жыл бұрын
awesome! however I played it 1.5x XD
@piacare
@piacare 10 жыл бұрын
8:56 did you start recording at night? Haha
@timgoppelsroeder121
@timgoppelsroeder121 4 жыл бұрын
that penguin is the shit!!!!!
@Isaac-eh6uu
@Isaac-eh6uu 2 жыл бұрын
I hate getopt
@xintongma2976
@xintongma2976 2 жыл бұрын
thank you
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
Thanks
C Programming: Makefiles
44:21
Barry Brown
Рет қаралды 263 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 316 М.
Mom had to stand up for the whole family!❤️😍😁
00:39
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,7 МЛН
Linux Understanding Shared Library Files
15:47
theurbanpenguin
Рет қаралды 58 М.
What does int argc, char* argv[] mean?
10:11
Paul Programming
Рет қаралды 352 М.
you will never ask about pointers again after watching this video
8:03
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН
FreeDOS programming - Using getopt_long()
16:11
FreeDOS
Рет қаралды 4,2 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
Beginner's Guide To The Linux Terminal
42:27
DistroTube
Рет қаралды 385 М.
C Programming Tutorial for Beginners
3:46:13
freeCodeCamp.org
Рет қаралды 13 МЛН
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel (kiwi)
Рет қаралды 200 М.
Mom had to stand up for the whole family!❤️😍😁
00:39