Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire] j2sdk-1.4.2

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Ladislav Hagara <hgr AT vabo.cz>
  • Cc: sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire] j2sdk-1.4.2
  • Date: Wed, 29 Oct 2003 11:28:55 +0100

> > if [ $(cat /proc/meminfo | grep Swap: | cut -d" " -f4) -gt "1900000000" ]
> > ;
> >
> > if [ $(cat /proc/meminfo | grep Swap: | cut -d" " -f6) -gt "1900000000" ]
> > ;
>
> And I get an error if i change that cut line to -f6.
> In fact my swap line only has 4 fields ?
> $ cat /proc/meminfo | grep Swap:
> Swap: 2023407616 476065792 1547341824
> Can you paste the whole output of cat /proc/meminfo so I can see the
> difference ?

Swap line in /proc/cpuinfo probably can contains different number of spaces.
You must ensure only single occurrence of space (-d " "), "tr" can help.

cat /proc/meminfo | grep Swap: | tr -s " " ...

- lace -





Archive powered by MHonArc 2.6.24.

Top of Page