> >This is a multi-part message in MIME format. > >------=_NextPart_000_0005_01C1C552.B5297DF0 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > >Hey everyone, I am trying to make a "FROM" script that basically shows = >the person running the script who the mail is from that they have. Not = >very complex, but I can't seem to get it exactly how I want it. = >Currently, it works fine, but it shows too much info. This is what I = >have... > > cat /var/spool/mail/$uname | sed -e '/[Ff][Rr][Oo][Mm]:/b' -e d > >K, this shows all combinations of from:, which is kind of what I want, = >but I only want the from: at the beginning of a email, not all the from: = >in reply's etc... > >Can anyone help me out with this?
How about: sed -e '/^From /b' -e d The only legal from at the beginning is "From " MB > >Thanks, >Jake > >------=_NextPart_000_0005_01C1C552.B5297DF0 >Content-Type: text/html; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ><HTML><HEAD> ><META http-equiv=3DContent-Type content=3D"text/html; = >charset=3Diso-8859-1"> ><META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR> ><STYLE></STYLE> ></HEAD> ><BODY bgColor=3D#ffffff> ><DIV><FONT face=3DArial size=3D2>Hey everyone, I am trying to make a = >"FROM" script=20 >that basically shows the person running the script who the mail is from = >that=20 >they have. Not very complex, but I can't seem to get it exactly how I = >want it.=20 >Currently, it works fine, but it shows too much info. This is what I=20 >have...</FONT></DIV> ><DIV><FONT face=3DArial size=3D2></FONT> </DIV> ><DIV><FONT face=3DArial size=3D2> cat /var/spool/mail/$uname | sed = >-e=20 >'/[Ff][Rr][Oo][Mm]:/b' -e d</FONT></DIV> ><DIV><FONT face=3DArial size=3D2></FONT> </DIV> ><DIV><FONT face=3DArial size=3D2>K, this shows all combinations of = >from:, which is=20 >kind of what I want, but I only want the from: at the beginning of a = >email, not=20 >all the from: in reply's etc...</FONT></DIV> ><DIV><FONT face=3DArial size=3D2></FONT> </DIV> ><DIV><FONT face=3DArial size=3D2>Can anyone help me out with = >this?</FONT></DIV> ><DIV><FONT face=3DArial size=3D2></FONT> </DIV> ><DIV><FONT face=3DArial size=3D2></FONT> </DIV> ><DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV> ><DIV><FONT face=3DArial size=3D2>Jake</FONT></DIV></BODY></HTML> > >------=_NextPart_000_0005_01C1C552.B5297DF0-- > > > > >_______________________________________________ >Redhat-list mailing list >[EMAIL PROTECTED] >https://listman.redhat.com/mailman/listinfo/redhat-list > -- e-mail: [EMAIL PROTECTED] It is God's job to forgive bin Laden. It is our job to set up the meeting. U.S. Marine Corp. Visit - URL: http://www.vidiot.com/ (Your link to Star Trek and UPN) _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list