LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2009, 03:21 PM   #1
FirstTimer
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Rep: Reputation: 0
URGENT...pls HELP


I am not familiar with writing scripts for Linux and would appreciate some assitance in doing so.

I am attemping to write a script that identifies the information in my current system directory.

I read some of this information but I am not able to grasp as quickly. here is what I know so far I know the command for Listing the directory but what else would I need to know?

Last edited by FirstTimer; 08-10-2009 at 03:56 PM.
 
Old 08-10-2009, 03:22 PM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
As much as I'd love to do your homework for you, you'll learn much more doing it yourself.

Plus, this is mentioned in the LQ Rules as something you shouldn't expect us to do.
 
Old 08-10-2009, 03:32 PM   #3
FirstTimer
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Well I was not asking you to do my Homework for me, I know nothing about Linux.. I am asking for a sample of both I have started it but I am not sure of how this thing is suppose to look.
 
Old 08-10-2009, 03:33 PM   #4
FirstTimer
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
maybe I should rephase my request..
 
Old 08-10-2009, 03:33 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
I have started it but I am not sure of how this thing is suppose to look.
show us what you have
 
Old 08-10-2009, 03:37 PM   #6
FirstTimer
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
#!/bin/bash

###############################################
#Author: John Doe
#Created: 08/10/09
#Purpose: To list of the files in the present working directory
###############################################

#ls dir/system file
 
Old 08-10-2009, 03:46 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

The above is our standard response to homework questions. Please know that we ARE ready and willing to help. One thing we need is to understand what the starting point is. In this case, what exactly have you studied in class, and what reference books are you using? Are you familiar with (e.g.):
basic commands to create directories and switch between them?
basic commands to create files and write data to them?
wildcards (AKA shell expansion)?
 
Old 08-10-2009, 03:57 PM   #8
FirstTimer
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the information/instructions mentioned above. I am certainly willing to learn. I dont think that I have enough information to make this happen.
 
Old 08-10-2009, 04:26 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Welcome to LQ!

You could look at the 'Tutorial' section of 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 08-10-2009, 04:35 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by FirstTimer View Post
Thanks for the information/instructions mentioned above. I am certainly willing to learn. I dont think that I have enough information to make this happen.
If you Google for "bash scripting tutorial", you'll find lots of samples. Also, read the man pages for different commands, as they'll give you ideas on what they can do. You don't say how you want to "identify" the information, but if I was you, I'd read the man pages on "ls", "grep" and "sed" (although sed can get complex...).

Also, when you post, please notice the sticky posts and info on the screens, giving some good advice on how to ask questions. URGENT is more likely to get folks to tell you off, since we volunteer our time to answer questions, than it is to get you a quick answer. Also, if you need script help, you'll get a hand UP, but you won't get a hand OUT...post what you write, and say where you're having problems....
 
Old 08-10-2009, 04:39 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by FirstTimer View Post
Thanks for the information/instructions mentioned above. I am certainly willing to learn. I dont think that I have enough information to make this happen.
I don't know how to interpret this---do you mean you are going to drop the class? Even with all the people here offering you help?
 
Old 08-11-2009, 12:40 AM   #12
FirstTimer
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
@Pix

I think you misunderstood my comment I didnt say I was dropping the class i am willing to see it through and try, however to my almost absent to limited knowledge of this particular OS... I am really struggling but like I said I will have to take my time and see what happens. Even though I only have 2 more weeks till the class ends and I fail.

Gary
 
Old 08-11-2009, 01:02 AM   #13
FirstTimer
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
@ TBone

Thanks for the feedback and "go to" place to address this problem.... And being that I am learning I dont feel so bad at all so you know about ppl bashing me. Its all good now I know I wont ask a stupid question in the midst of smart men. LOL...

JG.
 
Old 08-11-2009, 02:53 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I think you're asking for Linux tutorials/examples; you could read

http://rute.2038bug.com/index.html.gz

as a starting point
 
Old 08-11-2009, 03:55 AM   #15
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Hi FirstTimer,
One of the first things you need to learn of linux in general is that information is not that difficult to understand or implement. The challenge is finding the information. Any general problem you have such a writing a script is a very common problem and so there is loads of information about these things. Just follow these steps:
1. Do a search on this site (LQ) for similar threads that may contain the information you need.
2. Do a google search for the same.
3. If there are things in the information you obtain that you don't understand, post your questions here.
4. Above all, have fun and learn. Knowledge is power (in the good sense).
cheers,
jdk

Last edited by jdkaye; 08-11-2009 at 10:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Pls help me doll Linux - Newbie 4 03-30-2009 03:53 AM
urgent pls help palisetty_suman General 2 02-01-2009 09:27 PM
Help Me, Pls Is very Urgent metrodc Linux - Networking 7 08-27-2004 02:57 PM
URGENT ! PLS HELP :Mail problem kcwoo Linux - General 3 01-30-2002 12:46 AM
ftpd rpm -Urgent Pls bktpv Linux - Networking 0 12-20-2001 11:51 AM


All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for 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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration