Size: a a a

2020 November 22

🌚

🌚 YupiRex in pro.bash
Amber Claes
Можете подсказать что не так? Почему 2 больше чем 150?
для чисел есть другие операторы сравнения
if [[ $i -lt  150  ]]; then echo 1; else echo 0;fi
источник

SZ

Sonya Zolotaya Ruchk... in pro.bash
Господа, не посоветуете ту саму книгу bash - уровень с нуля, но не новичок
источник

SZ

Sonya Zolotaya Ruchk... in pro.bash
Thanks!
источник

VB

Vitalii Bieliavtsev in pro.bash
Hm, interesting guide. Thanks
источник

VB

Vitalii Bieliavtsev in pro.bash
👍
источник

🌚

🌚 YupiRex in pro.bash
источник

F

Fljúgandi Kettlingur... in pro.bash
Omfg
источник

аᶘ

асоциальный пикотран... in pro.bash
I don't really understand how the task and the solution are related to each other.
Or maybe I didn't understand the task at all... Could you rephrase it? Of course, we can help you, but it's too hard to understand what you want to do. :)
источник

🌚

🌚 YupiRex in pro.bash
надо у него спросить что у него есть и что он хочет)) чтобы была возможность создать себе его ситуацию...
источник

🌚

🌚 YupiRex in pro.bash
источник

F

Fljúgandi Kettlingur... in pro.bash
find  -type f -iname "*.mp4" -printf "%h\n" | sort | uniq | xargs -i stat -c "%Y %n" {} | sort -n
источник

F

Fljúgandi Kettlingur... in pro.bash
^
I decided to do some checks first
источник

F

Fljúgandi Kettlingur... in pro.bash
this solution is not safe against linefeeds in file name
источник

F

Fljúgandi Kettlingur... in pro.bash
note the %h in find output format
источник

F

Fljúgandi Kettlingur... in pro.bash
this prints the directory that contains the file we found
источник

∀lǝxǝʎ in pro.bash
Fljúgandi Kettlingur
find  -type f -iname "*.mp4" -printf "%h\n" | sort | uniq | xargs -i stat -c "%Y %n" {} | sort -n
Don't thought about whole task, but this expression after a quick glance can be simplified to
ls -ltd $(find . -type f -iname "*.mp4" -printf "%h\n" | sort -u)
except space in dir name problems
источник

∀lǝxǝʎ in pro.bash
very few
find is a good tool
источник

∀lǝxǝʎ in pro.bash
what kind of error?
источник

∀lǝxǝʎ in pro.bash
sort use approximately list size plus some extra, but it have to be less then double list size
источник

∀lǝxǝʎ in pro.bash
find the pipe do exactly you want, of course you can use tmp file instead of pipe, first write file and then read it
источник