I am playing around with a script to rotate an RSS feed based on file size.
I came up with two different ways to do it, but they yield two different results.
I'm proabaly missing something. Can anybody explain this?
Code:
[cfarley@wombat cfarley]$ du path_to_file/file.rss| cut -f1
12K
[cfarley@wombat cfarley]$ ll -h path_to_file/|grep file.rss|grep -v template|awk '{print $5}'
8.5K
FYI...
In the second example, the
is to filter out a file called file.rss.template.