when I use the command to get the file size in bye using wc -c
the command return two values, the size in byte and the file name, ex:
the output for wc -c my_file
is 322 my_file
I need to get only the first value to use it if
condition, and I need to use this specific command not any other one..
Any help please, thank you.
Asked
Active
Viewed 1,927 times
0

M. Edna
- 5
- 3
-
`ls -s my_file | cut -d ' ' -f 1` could be faster especially for large files. – Abelisto May 30 '20 at 16:03