| | |
doing a lookup script
![]() |
•
•
Join Date: Apr 2006
Posts: 4
Reputation:
Solved Threads: 0
New to Linux and need the credit for my class to ensure a good grade but not sure on the cmd line to finish
I have created a data file called ".addr_book" in home directory plus a 'bin" directory . NOW this is what I am unsure of
I need to create a file called "lookup" (shell script) in the bin directory that when run should find matching entries (lines) from my $HOME/.addr_book file and display them. The output must be sorted using grep, sort and postional parameters but NOT read.. Can anyone help? Thanks in advance
I have created a data file called ".addr_book" in home directory plus a 'bin" directory . NOW this is what I am unsure of
I need to create a file called "lookup" (shell script) in the bin directory that when run should find matching entries (lines) from my $HOME/.addr_book file and display them. The output must be sorted using grep, sort and postional parameters but NOT read.. Can anyone help? Thanks in advance
•
•
Join Date: Apr 2006
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by gatormike53
New to Linux and need the credit for my class to ensure a good grade but not sure on the cmd line to finish
I have created a data file called ".addr_book" in home directory plus a 'bin" directory . NOW this is what I am unsure of
I need to create a file called "lookup" (shell script) in the bin directory that when run should find matching entries (lines) from my $HOME/.addr_book file and display them. The output must be sorted using grep, sort and postional parameters but NOT read.. Can anyone help? Thanks in advance
grep "Name" .addr_book |
ok from here I'm a little lost , how would sort work after the pipeline and the positional parameters. I figure if I can get the cmd right I can create the "look up" file in vi and place it there
![]() |
Similar Threads
- IP-to-Country converter (php script) (PHP)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Linux Shell Script needs help writing program (Shell Scripting)
- Random Programming Script (Computer Science)
- Importing SQL Script File - Urgent !! (Database Design)
- Table of Contents Script (Java)
- ASP slow-down server script (ASP)
Other Threads in the Shell Scripting Forum
- Previous Thread: searching for files
- Next Thread: need help with $PATH
| Thread Tools | Search this Thread |





