truncate (GNU coreutils) 7.4 Unexpected behavior:
$ ls -l total 0 $ truncate --size 0 *.log $ ls *.logI would expect "truncate --size 0 *.log" to truncate any files ending with ".log"; instead I get a new file called "*.log"
FYI, one of the first changes I make on a new installation is to alias truncate in .bashrc:
alias ll='ls -l' alias la='ls -A' alias truncate='truncate --size 0'
