The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-31-2007
netbanker netbanker is offline
Registered User
 

Join Date: Dec 2007
Posts: 8
Cool a bit tricky to change it multiple rows in one row and ...

Hi, I have an output file like:

1415971694 376 (12);
3434327831 376 (7);
2989082873 332 (3);
4075357577 332 (3);
1221064374 376 (2);
2372410470 376 (2);
2563564778 332 (2);
443221432 376 (1);
2478131897 376 (1);
2618850598 22 (1);
2559136519 376 (1);
1452300479 376 (1);
1915653342 376 (1);
2063345836 372 (1);

I would like a new file like:
a timestamp and each row adding up


2007-12-31:20:38:24: 1415971694 376 (12);3434327831 376 (7);2989082873 332 (3);.......1915653342 376 (1);2063345836 372 (1);

Thank u for the help and Happy new year!
Reply With Quote
Forum Sponsor