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 02-12-2006, 09:10 AM   #1
Yogiz
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Rep: Reputation: 0
Thumbs up Help needed !


................

Last edited by Yogiz; 02-13-2006 at 12:27 PM.
 
Old 02-12-2006, 09:29 AM   #2
fudam
Member
 
Registered: Feb 2006
Distribution: FC
Posts: 86

Rep: Reputation: 15
Can I ask why you don't want to use perl? This is exactly the sort of thing perl was made for...

Now if your question is purely the match portion of it you could use something like this: echo $num/6*100 | bc -l to calculate your percentage. However if your question is how do you associate 12345678 in names with 13245678 in results then I'd say use perl.

Last edited by fudam; 02-12-2006 at 09:33 AM.
 
Old 02-12-2006, 09:31 AM   #3
Yogiz
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
I know but I need how to learn how to make a bash script, and at the moment Im not getting far with it.
 
Old 02-13-2006, 05:02 AM   #4
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
save the commands, you'd normally type in a shell, as a textfile and put #!/bin/bash on the first line:
Example:
Code:
#!/bin/bash
# My first script

echo "Hello World!"
then in shell (textfile.sh is your bash-script):
Code:
chmod +x textfile.sh
run the script:
Code:
./textfile.sh

also go through the whole tutorial on:
http://www.linuxcommand.org

Last edited by muha; 02-13-2006 at 05:07 AM.
 
Old 02-13-2006, 11:09 AM   #5
Yogiz
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Any more suggestions, maybe more specific?

Cheers
 
Old 02-13-2006, 11:17 AM   #6
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
if you want people to make your homework, at least post some info on how far you are right now.
You can't just put your homework-assignment here and expect people to write the whole assignment for you :?
 
Old 02-13-2006, 11:29 AM   #7
Yogiz
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Where did I say it was a homework assignment?

It's a script which we need in order to use with a optical machine that marks, certain data.

What I have done so far is extracted the 12345678 from the names file into the following format;

12345678, using simply cut -c 1-9 names > output

Next step which we are struggling on is having awk to calculate the % from the results file and alining it parallel next to the 123.. etc data.

So it looks like

12345678 60 etc..

Cheers
 
Old 02-13-2006, 11:37 AM   #8
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
lol, maybe here: http://www.linuxquestions.org/questi...12#post1978512
Quote:
Originally Posted by Yogiz
How can you be 16 years old and doing what Im doing this is clearly plagiarism. Why wont you post the whole assignment on to here instead of doing it in bits and waiting for the answers. Lol

Read the notes and you might learn something..
 
Old 02-13-2006, 12:22 PM   #9
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Quote:
Yogiz
Newbie

Registered: Dec 2005
Posts: 7
Distribution:

Well mate I got assignment to do. Looks exatly the same what you doing here. Well is ur business. Just a bit sad..
That's at the end of the thread

Personally i'm not against you doing homework, more the fact that by doing it yourself you learn alot more, and develop valuable research skills
 
Old 02-13-2006, 12:26 PM   #10
Yogiz
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
WTF is this a spying contest u sad people. I asked for help on a bit i was stuck not on stuff I have posted before.
 
  


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
Help Needed paradox_of_life Linux - Newbie 9 02-25-2005 06:05 PM
help needed sajid anwar Linux - General 1 11-19-2004 08:20 AM
Yet More Help needed Poorboy2004 Linux - Networking 7 09-19-2003 03:54 PM
help needed irfanasim Linux - Networking 2 09-23-2002 06:10 AM
Help needed... jameztcc Linux - General 4 09-28-2001 10:59 PM


All times are GMT -5. The time now is 04:29 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