need shell script for this challenge problem


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting need shell script for this challenge problem
# 1  
Old 03-07-2009
need shell script for this challenge problem

two tabulate files (A, B), each contents thousands and thousands lines with ids.

first find out contents with common ids in both A, B and print out into a file;
second find out contents with ids which only exist in file A and print out into a file.
# 2  
Old 03-07-2009
School work is not allowed to be posted.
# 3  
Old 03-07-2009
Thanks, but

this isn't a school work. I just want to see if scripting language can do something when a database is not available.
# 4  
Old 03-07-2009
Hi,

Please do not double post your queries..
also please read forum rules..

Thanks
SHa
# 5  
Old 03-07-2009
Thank you, Sha.

I wasn't realize that there will be delay between posted and then actually seen.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Challenge with sh script using environment variables to check for file.

Hi All Thanks for reviewing my question. I have a sh script where I used an environmental variable for the directory for the file I need to check to ensure before executing a process. I have confirmed the permissions and I can find the file if I use a hard coding of the directory. This is a... (5 Replies)
Discussion started by: rstojkovic68
5 Replies

2. Shell Programming and Scripting

Shell script menu for end user - difficult challenge 2

Hello, I need to make shell script menu for my end users. There is like 100 scripts in system, and they need to run that scripts true one main script with user friendly menu. Example, when user will run main menu script, it will get something like this on his screen:... (1 Reply)
Discussion started by: waso
1 Replies

3. Shell Programming and Scripting

Shell script newbie, what is problem with my script?

Hello, Ubuntu server 11.10 can anybody help what is problem with my shell script? #!/bin/bash #script to find out currently logged on user is root or not. if ] then echo "You are super" else echo "You are awesome!" fi When I run script, I get following output ./uid: line 3: I... (4 Replies)
Discussion started by: kaustubh
4 Replies

4. Shell Programming and Scripting

Shell script menu for end user - difficult challenge

Hello, I need to make shell script menu for my end users. There is like 100 scripts in system, and they need to run that scripts true one main script with user friendly menu. Example, when user will run main menu script, it will get something like this on his screen:... (3 Replies)
Discussion started by: waso
3 Replies

5. UNIX for Dummies Questions & Answers

Problem with Shell Script

Hi, I have a line in my script: fgrep "BancoPosta" /var/spool/postfix/deferred/*/* > /root/spulk.italiantmp1 It does NOT seem to excute. But when I run it on command line it does. Any ideas how to fix the problem? (1 Reply)
Discussion started by: mojoman
1 Replies

6. Shell Programming and Scripting

shell script , $$ problem

dialog --title "Inputbox - To take input from you" --backtitle "Linux Shell\ Script Tutorial" --inputbox "Enter your name please" 8 60 2>/tmp/input.$$ sel=$? na=`cat /tmp/input.$$` case $sel in 0) echo "Hello $na" ;; 1) echo "Cancel is Press" ;; 255) echo " key pressed" ;; ... (7 Replies)
Discussion started by: cola
7 Replies

7. Shell Programming and Scripting

call shell script from perl cgi script problem

hi,, i have perl scipt with line : system('./try.sh $t $d $m'); in shell scipt try.sh i have the line: echo $1 its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
2 Replies

8. Shell Programming and Scripting

Need complex script, anyone up for a challenge?

Default shell is /usr/bin/zsh Script will be running #!/bin/bash Need to pull information from database while using other scripts already made (not by me). Ok, so i need a script pulling certain information about a customer's router interfaces. I am using a ROUTER-DNS-NAME as variable $1 I... (3 Replies)
Discussion started by: ///NNM
3 Replies

9. UNIX for Dummies Questions & Answers

shell script problem

hi all. im using the awk command to search a file for a matching number. lets say the numbers in the file are 4588281, 4588282 and 4588283. my problem is when i search for 8, the three numbers above appear. I want to have it so that if i search for any number that is not matching EXACTLY... (2 Replies)
Discussion started by: djt0506
2 Replies

10. UNIX for Advanced & Expert Users

shell script problem

Hi, I have a shell script problem. I'm using /bin/ksh and I have a script that reads a number of table names from a file adn then for each table name, it creates the table in Oracle8i via sqlplus, The main sceleton looks something like: while read tab_name do # BODY done <... (10 Replies)
Discussion started by: strpeski
10 Replies
Login or Register to Ask a Question