I have a perl script, I am not able to get output of script in an excel or text file format. Can someone please help me figure out that ?
perl -MPOSIX -e '
opendir D, "." || die "open .: $!\n";
for (sort grep {!/^.{1,2}\z/} readdir D) {
if (@s = lstat$) {
printf("%-58s %s %s\n", $_,
map {strftime("%d-%m-%y", localtime $)} ($s[9], $s[8]))
} else {warn "$: $!\n"}
}'
>). Asking the author of this script might have been faster.