Comments (11)
you might want to check out https://github.com/onetrueawk/awk for an awk you can use right now. that's what we're using on Android (both to build Android and on the device itself).
from toybox.
I'm currently focusing on getting the toybox shell finished, ala https://github.com/landley/toybox/commits/master/toys/pending/sh.c with behind the scenes stuff at https://landley.net/notes.html .
Right now I'm doing the can of worms that is the 7 types of argument expansion, and right at the moment trying to get
If somebody wants to write an awk the way Jarno Mäkipää is doing vi or Gavin Howard did bc, I'll happily stick it in pending. But as when I plan to write one... dunno? Cleaning up and promoting existing toys/pending/*.c entries is higher priority than starting new ones at the moment. Closing tabs before opening more.
Elliott's external awk sounds like a reasonable stopgap until then.
from toybox.
The toybox roadmap has awk because it's used in a lot of package build systems. Generally if you can build Linux From Scratch with this awk, it's probably good enough.
That said, toybox supports utf8 where possible, so if I was working on awk I'd support that. (I'm teaching toysh to understand unicode $IFS for example.)
I'm not personally familiar with the differences between nawk, mawk, and gawk.
from toybox.
@amakukha In my case, I'd need an awk that can process UTF-8 files with no issues (i.e: imagine you want to process a C/C++ source that has UTF-8 chars on it, which is supported by the C/C++ standards nowadays).
from toybox.
All of those are already on the roadmap! http://landley.net/toybox/roadmap.html
Also does your script use awk or gawk? If gawk makes I can imagine it would just be an alias for awk.
BTW, you'll get more responsive replys from the mailing list than here.
from toybox.
tr
and stty
are now in pending. Check if they have all the features that you need.
from toybox.
@cb88 I use cut
, grep
, and awk
filters in a script that I run at recovery (where /usr
is not mounted).
In the meantime, I use busybox.
Approximately what month will the awk
toybox functionality be released in 2020 ?
from toybox.
Now that you talk about awk
let me comment that "one true awk" doesn't support UTF-8, and that they don't plan to add support for it (I opened an issue for that, but their reply was that it was not in the roadmap and that it would imply a huge amount of work).
These days, with plenty of localized text files everywhere, I wouldn't consider an awk
implementation ready for production use if it cannot process UTF-8 text.
from toybox.
By the way, if somebody was to implement awk
for toybox, what would be the desired feature set? @landley , @amosbird , @sebma
These question arise:
- Do we want it to be a drop-in replacement for
nawk
(a.k.a. "one-true-awk")? - Do we want it to use linear bytecode, like
mawk
? (Which is still six times faster thangawk
for some simple workloads, e.g. counting word frequency.) - Do we want to fully support Unicode on top of that? (Neither
nawk
normawk
fully support it.)
I was thinking whether I could do "AWK for toybox" as my capstone university project. But I am afraid that if you want to keep it too simple, then it might look too easy for my project advisor and the judge panel…
P.S. If not AWK, feel free to give me a suggestion whether I can otherwise spend two months of my time by contributing something meaningful to toybox and making my professors happy at same time.
from toybox.
@amakukha I don't need Unicode support in Linux rescue.
I don't know what is linear bytecode.
from toybox.
stty, tr, and awk are all listed with their current state on https://landley.net/toybox/status.html with stty and tr being "partially implemented" and awk "not yet started".
from toybox.
Related Issues (20)
- install does not handle the creation of "drwxr-s---" correctly HOT 6
- xsendfile error checking
- add a useful common ip HOT 3
- Request diff -I/--ignore-matching-lines
- [Documentation] Differences to busybox? HOT 3
- [Feature request] Could a static-option be added to the menu interface? HOT 5
- [Documentation / Question] Can toybox be combined with e. g. mruby? HOT 9
- building a rootfs without a kernel HOT 10
- Most scripts use /bin/bash, which not all systems have. Use /usr/bin/env instead? HOT 11
- [Q] Can `bash` compatibility in toysh be turned off during build time and during run time? HOT 2
- building 0.8.11 with ssl and tls is broken HOT 15
- When running shell scripts, the process coredump.
- POSIX deviation: test arithmetic operands must support decimal only HOT 12
- find -size <number-without-suffix> not POSIX HOT 7
- Can you include oksh? HOT 1
- On incremental builds' reproducibility HOT 1
- ASAN failures in various file processing commands HOT 2
- [Feature Suggestion] progress meter (pv subcommand) HOT 5
- [FR] envsubst HOT 4
- getty: does not display issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toybox.