X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=opt%2Fbin%2Fts;h=74b59f09679df017667001c343be03e73fdd4200;hb=d6baabb1ccd5d49336ae412d1416683e43b4f472;hp=3da2888d72d66df0252f21bb1cb90d218e2ee35e;hpb=b0b8dbabff8ce01aa5c7b878d550397c73ae7d2a;p=profile.git diff --git a/opt/bin/ts b/opt/bin/ts index 3da2888..74b59f0 100755 --- a/opt/bin/ts +++ b/opt/bin/ts @@ -1,10 +1,10 @@ #!/bin/bash options="-l" -if echo "$LS_OPTIONS" | /bin/grep -- "--time-style=long-iso" &>/dev/null; then - today=$(/bin/date +'%Y-%m-%d') +if echo "$LS_OPTIONS" | grep -- "--time-style=long-iso" &>/dev/null; then + today=$(date +'%Y-%m-%d') options="$options --time-style=long-iso" else - today=$(/bin/date +'%b %e') + today=$(date +'%b %e') fi -/bin/ls $options ${1+"$@"} | /bin/grep "$today [012][0-9]:[0-9][0-9]" +ls $options ${1+"$@"} | grep "$today [012][0-9]:[0-9][0-9]"