LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   script help - check for empty file (https://www.linuxquestions.org/questions/programming-9/script-help-check-for-empty-file-4175557893/)

TB0ne 11-10-2015 07:37 AM

Quote:

Originally Posted by ron7000 (Post 5447319)
all i needed was some basic code, in fact all it amounted to was the if then fi syntax using an -s command. if someone posted that code... then someone said hey that's not bad but consider coding it this way and posted some code, is this not a programming forum? it would have helped me.

Sure is a programming forum, and we all would have been happy to help you with your program...but you didn't ever POST ONE, or show us you put any effort at all into solving your own problem. No, we're not going to give you handouts.
Quote:

but no, everyone on their high horse like we're in a classroom tells me to look it up on the web and do the work myself. my response was frustration. I was going to respond the next day but i would have tested your profanity filter.

here's my mature response, you guys have a nice life.

jeremy, you just a lost a member. you can delete my account here, this site is not helping me anymore. feel free to delete anything i have ever posted here, especially if it contained code. btw here's now you help:
https://forums.suse.com/showthread.p...g-diff-command
You do realize that you just proved what we were telling you, right?? You looked, AND FOUND AN EXAMPLE, and based your code on it. Which is EXACTLY what you were told to start with. Which you are now complaining about, since we didn't spoon-feed you that link/example.

If you want to ask for handouts then complain/whine/'test the profanity filter', that's up to you. If you want to ask for help from people, then display some effort and be polite.

rtmistler 11-10-2015 07:46 AM

Quote:

Originally Posted by ron7000 (Post 5447319)
all i needed was some basic code,
in fact all it amounted to was the if then fi syntax using an -s command.

Last I checked this was exactly what I recommended, that you look at the -s option for BASH file test operators and gave you a reference for file test operators because cutting and pasting that entire subject into the thread would be wasteful, it is a lot of text.

Yes this is basic code.

You showed rudimentary BASH capabilities in your first post in this thread.

So therefore common sense to me would be that once you were told to use a file test operator, that you would have attained your desired result nearly immediately.


All times are GMT -5. The time now is 10:11 PM.