How to create several files with date in one folder (linux) in one command?

  • Write more clearly what you want to do. - Enikeyschik
  • Task: in 5 created files that are in the same folder, write the same date with one pipe - Anastasia Romanova
  • man date; man tee; study assignments are welcome only when trying to solve them yourself ... - Fat-Zer
  • Thank you) the task is not mine, asked to help with what I can) - Anastasia Romanova

1 answer 1

  1. "With date" inside:

    $ echo "2018/05/11" | tee путь/к/каталогу/{файл1,файл2} 
  2. Empty “with (specified) date” modifications:

     $ touch -d "2018/05/11" путь/к/каталогу/{файл1,файл2}