[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Check if file size greater than a small number?
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: Check if file size greater than a small number? |
Date: |
Thu, 10 Mar 2022 03:21:40 +0100 |
aha never loaded any of these before
On Thu, Mar 10, 2022 at 3:20 AM Kerin Millar <kfm@plushkava.net> wrote:
> On Thu, 10 Mar 2022 03:02:57 +0100
> Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:
>
> > mkdir ttt
> > cd ttt
> >
> > >0 ; printf 1 >1 ; printf 22 >22 ; printf 333 >3
> >
> > minsize() { < <( LC_ALL=C find "${@:2}" -maxdepth 0 -printf %s\\n ) gawk
> > -v min=$1 'BEGIN { while ( getline <"/dev/stdin" ) if ( ++i && $0 <= min
> )
> > print ARGV[i] ; exit }' "${@:2}" ; }
> >
> > minsize 2 *
>
> Use the stat() function that gawk already supports.
>
>
> https://www.gnu.org/software/gawk/manual/html_node/Internal-File-Description.html
>
> --
> Kerin Millar
>
- Re: Check if file size greater than a small number?, (continued)
Re: Check if file size greater than a small number?, Alex fxmbsw7 Ratchev, 2022/03/09
Re: Check if file size greater than a small number?, Kerin Millar, 2022/03/09
- Re: Check if file size greater than a small number?,
Alex fxmbsw7 Ratchev <=