create account

LINUXOPOLIS # 24-JANUARY-2020 ~ AWK v2 by wglenz

View this thread on: hive.blogpeakd.comecency.com
· @wglenz · (edited)
$0.08
LINUXOPOLIS # 24-JANUARY-2020 ~ AWK v2
<center><h3>AWK</h3><b>Building a Linux Habitat<br>willi glenz @ <a href="t.me/wglenz">telegram</a><br><a href="https://steempeak.com/@wglenz">Published with SteemPeak</a><br>[home](https://steempeak.com/@wglenz) [previous](https://steempeak.com/linux/@wglenz/linuxopolis-23-january-2020-awk)</b></center>

<center>![screenshot by willi glenz](https://files.steempeak.com/file/steempeak/wglenz/r7qJSSBX-image.png)</center>

```
$ vim ~/.config/fish/functions/gawk.fish

function gawk --description 'awk'
    clear; echo
    echo '=========================================================================='
    echo '                                   AWK                                    '
    echo '=========================================================================='
    echo ' # apt install gawk gawk-doc                                              '
    echo ' $ dpkg -L gawk-doc | less                                                '
    echo ' > file:///usr/share/doc/gawk-doc/gawk.pdf                                '
    echo '--------------------------------------------------------------------------'
    echo ' documentation                      gnu.org/software/gawk/manual/gawk.html'
    echo ' tutorial I                               tutorialspoint.com/awk/index.htm'
    echo ' tutorial II                             tldp.org/LDP/abs/html/sedawk.html'
    echo '=========================================================================='
    read

    clear; echo; echo 'MEMORY                                                       '
    read; free -h | awk '/^Mem:/ {print "free " $4 " used " $3 " total " $2}' | vim -

    clear; echo; echo 'TEMPERATURE                                                  '
    read; sensors | awk '/^Core|temp1/ {print $0}' | vim -

    clear; echo; echo 'USER I                                                       '
    read; awk -F: '{ print $1 }' /etc/passwd | sort | vim -

    clear; echo; echo 'USER II                                                      '
    read; awk -F: '/root|user1/ { print $0 }' /etc/passwd | vim -

    clear; echo; echo 'ENVIRONENT                                                   '
    read; printenv | awk '/PATH|HOME|USER|SHELL/ {print $0}' | vim -
end
```

```
SOURCES
 gnu.org ....................................  gnu.org/software/gawk/manual/gawk.html
 tldp ............................................. tldp.org/LDP/abs/html/sedawk.html
 tutorialspoint .................................... tutorialspoint.com/awk/index.htm
 picture ....................................... screenshoot by me ~ my gnome-desktop
```

👍  , , , , , , , , , , , , , , , , , , ,
👎  
properties (23)
authorwglenz
permlinklinuxopolis-24-january-2020-awk-v2
categorylinux
json_metadata{"app":"steempeak/2.2.8","format":"markdown","tags":["linux","debian","bash","fish","opensource"],"users":["wglenz"],"links":["https://t.me/wglenz","/@wglenz","/@wglenz","/linux/@wglenz/linuxopolis-23-january-2020-awk"],"image":["https://files.steempeak.com/file/steempeak/wglenz/r7qJSSBX-image.png"]}
created2020-01-24 14:57:48
last_update2020-01-24 15:01:36
depth0
children0
last_payout2020-01-31 14:57:48
cashout_time1969-12-31 23:59:59
total_payout_value0.039 HBD
curator_payout_value0.038 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,620
author_reputation1,727,575,717,311
root_title"LINUXOPOLIS # 24-JANUARY-2020 ~ AWK v2"
beneficiaries
0.
accountsteemchiller
weight100
1.
accountsteempeak
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id94,725,112
net_rshares481,932,448,945
author_curate_reward""
vote details (21)