Search Results

Search: Posts Made By: rutgerblom
Forum: Linux 09-30-2010
5,490
Posted By kurumi
$ ruby -ne...
$ ruby -ne 'BEGIN{s=File.mtime("file").to_s.gsub(/\s+/,"")};print "#{s} #{$_}" ' file
Forum: Linux 10-03-2010
5,490
Posted By mark54g
something along the lines of sed -e...
something along the lines of

sed -e s/^/"`date` "/g FILE


Note: You will need the -i parameter for sed to change the file in place. The code above is non disruptive and non destructive to...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy