]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(The cut command): Extend the new example a little.
authorJim Meyering <jim@meyering.net>
Fri, 24 Jan 2003 13:47:21 +0000 (13:47 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 24 Jan 2003 13:47:21 +0000 (13:47 +0000)
doc/coreutils.texi

index 657ed5b6e03b3aad0af338cd2474b2a1d9c434b7..3488e08ac90ef1b154d6bc12fd4c30a656c750d2 100644 (file)
@@ -11921,6 +11921,19 @@ $ mysql -e 'select * from home' test
 @print{} +------+------+------+------+---------------------+
 @end example
 
+But beware of assumptions.
+The above invocation of @command{ls} assumes that the owner
+and group names are no longer than eight bytes each,
+and that no file has size larger than 99999999 bytes.
+Otherwise, the byte offset of @samp{57} would need to be larger.
+To avoid such problems, suppress output of the owner and group
+names with the @option{-g} and @option{-G} options respectively,
+and add the @option{-h} option to ensure that the representation
+of the size of the file does not exceed the allotted space.
+Finally, note that the width of even the date/time field may change,
+depending on the current locale.  To avoid that, use an option
+like @option{--time-style='+%Y-%m-%d %H:%M:%S'}.
+
 @node The sort command
 @unnumberedsec The @command{sort} Command