![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UNIX program? | threewingedfury | UNIX for Dummies Questions & Answers | 1 | 02-05-2008 03:15 PM |
| How do i run a program while in Unix?.... | Corrail | UNIX for Dummies Questions & Answers | 4 | 10-31-2005 02:51 PM |
| Help with UNIX Program | brand1m | UNIX for Dummies Questions & Answers | 7 | 02-28-2005 08:55 AM |
| looking for a unix C program...help please | richardspence2 | UNIX for Advanced & Expert Users | 3 | 03-16-2004 12:14 AM |
| running a c/c++ program in unix | kray | High Level Programming | 2 | 07-12-2002 04:25 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
unix awk/sed program
i need a sample unix awk/sed program to replace param3 in a file.
i have sample file a.dat with the following format/length (week 8, sku 20, store 20 and qty 8). all store id's which end with _2 needs to be replaced with div id 2. all store id's which end with _1 needs to be replaced with div id 1. W23_2009275 999_2 8.991052 W24_2009275 999_2 8.991052 W25_2009275 97_2 8.991052 W26_2009275 96_2 8.991052 W51_2008102 99_1 2.851916 W52_2008102 96_1 2.851916 W51_2008104 96_1 5.468747 W52_2008104 999_1 5.468747 new file b.dat should look like this W23_2009275 2 8.991052 W24_2009275 2 8.991052 W25_2009275 2 8.991052 W26_2009275 2 8.991052 W51_2008102 1 2.851916 W52_2008102 1 2.851916 W51_2008104 1 5.468747 W52_2008104 1 5.468747 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|