i have a problem writing a script.
Actually i have many files which contains some data, now the last line has some data as in the format : 2556||04-04-10
now i want to do tail -1 filename.txt and store the result into a variable which will be used later for some other calculations.
My problem is how to include jus first numeric digits (2556 here) and store date in another variable (04-04-10 here).
These stored data would be then stored into some other text file.I have multiple files so would be creating script for this.
Now workin on makin num and dat as array so as to use it in later stage to format my output...!
lets c if i can, or else wil revert back to u al guys again...