I would like this to display everything except the Swap: line.
I looked at sort but could not find anything.
free -h > /home/andy/Downloads/Ram_Usage.txt
gxmessage -fg red -font ‘sans 20’ -timeout 3 -file /home/andy/Downloads/Ram_Usage.txt
I would like this to display everything except the Swap: line.
I looked at sort but could not find anything.
free -h > /home/andy/Downloads/Ram_Usage.txt
gxmessage -fg red -font ‘sans 20’ -timeout 3 -file /home/andy/Downloads/Ram_Usage.txt
I am almost there.
Need to get 2nd line output to a file. ?
free -h > /home/andy/Downloads/Ram_Usage.txt
grep -v Swap: /home/andy/Downloads/Ram_Usage.txt
#gxmessage -fg red -font 'sans 20' -timeout 3 -file /home/andy/Downloads/Ram_Usage.txt
Is there a way to mark a code block ?Preformatted text
`#!/bin/bash
'# Ubuntu_Mate 16.04
'# https://ubuntu-mate.community
'# Show current memory usage using free,grep,date, and gxmessage
'#
'date “+DATE: %m/%d/%y%nTIME: %H:%M:%S” > /home/andy/Downloads/file.txt
'free -h | grep --line-buffered -v Swap: /home/andy/Downloads/Ram_Usage.txt >> /home/andy/Downloads/file.txt
'gxmessage -fg red -font ‘sans 20’ -timeout 3 -file /home/andy/Downloads/file.txt
Yes:
I tried </ in front of block and > at the end. ??
Yeah no you have to select the text you want to place in code blocks, and then click the button.
Got it.
Thanks. filler