SHRINKFILE man page on 4.4BSD

Man page or keyword search:  
man Server   1065 pages
apropos Keyword Search (all sections)
Output format
4.4BSD logo
[printable version]

SHRINKFILE(1)							 SHRINKFILE(1)

NAME
       shrinkfile - shrink a file on a line boundary

SYNOPSIS
       shrinkfile [ -s size ] [ -v ] file...

DESCRIPTION
       The  shrinkfile	program	 shrinks files to a given size, preserving the
       data at the end of the file.  Truncation is performed  on  line	bound‐
       aries,  where  a	 line  is a series of bytes ending with a newline, \n.
       There is no line length restriction and files may  contain  any	binary
       data.

       Temporary  files	 are  created  in  the /tmp directory.	The ``TMPDIR''
       environment variable may be used to specify a different directory.

       A newline will be added to any non-empty file that does not end with  a
       newline.	 The maximum file size will not be exceeded by this addition.

       By  default, files are truncated to zero bytes.	The ``-s'' flag may be
       used to change the maximum size.	 Because the program truncates only on
       line  boundaries,  the final size may be may be smaller then the speci‐
       fied maximum.  The size parameter may  end  with	 a  ``k'',  ``m'',  or
       ``g'',  indicating  kilobyte  (1024),  megabyte	(1048576)  or gigabyte
       (1073741824) lengths.  Uppercase letters are also allowed.  The maximum
       file size is 2147483647 bytes.

       If the ``-v'' flag is used, then shrinkfile will print a status line if
       a file was shrunk.

HISTORY
       Written	by  Landon  Curt  Noll	 <chongo@toad.com>   and   Rich	  $alz
       <rsalz@uunet.uu.net> for InterNetNews.

								 SHRINKFILE(1)
[top]

List of man pages available for 4.4BSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net