![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File Transfer that is not so trivial I guess | Legend986 | UNIX for Dummies Questions & Answers | 1 | 03-07-2008 05:40 AM |
| simple script help | ali560045 | Shell Programming and Scripting | 4 | 01-24-2008 05:24 AM |
| guess the fault :) | maskot | Shell Programming and Scripting | 4 | 05-24-2007 05:21 AM |
| Simple Script Help | Skunkie | UNIX for Dummies Questions & Answers | 4 | 10-02-2006 11:18 AM |
| need help with simple awk/ksh script | tefflox | Shell Programming and Scripting | 18 | 09-28-2006 01:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need help for a simple script (i guess so...)
Hi all!
here is a sample of the file i am working on : $ cat toto.txt $20030613150250:Flux:ASS_IARD 20030613150250:Nombre d enregistrements Ecrits :27 20030613150250:Flux:ASS_TIER 20030613150250:Nombre d enregistrements Ecrits :27 20030613150251:Flux:ASS_PERS 20030613150251:Nombre d enregistrements Ecrits :52 20030613150251:Flux:LIEN_CONT 20030613150251:Nombre d enregistrements Ecrits :27 20030613150252:Flux:LIEN_EA 20030613150252:Nombre d enregistrements Ecrits :52 20030613150252:Flux:ASS_MODU 20030613150252:Nombre d enregistrements Ecrits :180 i want to obtain the following result : ASS_IARD:27 ASS_TIER:27 ASS_PERS:52 LIEN_CONT:27 LIEN_EA:52 ASS_MODU:180 I already wrote something.... :if [ -f toto.txt ] then while read LINE do if [ `echo ${LINE} | grep Flux` ] then echo $LINE | awk -F ":" '{print $3}' >> ./LOG.wri fi done < toto.txt fi i know i feel pity for this one....... PLEASE HELP Regards Howard |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|