In linux, use awk to just display the file name, followed by space followed by file size of file in current directory. Note the output of running "ls -lh":
-rw-rw-r-- 1 kevin kevin 8.8K Nov 16 11:28 java_versions_all_instances.xlsx
-rw-r--r-- 1 kevin kevin 6.3K Nov 9 17:24 java_versions_detailed.xlsx
ls -lh | awk '{print $9 " " $5}'
^^ note the program given to the awk interpretor is wrapped in single quotes
^^^ note that the program block is wrapped in brace brackets
^^^ for the print method of AWK, note that concatenation is done via white-space seperated strings
In linux, use awk to just display the file name, followed by space followed by file size of file in current directory. Note the output of running "ls -lh":
-rw-rw-r-- 1 kevin kevin 8.8K Nov 16 11:28 java_versions_all_instances.xlsx
-rw-r--r-- 1 kevin kevin 6.3K Nov 9 17:24 java_versions_detailed.xlsx
In linux, use awk to just display the file name, followed by space followed by file size of file in current directory. Note the output of running "ls -lh":
-rw-rw-r-- 1 kevin kevin 8.8K Nov 16 11:28 java_versions_all_instances.xlsx
-rw-r--r-- 1 kevin kevin 6.3K Nov 9 17:24 java_versions_detailed.xlsx
ls -lh | awk '{print $9 " " $5}'
^^ note the program given to the awk interpretor is wrapped in single quotes
^^^ note that the program block is wrapped in brace brackets
^^^ for the print method of AWK, note that concatenation is done via white-space seperated strings
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |