Tag Archives: script

How to delete all files in a folder EXCEPT certain ones in BASH

Imagine you have a folder that has about 20 files that you need and like 100 files that you don’t. In this case, there is a very simple bash script that allows you to do that in a jiffy! Here … Continue reading

Posted in Linux, Uncategorized | Tagged , , , | Leave a comment

Script to monitor a Filesystem on AIX

#!/bin/sh # This script checks if the /siebel filesystem reaches 2 GB of free space# And then delete the old logs except those of today warninglimit=2097152    # This number is in KB, it’s equal to 2 GB,                        # KB is … Continue reading

| Tagged , , | 1 Comment