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 04-22-2004, 12:26 AM   #1
marigb
Member
 
Registered: Apr 2004
Location: Puerto Rico
Distribution: Fedora Core 4
Posts: 33

Rep: Reputation: 15
Question shell script ideas


Hello:
I am a college student who is taking a sort of introductory class to Unix, Linux ( and to be honest i have been accustomed to it and like it better than widows now) and we have just covered the commands on Unix. We are now getting into shell script and we are required to write a script for a project. My main problem it is up to us to come up with an idea for it. Since I am new at this, I am not that yet familiar with it to feel comftable to come up with ideas. If you have any ideas , challenging but not involving anything to do with networking or something like that because we have not touched it or going to, it would be very very helpful


Also, I have just gotten a wireless router/ card and i am running Mandrake 9.2 should I bother looking for the driver or should I just upgrade to Mandrake 10.0?


Thanks for your time and ideas

Last edited by marigb; 04-22-2004 at 01:59 AM.
 
Old 04-22-2004, 09:54 AM   #2
blueser
Member
 
Registered: Oct 2003
Location: Rio de Janeiro, Brazil
Distribution: Fedora Core 5
Posts: 76

Rep: Reputation: 15
Hard to suggest something, but shell scripting (combined with tools like grep, sed, cut, head, tail etc.) is specially useful for text-files processing, so I would suggest you come up with something exploring this.

BTW, if you're talking about bash scripting, Advanced Bash Scripting Guide is a mandatory reference (well, as the name implies, it's supposed to cover advanced aspects of bash, but I'm pretty sure you'll find it useful too).
 
Old 04-22-2004, 10:20 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
use something with a for loop

for i in "*.txt" ; do
grep myname *
done


error introduced intentionally.
not real error, but sort of.

Last edited by whansard; 04-22-2004 at 10:22 AM.
 
Old 04-22-2004, 11:55 AM   #4
marigb
Member
 
Registered: Apr 2004
Location: Puerto Rico
Distribution: Fedora Core 4
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks for the link I will look at it and thanks for the ideas
 
Old 04-24-2004, 02:04 AM   #5
LuisR
LQ Newbie
 
Registered: Apr 2004
Location: Puerto Rico
Distribution: Fedora Core 1
Posts: 4

Rep: Reputation: 0
Question

Just out of curiosity... What school do you go to?
 
Old 04-24-2004, 02:16 AM   #6
marigb
Member
 
Registered: Apr 2004
Location: Puerto Rico
Distribution: Fedora Core 4
Posts: 33

Original Poster
Rep: Reputation: 15
I go to a Uni in San Juan ... and i have a feeling that u have the same assignment......bc we are in the same class...
 
Old 04-24-2004, 02:19 AM   #7
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
Ive got it...write a robust script that takes the nuv files from MythTV and produces a list of the names, which comes from the MySQL database. Then the user selects a file and that file is processed through Avidemux to create a proper DVD displayable mpeg2 file that is then mplexed, run through mkdvd.pike, and finally burned to dvd using xcdroast (or growisofs). Make sure that the user can input a title name for the dvd etc. And clean up excess files when it is all done.

And get back to me when you are done. Im getting tired of doing it all myself

Or write a script that keeps track of what new files are installed on your system when you compile from source and run make install.

Or write a script that makes a back up of essential files on your computer.

When you finish it all let me know so I can collect royalties.
 
Old 04-24-2004, 02:21 AM   #8
LuisR
LQ Newbie
 
Registered: Apr 2004
Location: Puerto Rico
Distribution: Fedora Core 1
Posts: 4

Rep: Reputation: 0
Exactly what I was thinking! I still have no ideas though...
 
Old 04-24-2004, 03:16 AM   #9
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
How about a script to rip CDs to mp3s? You could prompt the user for bitrate, which tracks to rip, etc. Of course downloading the CD info from FreeDB would be cool as well and then assigning that to the ID3 tags in the mp3s. I just completed a script to do this and with my little knowledge of shell scripting it wasn't too difficult and it's really useful to boot. Just do lots of man page reading.
 
  


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
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM
Ok so my script is not working, any ideas? mago Linux - General 8 03-31-2005 12:13 AM
sed script help/ideas rjcrews Programming 2 07-30-2004 03:59 PM
ideas for a perl script LAMP_User Programming 3 03-18-2004 05:18 PM


All times are GMT -5. The time now is 04:41 PM.

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