3 # Based on previous version of lslR
4 # Modified by Tomas Novak <tnovak@ipex.cz> April 2000
5 # (to allow spaces in filenames)
21 # Pattern to match 8 first fields.
23 rx = "^" rx rx rx rx rx rx rx rx;
25 /^total\ [0-9]*$/ { next }
28 if ($0 ~ /^\//) dir=substr($0, 2);
30 if (dir ~ /\/:$/) sub(/:$/, "", dir);
31 else sub(/:$/, "/", dir);
35 # gensub() is not portable.
38 # Cannot assign to $9, or spaces in the filename would be reduced.
39 attr=substr($0, 1, length($0)-length(name))
40 printf "%s%s%s\n", attr, dir, name
45 list
) mclslRfs_list
"$2"; exit 0;;