Web lists-archives.com

Re: Partition information as text file?




On 02/01/2019 08:22 AM, Thomas Schmitt wrote:
Hi,

Richard Owlett wrote:
[Gparted] PROVED that what I wanted was possible.

Regrettably it does not retrieve the information by some universal info
program or library, but rather has particular info sources for each of
the supported filesystems. (There are more filesystems around than i can
see in the Gparted source.)


It's "suitability to purpose" was degraded on *2* counts:
1. it does not output the data as a text file.

So you need one or more scripts ... Then the script[s] would put out
the retrieved numbers in the text format which you desire.

The need for *ME* to write a script was a BASIC assumption to my asking about commands relevant to my task.



man page format [...] almost total lack of examples [...]

If you refer to Gparted's man page, ...

I was referring to Linux man pages in general. I've ~10 man pages of commands mentioned in this thread -- none with useful examples. For a specific command I routinely do a web search with the keywords "examples" &/or "tutorial".

Though I don't refer to myself as a programmer I've written "scripts" [using term loosely]:
  in the early 60's using CORC/CUPL {Cornell's predecessor to BASIC}
  in the mid 70's using DEC's TECO {not just an editor ;}
  later dBASEII and Paradox
  am now exploring Tcl/Tk