logo       

produce standard output from input file: msg#00023

editors.sed.user

Subject: produce standard output from input file

Hi,
i'm not sure is this can be done using sed command.
I'm planning to produce a standard output based on
input file..

Here is want i want the output look like: ( lets say i
just want to capture the output for user sham)

Thu Dec 08 11:31:58 2005 -> UID:sham EUID:sham
RUID:sham - From IP/machine:localhost
ftp access + unknown user anomymou + + failure:
Interrupted system call




This is the input file:

header,81,2,login - telnet,,Thu Dec 08 11:08:55 2005,
+ 4500 msec
subject,car,car,car,car,car,7764,7764,24 3
abc.linux.com.my
text,invalid password
return,failure: Interrupted system call,-1
header,76,2,login - telnet,,Thu Dec 08 11:09:57 2005,
+ 9100 msec
subject,root,root,other,root,other,7764,7764,24 3
abc.linux.com.my
text,not_console
return,failure: No such file or directory,-1
header,76,2,login - telnet,,Thu Dec 08 11:10:11 2005,
+ 2800 msec
subject,root,root,other,root,other,7770,7770,24 3
abc.linux.com.my
text,not_console
return,failure: No such file or directory,-1
header,86,2,ftp access,,Thu Dec 08 11:31:58 2005, +
8900 msec
subject,sham,sham,sham,sham,sham,8238,8238,8747 196629
localhost
text,unknown user anomymou
return,failure: Interrupted system call,-1

any ideas?. OR at-least can get similar output is OK
for me!
thanks

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/dkFolB/TM
--------------------------------------------------------------------~->

--

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sed-users/

<*> To unsubscribe from this group, send an email to:
sed-users-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise