Search Results

Search: Posts Made By: HeadBang
2,243
Posted By HeadBang
my unix version doesnt support GNU or stat. Is...
my unix version doesnt support GNU or stat. Is there any other way? or atleast may be flush the perl section after the command is run?
2,243
Posted By HeadBang
my desired output in the output file is...
my desired output in the output file is <filename> || <date>. And the date is not the current date but the date in which the file was created. so i need to do that in the loop. Is there a way to...
2,243
Posted By HeadBang
Formatting date time in unix using perl breaks
while read l
do
vTimeCreated=`perl -e '@d=localtime ((stat(shift))[9]); printf "%02d-%02d-%04d %02d:% 02d:%02d\n", $d[3],$d[4]+1,$d[5]+1900,$d[2],$d[1],$d[0]' ${l}`
echo "${l} || ${vTimeCreated}"...
1,334
Posted By HeadBang
Formatting date time in unix
while read l
do
vTimeCreated=`perl -e '@d=localtime ((stat(shift))[9]); printf "%02d-%02d-%04d %02d:% 02d:%02d\n", $d[3],$d[4]+1,$d[5]+1900,$d[2],$d[1],$d[0]' ${l}`
echo "${l} || ${vTimeCreated}"...
Showing results 1 to 4 of 4

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