Joerg Schilling wrote, on 19 Oct 2017:
>
> You need to look at the 2nd line and you may use the '%' sign to synchronize
> fields and you may even do this:
>
> /usr/xpg4/bin/df -P /etc/passwd /etc/hosts
> Dateisystem 512-Blöcke Belegt
As Martijn Dekker wrote:
> There is another, less unlikely problem, though: a file system could be
> mounted on a directory with a name containing a newline, which would
> break line-based parsing.
Pipe the output of df -P through "tail -n +2 | head -1". :-)
That way, you don't have to care
Op 18-10-17 om 16:11 schreef Geoff Clare:
> After the filesystem name there are four numeric fields with a trailing '%'
> on the fourth. Treating this as the terminator for the filesystem name
> ought to be good enough in practice. It would only not work in the
> extremely unlikely event that a
Op 19-10-17 om 13:12 schreef Joerg Schilling:
> No, the first field usually is the background storage, it may be the filesytem
> name in some cases.
Whatever it technically may be, the POSIX spec calls it a file system
name, so I'm using that term to be consistent with it.
The following issue has been RESOLVED.
==
http://austingroupbugs.net/view.php?id=1151
==
Reported By:Clausecker
Assigned To:
A NOTE has been added to this issue.
==
http://austingroupbugs.net/view.php?id=1151
==
Reported By:Clausecker
Assigned To:
Martijn Dekker wrote:
> Is there a way, using POSIX shell and utilities, to reliably test if two
> files are on the same file system? It seems like a basic feature that
> the shell should have access to, so I'd like to add it to the modernish
> shell library.
>
> The only POSIX
Op 19-10-17 om 15:14 schreef Joerg Wunsch:
> As Martijn Dekker wrote:
>
>> There is another, less unlikely problem, though: a file system could be
>> mounted on a directory with a name containing a newline, which would
>> break line-based parsing.
>
> Pipe the output of df -P through "tail -n +2
A NOTE has been added to this issue.
==
http://austingroupbugs.net/view.php?id=1053
==
Reported By:steffen
Assigned To:
The following issue has been RESOLVED.
==
http://austingroupbugs.net/view.php?id=1053
==
Reported By:steffen
Assigned To:
10 matches
Mail list logo