Output move files using awk

When recently put together a backup file, you need to sort by year, some records notes for future reference

  1. Use awk output to move files from
    ... | awk ... | xargs -d ' \ n' mv -t ./small_images

  2. grep + regular
    grep -E '2018- [0-9] { 2} - [0-9] {2}'

  3. ls time files according to the new time r # a new reversal order
    ls -tar --full-time

Published 18 original articles · won praise 1 · views 20000 +

Guess you like

Origin blog.csdn.net/weixin_42557486/article/details/86151474