خرید بک لینک

Vote count: 0

i'm search some command in unix to find all file modify after a specific date:

if i use this command i recive i get this error :

 ls -lt $(find .) | grep '16 feb' | grep -o './[^N]*'

-bash: /bin/ls: Argument list too long

and if i use this command i recive all file sorted by date.

 find /folder -type f -printf '%TY-%Tm-%Td %TT %pn' | sort -r 

2016-04-05 14:50:53.1730441170 /folder/a.txt 
2016-04-05 14:46:56.3400447050 /folder/b.txt 
2016-04-05 12:50:27.3930543890 /folder/c.txt 
2016-04-05 12:49:47.0190544440 /folder/d.txt 
2016-04-05 12:23:19.7660566060 /folder/e.txt

there is some to do something like the second code with a specific date?

asked 7 mins ago

1 Answer

Vote count: 0

You can modify your second command and include grep at the end.

find /folder -type f -printf '%TY-%Tm-%Td %TT %pn' |grep <date to find>

answered 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 18 فروردين 1395 ساعت: 21:15

صفحه بندی