Coder Social home page Coder Social logo

pmitev / to-awk-or-not Goto Github PK

View Code? Open in Web Editor NEW
30.0 4.0 6.0 9.48 MB

This repositiory serves as an auxiliary material to an awk course/seminar page.

Home Page: https://pmitev.github.io/to-awk-or-not/

License: GNU General Public License v3.0

Awk 35.15% Gnuplot 6.48% Python 48.57% HTML 9.80%
awk awk-programming-language awk-script tutorial

to-awk-or-not's People

Contributors

netzach avatar pmitev avatar richelbilderbeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

to-awk-or-not's Issues

Python Challenge

I would like to submit a solution for the challenge on the bottom of this page:

If you think that this could be done significaanly easier in python than the python solution above, here is a link to a smaller file on which you can try your code. I will be glad to share the solution on this page.

data = {"Frequencies":[], "Frc consts":[], "IR Inten":[]}

with open("H2O.log") as f:
    for line in f.readlines():
        for label in data:
            if label in line:
                data[label].extend(line.split()[-3:])

for line in zip(*data.values()):
    print(" ".join(line))

I hope it is a useful comparison to the awk script. Please let me know if you'd like any explanation on how it works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.