Jun 17, 2005 #1 Cimm Technical User Feb 17, 2005 69 US Just a minor problem I believe. I know that s/ftpadm System*//g deletes lines which starts with ftpadm.. How about if I want to save whatever that is after System but delete system and everything infront of it. Thanks
Just a minor problem I believe. I know that s/ftpadm System*//g deletes lines which starts with ftpadm.. How about if I want to save whatever that is after System but delete system and everything infront of it. Thanks
Jun 17, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR Why not simply this ? s/ftpadm System// Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Why not simply this ? s/ftpadm System// Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Jun 17, 2005 Thread starter #3 Cimm Technical User Feb 17, 2005 69 US Thanks for the reply PHV. I want to delete everything infront of [ftpadm System], but keep whatever its after ftpadm System. [ftpadm System] is the only thing that is common for all lines in the log file. Thanks for the reply PHV. Upvote 0 Downvote
Thanks for the reply PHV. I want to delete everything infront of [ftpadm System], but keep whatever its after ftpadm System. [ftpadm System] is the only thing that is common for all lines in the log file. Thanks for the reply PHV.
Jun 17, 2005 #4 PHV MIS Nov 8, 2002 53,708 FR I want to delete everything infront of [ftpadm System] s/.*ftpadm *System// Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
I want to delete everything infront of [ftpadm System] s/.*ftpadm *System// Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Jun 17, 2005 Thread starter #5 Cimm Technical User Feb 17, 2005 69 US Thanks alot PHV that solved it. I allmost had it right, but i would never had figured out that you need a period infront of the .* Upvote 0 Downvote
Thanks alot PHV that solved it. I allmost had it right, but i would never had figured out that you need a period infront of the .*