LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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 02:56 PM.
 
Old 08-10-2009, 02: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, 02: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, 02: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, 02:33 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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, 02: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, 02:46 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 02: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, 03:26 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Welcome to LQ!

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

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 03:39 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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-10-2009, 11:40 PM   #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, 12: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, 01:53 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 02:55 AM   #15
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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 09:22 AM.
 
  


Reply



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 02:53 AM
urgent pls help palisetty_suman General 2 02-01-2009 08:27 PM
Help Me, Pls Is very Urgent metrodc Linux - Networking 7 08-27-2004 01:57 PM
URGENT ! PLS HELP :Mail problem kcwoo Linux - General 3 01-29-2002 11:46 PM
ftpd rpm -Urgent Pls bktpv Linux - Networking 0 12-20-2001 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:10 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
Open Source Consulting | Domain Registration