Script to delete duplicate files - Programming On Unix

Users browsing this thread: 1 Guest(s)
z3bra
Grey Hair Nixers
I'm not saying you should do it my way. If you felt offended or whatever, I'm sorry, that was definitely not the point. I just wanted to discuss your style.

I use interractive shell scripting a lot actually, and I tend to "improvise" them within interactive sessions, rather than saving them in my toolbox. Sometimes the logic is just too complex or to random, and interactive use is indeed best.

The fact I don't find shell scripting suitable for "real" programs, is because its structure is too simple, and not safe enough. It also lacks some basic constructs that make it hard tl deal woth complex data structure.

I'm talking about POSIX shell only. I won't mention bashisms et al. here because I don't want too :)
There are no array types, quote escaping seems random, and implementation specific, arithmetic is barely handled, ... Add on top on that the builtin VS. binary problem and you get a language that is a pain to "program" in.
In my mind, shell scripting should be there to help external programs interact with each others, not be a program by itself.

That being said, it's a really simple language that has the biggest "libraries" available through external programs, so it is definitely the quickest way to get started with programming!


Messages In This Thread
Script to delete duplicate files - by pkal - 17-11-2017, 06:01 PM
RE: Script to delete duplicate files - by z3bra - 18-11-2017, 07:07 PM
RE: Script to delete duplicate files - by pkal - 18-11-2017, 09:26 PM
RE: Script to delete duplicate files - by z3bra - 19-11-2017, 03:38 PM
RE: Script to delete duplicate files - by pkal - 19-11-2017, 04:50 PM
RE: Script to delete duplicate files - by budRich - 19-11-2017, 10:28 PM
RE: Script to delete duplicate files - by z3bra - 20-11-2017, 07:38 AM
RE: Script to delete duplicate files - by budRich - 20-11-2017, 09:25 AM
RE: Script to delete duplicate files - by venam - 20-11-2017, 09:40 AM
RE: Script to delete duplicate files - by budRich - 20-11-2017, 09:55 AM
RE: Script to delete duplicate files - by z3bra - 20-11-2017, 11:09 AM