Search Results

Search: Posts Made By: dakke
19,370
Posted By ctsgnb
Ok then here you go : find . ! -name \. -ls...
Ok then here you go :

find . ! -name \. -ls | nawk '{type=($3~/^d/)?"directory":($3~/^-/)?"file":($3~/^l/)?"link":"other";x=y=$0;sub(".*"$10" ","",x);sub(".*"$10".*/","",y);sub(".*",$1 OFS type...
19,370
Posted By ctsgnb
type=|set a variable called "type" ...
type=|set a variable called "type"
(condition)?<value_if_condition_is_verified>:<value_if_condition_is_not_verified_>|this notation is used to test the value of field $3 :...
19,370
Posted By vgersh99
a bit more generic: find . -ls |nawk...
a bit more generic:

find . -ls |nawk '{match($0,":[0-9][0-9]*");f=substr($0,RSTART+3);match(f,"/[^/]*$");print$1,$3,f,substr(f,RSTART+1)}'
Showing results 1 to 3 of 3

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