sujathagio, on Monday April 14, 2008 12:45:32 PMConfiguration: Windows XP Internet Explorer 6.0
Hi,
Try this with "sed" : $ var=$(date '+%d-%m-%y') $ sed -e "s/\t/\n/8;s/\n.*\t/\t/;s/$/\t$var/;s/\t/|/g" file > new_file;-)) JP - Eleveur de pingouins - Faites un geste pour l'environnement, fermez vos fenetres et adoptez un manchot. |
|
Hello
You can change the date format from %D to whatever you want, for example $(date +%Y%m%d) The $NF means the last column/word/field, so this code will work for all three of your files. awk does not have an internal date function, so I am passing the current date to it as a parameter. Note that the first line of the code ends with a single quote. awk -v today="$(date +%D)" ' BEGIN {OFS="|"} {print $1,$2,$3,$4,$5,$6,$7,$8,$NF,today} ' infile 1|2|3|4|5|6|7|8|18|12/26/07 |
Hellow, am a student of Msc. DCSE. Am using ns2 and i have to sum up 2 columns of data and plot the results. How do i do this in awk.
Secondly, how do i set up a proxy server in NS2? Thanks so much. BERNARD Msc. DCSE |
| 24/01 14h48 | Keeping different versions of a Word document in the same file | Word |
| 14/06 14h58 | Excel: Match & Sort Columns with Sa | 1 |
| 14/05 16h03 | Excel question - conditional format | 3 |
| 30/04 03h22 | Excel autofilter stops filtering | 14 |
| 20/06 02h43 | Excel Macro Help Please | 24 |
![]() | Excel Viewer - With Excel Viewer, you can open, view, and print Excel workbooks, even if you don't have Excel installed. You can also copy... | Category: Office suite License: Freeware/gratuit |
![]() | MediaCoder - MediaCoder is a free universal batch media transcoder, which nicely integrates most popular audio/video codecs and tools... | Category: Video editing License: Open Source |
![]() | IZArc - IZArc is the ultimate freeware archive utility supporting many archive formats like: 7-ZIP, A, ACE, ARC, ARJ, B64, BH, BIN,... | Category: Compression/Decompression License: Freeware/gratuit |
![]() | ALZip - FREE for home users, ALZip is the easiest to use, most powerful, and by far the cutest compression utility available. ... | Category: Compression/Decompression License: Freeware/free |