![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tail -f | wannalearn | Shell Programming and Scripting | 4 | 04-10-2007 06:22 PM |
| Tail?? | qfwfq | Shell Programming and Scripting | 7 | 06-19-2006 02:15 AM |
| tail command.. | amon | Shell Programming and Scripting | 2 | 06-02-2006 05:36 AM |
| Help on scripting using tail | jisc | Shell Programming and Scripting | 4 | 05-19-2006 04:15 AM |
| how to sed with tail | redlotus72 | UNIX for Dummies Questions & Answers | 1 | 08-30-2005 06:27 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Working in HP-UX 10.20. I eventually want to write a bourne shell script to handle the following problem, but for now I am just toying with it at the command line.
Here's what I am basically trying to do: tail -f log_X | grep n > log_Y I am doing a tail -f on log_X . Once it sees "n", I would like for it to grep it, then put it into log_Y. It ain't making it to log_Y. I have been manually adding "n" to log_X, and the tail command is definitely seeing it, but it fails to pass it to log_Y. Why? Is it because the command is trying to "complete" the tail -f before it executes the > (redirect) to log_Y?? Is there a better way to appraoch this? TYIA |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|