I am trying to export to a file the size of only the executable files in my directory (which doesn't ends with .sh
).
This is the command I made, which, it seems, export non-executable as well as executable files:
file -x -type | size * > /home/user/Desktop/userbinfiles.xls
What I want to achieve, if it's possible, is that kind of file exported:
A file with:
- size of the file
- type of the file
- file name
I understand my command doesn't do that.
And Ideas?
.sh
, etc) ? – Yaron Dec 20 '18 at 08:56.sh
– Yaron Dec 20 '18 at 09:02