ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I understood that he was using Unix, I just needed a reference starting points. The advantage windows has is that it doesnt need as much know how to make a batch file than a bash file. I just cheeked a book out at the library yseterday called "Unix Shell Programming" I'll read it at school and get back to you. I won't do your homework I'll just try to work out the kinks. And don't be mean to me ether it's not nice
Uhh..wrong. Windows batch programming has just as many flaws/features as bash scripting can have. Syntax, punctuation, etc., are all important. Windows is different than bash, but not easier. If you KNOW something, it's obviously easier than something that you've got to learn new. And a bash script can be as simple as a list of commands...just like it can be in a Windows batch file.
And bahha, I agree totally with MTK358 in post #13...you're not bothering ANYONE, and we're all happy to help you, but you've got to show your work. Posting a verbatim homework question with no evidence that you've tried to do it, won't get you any help. Editing your posts to have all the "#" marks doesn't get you many fans either.
it's wrong to just make someone on the Internet do your homework for you.
Correction:
it is wrong to just make someone to do your homework for free. And LQ isn't a place for "doing homework for non-free", so you'll have to play by the rules and show some effort.
Quote:
Originally Posted by bahha
just I want to tell you I am trying to solve my homework alone but I face some problem because
I am beginner and I was starting study linux sense 2 weeks ago, and I am not super professional in linux scripting like you.
Everybody started at that point. Linux system has a lot of documentation, so start reading it. Regarding "bash" shell, I think you should be able to type within terminal "info bash" and start reading.
WHY did you remove the script you posted? There was no reason for doing that, and it has made it harder to understand what the following posts refer to. Don't be embarrassed by your mistakes, just learn from them.
Not only that, but the large block of hash-marks you replaced it with now breaks the formatting of the page, forcing it to side-scroll and making the thread harder to read. At the very least remove them, please.
The advantage windows has is that it doesnt need as much know how to make a batch file than a bash file.
AIUI, the dos batch file language is smaller and simpler than most *nix shells. This does mean that there's less to learn up front. However, this simplicity comes at the cost of being less powerful, so in order to do any complex work you have to become expert at various techniques to work around its limitations.
bash and other shells, OTOH, have many powerful features built-in that can make doing the same things almost routine, once you know them.
OTGH, at a basic user level, they're pretty much equivalent. The simplest kind of script is just a list of commands to execute in sequence, exactly the same as a batch file.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
I'm going to close this thread, but if you need any guidance with specific issues you're having (as opposed to simply posting your homework verbatim), please do feel free to post another thread. Welcome to LQ.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.