11 lines
158 B
Bash
Executable file
11 lines
158 B
Bash
Executable file
#!/bin/sh
|
|
|
|
s=" " # field separator
|
|
|
|
exec 2>/dev/null
|
|
|
|
filename=$(basename -- "$4")
|
|
filesize=$(du -Hh -- "$4" | cut -f 1)
|
|
|
|
echo "${filesize}${s}${filename}"
|
|
|