LoginSignup
0
0

More than 5 years have passed since last update.

行頭に日時を入れる

Last updated at Posted at 2014-01-14

貼るほどのものでもないけど.
語弊有でいって簡易的なsploggerです(語弊ありすぎ

#!/usr/bin/awk -f

{
print strftime("%Y-%m-%d %H:%M:%S") " " $0;
}
#!/bin/sh

ls | datetime > /var/log/ls.log
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0