GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    menherahair (menherahair@eientei.org)'s status on Saturday, 21-Dec-2024 00:09:39 JSTmenherahairmenherahair
    in reply to
    • ?? Humpleupagus ??
    • Zergling_man
    • cool_boy_mew
    • mothball蛾玉 (西洋巣酸の木)
    @Zergling_man @Humpleupagus @coolboymew @moth_ball
    yes
    func(arg, arh); parenthesis optional
    fields are $1 $2 etc. the $ are NOT accessing vars. you have built in vars like NF (number of fields) and can access them without the $. $NF actually reads $3 for NF=3
    it shouldn't respect IFS iirc. it has internal IFS. pass -F 'sep pattern' or assign it in BEGIN{} block.
    also it's not really pattern {action} but majority of time it will be /pattern/ {action}. the first statement can be whatever and if it evals truthy {actions} happen. clever example is you can do $0=$3 and it actually evals to $0. if $3 is empty {actions} won't run for that record.

    admittedly I've written a longer awk program than 99% of awk aware population but I think it's pretty straightforward
    In conversation6 months ago from eientei.orgpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.

Embed this notice