| | |
Need help getting specific info out of a file
![]() |
•
•
Join Date: Jul 2004
Posts: 1
Reputation:
Solved Threads: 0
Hi there. I'd really appreciate some help! We are scrapping our old email server, but some mail is still routed through it. I have a log that is written containing information on what other servers are routing through here and I need to get that information out of the log so that we can re-route it through the new server. For example part of the log reads "Received from thisserver.old.old.old by newserver.new.new.new" and then the log goes on. The information I need is 'thisserver.old.old.old", but I'm going to need grep on 'newserver.new.new.new'. Hopefully I'm making sense, but can anyone help me??
THanks!
THanks!
I'm a little confused... What are you greping on 'newserver.new.new.new'?
I'm sure there's some way you could use awk or sed and create a regexp that includes the line that you're looking for, or just use grep to pull out the entire line. I'm not an expert at parsing text, but I hope my suggestion helps.
I'm sure there's some way you could use awk or sed and create a regexp that includes the line that you're looking for, or just use grep to pull out the entire line. I'm not an expert at parsing text, but I hope my suggestion helps.
Alex Cavnar, aka alc6379
![]() |
Similar Threads
- create and write into INFO File from C# (C#)
- What is an INFO file? (Windows NT / 2000 / XP)
- how to place a specific info from input file (C)
Other Threads in the *nix Software Forum
- Previous Thread: SUSE ADSL and Network problems
- Next Thread: Yellow Dog
| Thread Tools | Search this Thread |
Tag cloud for *nix Software
2005 apache bashscripting busybox cert codeplex debian dotnetnuke emacs forwarding free fsf gaming gnu government gpl lawsuits license linux ls mail make makefile mandriva microsoft mkisofsiso obama open opensource port postfix ps3 samba security server sflc sharing software source stallman subdirectory ubuntu unix vmware xbox






