Re: Unexpected directory listing
You can create a shell script or an alias that takes the path as an argument.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
ls -la "/etc/config"
ls -la | sed -r 's/\b[0-9]{20}\b/123/g' "/etc/config"
ls -la "/etc/config" | sed -r 's/\b[0-9]{20}\b/123/g'
%path%
?
ls -la %path% | sed -r 's/\b[0-9]{20}\b/123/g'
ls -la
to:
ls -la | sed -r 's/\b[0-9]{20}\b/123/g'
Unexpected directory listing line 'drwxr-xr-x 1 root root 18446744073709551504 Oct 4 13:00 config'.
/etc/config
is a directory and the real size of it is very small.
ls -la
root@openwrt:/etc# ls -al
drwxr-xr-x 1 root root 2064 Sep 22 22:23 .
drwxr-xr-x 1 root root 608 Feb 27 2021 ..
lrwxrwxrwx 1 root root 7 Feb 15 2021 TZ -> /tmp/TZ
-rw-r--r-- 1 root root 397 Feb 15 2021 banner
-rw-r--r-- 1 root root 461 Feb 15 2021 banner.failsafe
drwxr-xr-x 2 root root 74 Feb 15 2021 board.d
-rw-r--r-- 1 root root 1533 Feb 27 2021 board.json
drwxr-xr-x 1 root root 18446744073709551504 Oct 4 13:00 config
drwxr-xr-x 1 root root 224 Mar 7 2021 crontabs
-rw-r--r-- 1 root root 123 Feb 15 2021 device_info
-rw-r--r-- 1 root root 872 Feb 15 2021 diag.sh
-rw------- 1 root root 29 Jun 14 17:25 dnsmasq.conf
drwxr-xr-x 1 root root 312 Aug 12 21:58 dropbear