Short: Shell tool to set file size Author: Olivier Bedouet Uploader: badmax club-internet fr Type: util/cli Version: 1.0 Architecture: m68k-amigaos English : ======== This a a very little tool to set file size to a given size. Example : you got a log file of 1 MB. With resize, you can set size to 256 kB, keeping the last 256 kB. 1.> dir log_file 1048576 1.> resize log_file 262144 1.> dir log_file 262144 :) Technical infos : - buffer is copied into memory (so with VERY VERY big files, you will need the amount of memory you ask for) - use AmigaOS routines. Tested on OS 3.1. Will work fine on OS 2.x and 3.x but I don't know if it will work on OS 1.x. Tell me if it worked on your OS 1.x. - compiled with SAS/C 6.58. No warning. No enforcer hit. - work on FFS and PFS3. Resize is freeware. Français : ========= Bon alors resize c'est un petit outil shell pour vos fichiers de log. Exemple : vous avez un fichier log d'AmIRC. Celui-ci fait 2 Mo. Vous n'avez pas PFS (donc pas l'outil setrollover). Vous aimeriez bien garder, allez, les 256 derniers kilo-octets. Ben voici ce que vous pouvez faire : 1.> resize fichier_log 262144 Et voilà. Ca suffit. Simple non ? Informations techniques : - toute l'opération est stockée en mémoire. Si vous réglez la taille à 256 Ko, alors resize va occuper 256 Ko en mémoire. - utilise les routines standarts de la dos.library. Testé avec succès sur l'OS 3.1. Doit marcher sans problèmes sur l'OS 2.x et l'OS 3.0. Aucune idée en ce qui concerne l'OS 1.x. Si ça marche chez vous, contactez-moi ;-) - marche avec FFS et PFS3. Resize est un logiciel libre.