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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-30-2007
aigles's Avatar
aigles aigles is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,426
You can do something like that:
Code:
read line < infile # read first line
echo "$(date +'%d/%m/%Y') ${line}" > outfile
With your file example, the outfile is :
Code:
30/05/2007 A
Jean-Pierre.