Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A little DIR test
#1
I would like to perform a test.
I would like to know if the output of the directory is the same for every language? Also what happens with date/time? And is the distance to the file name the same per language? I use Windows 10 (BE-NL) system. And what about Linux and iOS?

Code: (Select All)
dir *.* /A-D-H-S-L-R /n /ON /4 /l


What is your result? I have the following (excerpt):


Code: (Select All)
26/11/2022  21:10            2.433 filename1.ext
28/11/2022  11:50            3.467 filename2.ext
28/11/2022  16:09            3.522 filename3.ext

So 10 characters for the date
2 spaces in between
5 characters for the date (maybe there will be more due to AM/PM)?
Then the size of the file.
From position 37 the file name.
In other words, can we use fixed values for MID$ ???
Maybe you van upload an excerpt to this post?
Reply
#2
I can't help much here, because I don't use Linux or Mac, but I can tell you this about MID$() method.

I got stung when M$ went from Win98 command/c to later OS's using cmd/c for SHELL DIR output. M$ actually changed the formatting so the rows, where you would parse with MID$(), were changed.

Pete
Reply
#3
GRRR freckin' Firefox decided to delete a good deal I had written earlier! No more typing directly into text field, I'm going to copy-paste from here on out, stupid web browsers none of them built right. Angry </rant>

On Unix it should be "ls" but it could be different in a descendant such as FreeBSD, and there are a lot of aliases around that only use the switches. "ls" by itself uselessly gives a list of filenames very much like "FILES" did in Q(uick)BASIC. "ls -1" is alike but puts one file entry per line. Both don't care to indicate which is a file and which is a directory, which is executable or not, except by color, which sucks if the programmer needs to pipe this command's output to get filenames. "ls -l" (dash then lowercase "L") gives output that looks like plain "DIR" command in MS-DOS or "CMD.EXE" emulation. Something like this:

Code: (Select All)
-rwxr-xr-x 1 root root    22576 Feb 13  2021  w
-rwxr-sr-x 1 root tty     22544 Aug  4 07:32  wall
-rwxr-xr-x 1 root root    27056 Feb 13  2021  watch
-rwxr-xr-x 1 root root    18368 Oct 14 07:01  watchgnupg
-rwxr-xr-x 1 root root   116648 Dec  3 02:27  wavpack
-rwxr-xr-x 1 root root    43024 Nov 30 13:04  wayland-scanner
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  wbmptopbm
-rwxr-xr-x 1 root root    42976 Nov  1 08:44  wc
-rwxr-xr-x 1 root root    30760 Aug  4 07:32  wdctl
-rwxr-xr-x 1 root root    30736 Aug  6 13:22  webpinfo
-rwxr-xr-x 1 root root    34832 Aug  6 13:22  webpmux
-rwxr-xr-x 1 root root    14168 Nov  8 17:48  webpng
-rwxr-xr-x 1 root root   465648 Mar 20  2022  wget
-rwxr-xr-x 1 root root    43952 Nov 15 11:43  whatis
-rwxr-xr-x 1 root root      950 Nov 17 23:07  wheel
-rwxr-xr-x 1 root root    31184 Aug  4 07:32  whereis
-rwxr-xr-x 1 root root    31280 Nov 13  2019  which
-rwxr-xr-x 1 root root    26472 Nov 30 07:59  whiptail
-rwxr-xr-x 1 root root    55360 Nov  1 08:44  who
-rwxr-xr-x 1 root root    30768 Nov  1 08:44  whoami
-rwxr-xr-x 1 root root   533760 Nov 27 02:00  widl
-rwxr-xr-x 1 root root     9314 Mar  6  2022  wifi-menu
-rwxr-xr-x 1 root root    31352 Apr 25  2021  wildmidi
-rwxr-xr-x 1 root root    18368 Jun 16 11:17  wincopy
-rwxr-xr-x 1 root root    13772 Jun 11  2022  wincopy32
-rwxr-xr-x 1 root root    13820 Nov 27 02:00  wine
-rwxr-xr-x 1 root root    14600 Nov 27 02:00  wine64
-rwxr-xr-x 1 root root    17232 Nov 27 02:00  wine64-preloader
-rwxr-xr-x 1 root root     1949 Nov 27 02:00  wineboot
-rwxr-xr-x 1 root root   204200 Nov 27 02:00  winebuild
-rwxr-xr-x 1 root root     1949 Nov 27 02:00  winecfg
-rwxr-xr-x 1 root root     1949 Nov 27 02:00  wineconsole
lrwxrwxrwx 1 root root        7 Nov 27 02:00  winecpp -> winegcc
-rwxr-xr-x 1 root root     1949 Nov 27 02:00  winedbg
-rwxr-xr-x 1 root root   297976 Nov 27 02:00  winedump
-rwxr-xr-x 1 root root     1949 Nov 27 02:00  winefile
lrwxrwxrwx 1 root root        7 Nov 27 02:00  wineg++ -> winegcc
-rwxr-xr-x 1 root root    68184 Nov 27 02:00  winegcc
-rwxr-xr-x 1 root root    95127 Nov 27 02:00  winemaker
-rwxr-xr-x 1 root root     1949 Nov 27 02:00  winemine
-rwxr-xr-x 1 root root     1949 Nov 27 02:00  winepath
-rwxr-xr-x 1 root root    17008 Nov 27 02:00  wine-preloader
-rwxr-xr-x 1 root root   619488 Nov 27 02:00  wineserver
-rwxr-xr-x 1 root root   904682 Apr 23  2022  winetricks
-rwxr-xr-x 1 root root    18264 Nov 29 18:15  winicontopam
-rwxr-xr-x 1 root root    18264 Nov 29 18:15  winicontoppm
-rwxr-xr-x 1 root root   161728 Jun 16 11:17  winpos
-rwxr-xr-x 1 root root   169420 Jun 11  2022  winpos32
-rwxr-xr-x 1 root root    34832 Aug  4 07:32  wipefs
-rwxr-xr-x 1 root root    72320 Nov 27 02:00  wmc
-rwxr-xr-x 1 root root    18184 May 16  2020  wmf2eps
-rwxr-xr-x 1 root root    18184 May 16  2020  wmf2fig
-rwxr-xr-x 1 root root    14088 May 16  2020  wmf2gd
-rwxr-xr-x 1 root root    14088 May 16  2020  wmf2svg
-rwxr-xr-x 1 root root    14088 May 16  2020  wmf2x
-rwxr-xr-x 1 root root    62112 Nov 15 17:34  wnckprop
-rwxr-xr-x 1 root root    14280 Nov 15 17:34  wnck-urgency-monitor
-rwxr-xr-x 1 root root    14368 Jul 18 15:19  woff2_compress
-rwxr-xr-x 1 root root    14368 Jul 18 15:19  woff2_decompress
-rwxr-xr-x 1 root root    18456 Jul 18 15:19  woff2_info
-rwxr-xr-x 1 root root   139104 Nov  9 09:35  wpa_cli
-rwxr-xr-x 1 root root    14176 Nov  9 09:35  wpa_passphrase
-rwxr-xr-x 1 root root  3249240 Nov  9 09:35  wpa_supplicant
-rwxr-xr-x 1 root root    14360 Nov 15 16:15  wpd2html
-rwxr-xr-x 1 root root    14360 Nov 15 16:15  wpd2raw
-rwxr-xr-x 1 root root    14360 Nov 15 16:15  wpd2text
-rwxr-xr-x 1 root root    14360 Nov 15 16:18  wpg2raw
-rwxr-xr-x 1 root root    18456 Nov 15 16:18  wpg2svg
-rwxr-xr-x 1 root root     5868 Nov 15 16:18  wpg2svgbatch.pl
-rwxr-xr-x 1 root root   225920 Nov 27 02:00  wrc
-rwxr-sr-x 1 root tty     18448 Aug  4 07:32  write
-rwxr-xr-x 1 root root    14280 Aug 16 05:28  wrjpgcom
-rwxr-xr-x 1 root root    35208 Dec  3 02:27  wvgain
-rwxr-xr-x 1 root root    34728 Dec  3 02:27  wvtag
-rwxr-xr-x 1 root root    83880 Dec  3 02:27  wvunpack
lrwxrwxrwx 1 root root        4 Jul 12 15:42  X -> Xorg
-rwxr-xr-x 1 root root  2016136 Aug 23 13:10  x264
-rwxr-xr-x 1 root root   161704 Mar  6  2022  x265
lrwxrwxrwx 1 root root        7 Aug  4 07:32  x86_64 -> setarch
-rwxr-xr-x 4 root root   956032 Aug 19 21:12  x86_64-pc-linux-gnu-c++
-rwxr-xr-x 4 root root   956032 Aug 19 21:12  x86_64-pc-linux-gnu-g++
-rwxr-xr-x 3 root root   956032 Aug 19 21:12  x86_64-pc-linux-gnu-gcc
-rwxr-xr-x 3 root root   956032 Aug 19 21:12  x86_64-pc-linux-gnu-gcc-12.2.0
-rwxr-xr-x 2 root root    26560 Aug 19 21:12  x86_64-pc-linux-gnu-gcc-ar
-rwxr-xr-x 2 root root    26560 Aug 19 21:12  x86_64-pc-linux-gnu-gcc-nm
-rwxr-xr-x 2 root root    26560 Aug 19 21:12  x86_64-pc-linux-gnu-gcc-ranlib
-rwxr-xr-x 1 root root    59552 Feb  2  2022  xargs
-rwxr-xr-x 1 root root    51864 Apr 20  2022  xauth
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  xbmtopbm
-rwxr-xr-x 1 root root    51240 May 13  2022  xdg-dbus-proxy
-rwxr-xr-x 1 root root    21188 Nov  7 15:13  xdg-desktop-icon
-rwxr-xr-x 1 root root    44545 Nov  7 15:13  xdg-desktop-menu
-rwxr-xr-x 1 root root    27446 Nov  7 15:13  xdg-email
-rwxr-xr-x 1 root root    30693 Nov  7 15:13  xdg-icon-resource
-rwxr-xr-x 1 root root    42855 Nov  7 15:13  xdg-mime
-rwxr-xr-x 1 root root    25773 Nov  7 15:13  xdg-open
-rwxr-xr-x 1 root root    38262 Nov  7 15:13  xdg-screensaver
-rwxr-xr-x 1 root root    38930 Nov  7 15:13  xdg-settings
-rwxr-xr-x 1 root root      234 Aug  9 16:14  xdg-user-dir
-rwxr-xr-x 1 root root    22480 Oct 20 16:21  xdg-user-dirs-gtk-update
-rwxr-xr-x 1 root root    22560 Aug  9 16:14  xdg-user-dirs-update
-rwxr-xr-x 1 root root    26720 Jun 16 11:17  xeglgears
-rwxr-xr-x 1 root root    14272 Jun 16 11:17  xeglthreads
-rwxr-xr-x 1 root root    14264 Jun 16 11:17  xfont
-rwxr-xr-x 1 root root    13772 Jun 11  2022  xfont32
-rwxr-xr-x 1 root root     1407 Nov 14 10:37  xfs_admin
-rwxr-xr-x 1 root root      695 Nov 14 10:37  xfs_bmap
-rwxr-xr-x 1 root root    92352 Nov 14 10:37  xfs_copy
-rwxr-xr-x 1 root root   704664 Nov 14 10:37  xfs_db
-rwxr-xr-x 1 root root    14184 Nov 14 10:37  xfs_estimate
-rwxr-xr-x 1 root root      800 Nov 14 10:37  xfs_freeze
-rwxr-xr-x 1 root root    42872 Nov 14 10:37  xfs_fsr
-rwxr-xr-x 1 root root    42976 Nov 14 10:37  xfs_growfs
-rwxr-xr-x 1 root root     1294 Nov 14 10:37  xfs_info
-rwxr-xr-x 1 root root   204088 Nov 14 10:37  xfs_io
-rwxr-xr-x 1 root root    92176 Nov 14 10:37  xfs_logprint
-rwxr-xr-x 1 root root    26480 Nov 14 10:37  xfs_mdrestore
-rwxr-xr-x 1 root root      782 Nov 14 10:37  xfs_metadump
-rwxr-xr-x 1 root root     1040 Nov 14 10:37  xfs_mkfile
-rwxr-xr-x 1 root root      685 Nov 14 10:37  xfs_ncheck
-rwxr-xr-x 1 root root    87912 Nov 14 10:37  xfs_quota
-rwxr-xr-x 1 root root   687176 Nov 14 10:37  xfs_repair
-rwxr-xr-x 1 root root    18264 Nov 14 10:37  xfs_rtcp
-rwxr-xr-x 1 root root   104400 Nov 14 10:37  xfs_scrub
-rwxr-xr-x 1 root root     6004 Nov 14 10:37  xfs_scrub_all
-rwxr-xr-x 1 root root    43000 Nov 14 10:37  xfs_spaceman
-rwxr-xr-x 1 root root   299568 Nov  6 20:22  xgettext
-rwxr-xr-x 1 root root    18264 May 21  2022  xhost
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  ximtoppm
-rwxr-xr-x 1 root root    22456 Oct 10  2020  xinit
-rwxr-xr-x 1 root root    14384 Nov 16 11:12  xkbcli
-rwxr-xr-x 1 root root   220800 Mar 17  2021  xkbcomp
-rwxr-xr-x 1 root root    23272 Jul 12 14:25  xmessage
-rwxr-xr-x 1 root root     1800 Oct 21 07:52  xml2-config
-rwxr-xr-x 1 root root    18368 Oct 21 07:52  xmlcatalog
-rwxr-xr-x 1 root root    72432 Oct 21 07:52  xmllint
-rwxr-xr-x 1 root root    75456 Nov 29 11:07  xmlsec1
-rwxr-xr-x 1 root root     5662 Nov 29 11:07  xmlsec1-config
-rwxr-xr-x 1 root root    30648 Oct 25 11:57  xmlwf
-rwxr-xr-x 1 root root    22920 Oct 16 13:10  xmode2
-rwxr-xr-x 1 root root    43216 Jul 11 13:30  xmodmap
-rwxr-xr-x 1 root root      271 Jul 12 15:42  Xorg
-rwxr-xr-x 1 root root    18344 Nov 29 18:15  xpmtoppm
-rwxr-xr-x 1 root root    49208 Nov 20  2020  xprop
-rwxr-xr-x 1 root root    26648 Sep 22 13:20  xpstojpeg
-rwxr-xr-x 1 root root    26648 Sep 22 13:20  xpstopdf
-rwxr-xr-x 1 root root    34840 Sep 22 13:20  xpstopng
-rwxr-xr-x 1 root root    30744 Sep 22 13:20  xpstops
-rwxr-xr-x 1 root root    26648 Sep 22 13:20  xpstosvg
-rwxr-xr-x 1 root root    63336 May 16  2020  xrandr
-rwxr-xr-x 1 root root    34744 Aug 20  2021  xrdb
-rwxr-xr-x 1 root root    22464 Jun 16 11:17  xrotfontdemo
-rwxr-xr-x 1 root root    17876 Jun 11  2022  xrotfontdemo32
-rwxr-xr-x 1 root root    34648 May 21  2022  xset
-rwxr-xr-x 1 root root     2556 Aug 30 13:52  xslt-config
-rwxr-xr-x 1 root root    30656 Aug 30 13:52  xsltproc
-rwxr-xr-x 1 root root    90608 Jul 25 10:16  xtables-legacy-multi
lrwxrwxrwx 1 root root       17 Jul 25 10:16  xtables-monitor -> xtables-nft-multi
-rwxr-xr-x 1 root root   219696 Jul 25 10:16  xtables-nft-multi
-rwxr-xr-x 1 root root   950784 Nov 27 14:36  xterm
-rwxr-xr-x 1 root root    92136 Mar 29  2022  xtotroff
-rwxr-xr-x 1 root root     5223 Oct  7 10:17  xtrace
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  xvminitoppm
-rwxr-xr-x 1 root root    22360 Nov 29 18:15  xwdtopnm
lrwxrwxrwx 1 root root        6 Nov 22 15:49  xxh128sum -> xxhsum
lrwxrwxrwx 1 root root        6 Nov 22 15:49  xxh32sum -> xxhsum
lrwxrwxrwx 1 root root        6 Nov 22 15:49  xxh64sum -> xxhsum
-rwxr-xr-x 1 root root    71704 Nov 22 15:49  xxhsum
-rwxr-xr-x 1 root root    80184 Nov 30 15:19  xz
lrwxrwxrwx 1 root root        2 Nov 30 15:19  xzcat -> xz
lrwxrwxrwx 1 root root        6 Nov 30 15:19  xzcmp -> xzdiff
-rwxr-xr-x 1 root root    14344 Nov 30 15:19  xzdec
-rwxr-xr-x 1 root root     7372 Nov 30 15:19  xzdiff
lrwxrwxrwx 1 root root        6 Nov 30 15:19  xzegrep -> xzgrep
lrwxrwxrwx 1 root root        6 Nov 30 15:19  xzfgrep -> xzgrep
-rwxr-xr-x 1 root root    10333 Nov 30 15:19  xzgrep
-rwxr-xr-x 1 root root     1813 Nov 30 15:19  xzless
-rwxr-xr-x 1 root root     2190 Nov 30 15:19  xzmore
-rwxr-xr-x 1 root root    14248 Sep 10  2021  y4mblack
-rwxr-xr-x 1 root root    26688 Sep 10  2021  y4mcolorbars
-rwxr-xr-x 1 root root   133376 Sep 10  2021  y4mdenoise
-rwxr-xr-x 1 root root    14168 Sep 10  2021  y4mhist
-rwxr-xr-x 1 root root    18344 Sep 10  2021  y4minterlace
-rwxr-xr-x 1 root root    14248 Sep 10  2021  y4mivtc
-rwxr-xr-x 1 root root   120832 Sep 10  2021  y4mscaler
-rwxr-xr-x 1 root root    18272 Sep 10  2021  y4mshift
-rwxr-xr-x 1 root root    18280 Sep 10  2021  y4mspatialfilter
-rwxr-xr-x 1 root root    34648 Sep 10  2021  y4mstabilizer
-rwxr-xr-x 1 root root    22360 Sep 10  2021  y4mtopnm
-rwxr-xr-x 1 root root    18264 Sep 10  2021  y4mtoppm
-rwxr-xr-x 1 root root    14168 Sep 10  2021  y4mtoyuv
-rwxr-xr-x 1 root root    18312 Sep 10  2021  y4munsharp
-rwxr-xr-x 1 root root   291480 Nov 22 04:45  yad
-rwxr-xr-x 1 root root    26464 Nov 22 04:45  yad-icon-browser
-rwxr-xr-x 1 root root     6587 Nov 22 04:45  yad-settings
-rwxr-xr-x 1 root root    27352 Nov 22 04:45  yad-tools
-rwxr-xr-x 1 root root  2295800 Nov 17 12:57  yaml2obj
-rwxr-xr-x 1 root root   444520 Nov 17 12:57  yaml-bench
-rwxr-xr-x 1 root root    38920 Nov 15 16:00  yat2m
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  ybmtopbm
-rwxr-xr-x 1 root root    59400 Oct 25 10:10  yelp
-rwxr-xr-x 1 root root    30632 Nov  1 08:44  yes
-rwxr-xr-x 1 root root    14168 Sep 10  2021  ypipe
-rwxr-xr-x 1 root root    22384 Sep 10  2021  yuv2lav
-rwxr-xr-x 1 root root    18344 Sep 10  2021  yuv4mpeg
-rwxr-xr-x 1 root root   501600 Apr  7  2022  yuvconvert
-rwxr-xr-x 1 root root    42848 Sep 10  2021  yuvcorrect
-rwxr-xr-x 1 root root    51040 Sep 10  2021  yuvcorrect_tune
-rwxr-xr-x 1 root root    30640 Sep 10  2021  yuvdeinterlace
-rwxr-xr-x 1 root root    38752 Sep 10  2021  yuvdenoise
-rwxr-xr-x 1 root root    14168 Oct 18 09:42  yuv-distortion
-rwxr-xr-x 1 root root    18264 Sep 10  2021  yuvfps
-rwxr-xr-x 1 root root    18272 Sep 10  2021  yuvinactive
-rwxr-xr-x 1 root root    34728 Sep 10  2021  yuvkineco
-rwxr-xr-x 1 root root    22408 Sep 10  2021  yuvmedianfilter
-rwxr-xr-x 1 root root    55240 Sep 10  2021  yuvscaler
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  yuvsplittoppm
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  yuvtoppm
-rwxr-xr-x 1 root root    26536 Sep 10  2021  yuvycsnoise
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  yuy2topam
-rwxr-xr-x 1 root root    14248 Sep 10  2021  yuyvtoy4m
-rwxr-xr-x 1 root root    18264 Aug 23 15:11  zbarcam
-rwxr-xr-x 1 root root    22360 Aug 23 15:11  zbarcam-gtk
-rwxr-xr-x 1 root root   108624 Aug 23 15:11  zbarcam-qt
-rwxr-xr-x 1 root root    22360 Aug 23 15:11  zbarimg
-rwxr-xr-x 1 root root     1984 Apr  7  2022  zcat
-rwxr-xr-x 1 root root     1678 Apr  7  2022  zcmp
-rwxr-xr-x 1 root root     6460 Apr  7  2022  zdiff
-rwxr-xr-x 1 root root    59448 Nov 29 14:00  zdump
-rwxr-xr-x 1 root root       29 Apr  7  2022  zegrep
-rwxr-xr-x 1 root root    14168 Nov 29 18:15  zeisstopnm
-rwxr-xr-x 1 root root   123424 Jul  3 05:25  zenity
-rwxr-xr-x 1 root root       29 Apr  7  2022  zfgrep
-rwxr-xr-x 1 root root     2081 Apr  7  2022  zforce
-rwxr-xr-x 1 root root     8112 Apr  7  2022  zgrep
-rwxr-xr-x 1 root root    71768 Nov 29 14:00  zic
-rwxr-xr-x 1 root root   228384 Mar 22  2022  zip
-rwxr-xr-x 1 root root   101840 Mar 22  2022  zipcloak
-rwxr-xr-x 1 root root     2953 Aug 10 07:42  zipgrep
-rwxr-xr-x 2 root root   170048 Aug 10 07:42  zipinfo
-rwxr-xr-x 1 root root    93424 Mar 22  2022  zipnote
-rwxr-xr-x 1 root root   101616 Mar 22  2022  zipsplit
-rwxr-xr-x 1 root root     2206 Apr  7  2022  zless
-rwxr-xr-x 1 root root     1842 Apr  7  2022  zmore
-rwxr-xr-x 1 root root     4577 Apr  7  2022  znew
-rwxr-xr-x 1 root root    51360 Aug  4 07:32  zramctl
lrwxrwxrwx 1 root root        6 Mar 29  2022  zsoelim -> soelim
-rwxr-xr-x 1 root root   149800 Jun 16 14:07  zstd
lrwxrwxrwx 1 root root        4 Jun 16 14:07  zstdcat -> zstd
-rwxr-xr-x 1 root root     3869 Jun 16 14:07  zstdgrep
-rwxr-xr-x 1 root root       30 Jun 16 14:07  zstdless
lrwxrwxrwx 1 root root       13 Jun 16 14:07  zstdmt -> /usr/bin/zstd
-rwxr-xr-x 1 root root   100264 Nov  8 09:16  zvbi-atsc-cc
-rwxr-xr-x 1 root root    14176 Nov  8 09:16  zvbi-chains
-rwxr-xr-x 1 root root    47040 Nov  8 09:16  zvbid
-rwxr-xr-x 1 root root   128976 Nov  8 09:16  zvbi-ntsc-cc

Purposely I listed only from "w" beginning to the end, the "/usr/bin" from my Manjaro MATE installation. The directory has thousands of entries. :O

The three sets of "rwx" are for user, group and "world" (others not in the enclosed groups). The user that owns the file is indicated afterward, in "/usr/bin" this is expected to be only the "root" user. The filenames that are listed with "->" are symbolic links, and the attribute of "l" is enabled for them on the first column.

The "-a" or "-A" could list files in the user's home directory like ".bashrc" which holds settings for the terminal, normally what colors and other things to display. Normally they are hidden by "Nautilus" or "Caja" file manager but they could be seen with [CTRL][H] keypress. On GNOME and MATE additionally with the file manager. [CTRL][K] also displays the files that end with the squiggle, which are usually backup text files, if that option is chosen in a text editor such as GEdit or Pluma. For some reason on KDE, Dolphin displays those backup files with nothing to be done by the user, but it does respond to the "show hidden files" shortcut to hide the so-called "dot" files.

The "ls -R" causes a recursive search through directories, but its output will have to be worked on differently from "DIR" in MS-DOS. Such that Dav decided to do something else to get filenames; examine it in this post:

https://qb64phoenix.com/forum/showthread.php?tid=264


There are many other switches but I probably listed the most important ones. For more information:

https://linux.die.net/man/1/ls
Reply
#4
+1
Reply
#5
(12-10-2022, 06:02 PM)Pete Wrote: I got stung when M$ went from Win98 command/c to later OS's using cmd/c for SHELL DIR output. M$ actually changed the formatting so the rows, where you would parse with MID$(), were changed.
Blame it on the "LFN", also because nothing had to be missed... something like "PROGRA~1" for "Program Files" and listed side by side. It wound up being a mind-boggling combination of beginning fragments of a filename, hexadecimal number then squiggle and then single-numeral. That was before doing anything with the suffix when that stopped being strictly three digits long.

Another thing is the accomodation for file sizes. Freckin' File Explorer for WindowsXP listing everything in KB, I think "DIR" command in "CMD.EXE" did the same thing and then those dumb-looking commas, a good thing for those of us growing old using M$'s stuff LOL.

I freaked out the first time I saw something like "1,110,101KB", and I facepalmed and shook my head while I kept seeing "0.97GB" in file copy progress or something like that. One of the app installer/remover programs to use at the Linux terminal, called "pacman" which is authored by the makers of Arch Linux, while downloading stuff likes displaying a package's size in KB if it's less than 2MB or so, which I can't understand. Two different file managers could confuse the user: the aforementioned "Caja" or "Nautilus" could display in the status bar something like "15.0GB" for disk space available, but a different file manager could say "14.6GiB" for the same thing. Finally there's "wget" which doesn't say straight away if it's "gibibyte" (multiple of 1024 middle syllable) or "gigabyte" (multiple of 1000) at something like "2.5G". The indication of how much memory is sickening on Linux these days.
Reply




Users browsing this thread: 1 Guest(s)