
Here is a bash snippet for filtering list output, based on a list of inputs.
params.contains() {
match="$1"; shift;
for arg; do [[ "$match" == "$arg" ]] && echo $arg; done;...
}
filter.matches() {
while read line; do
params.contains "$line" "$@";
done;
}
You pipe your first-list in to filter.matches, and you pass your second list as the parameters to the function.
For every item in both lists, the result is printed.
Provided by: Hypersoft-Systems: U-.S.-A.
Looking for that next-generation-shell-coding-tool?
Hypersoft-Systems: U.-S.-A. is looking for the same thing.
Bash has been around for a long time. Technology has evolved. We need a script interpreter that is designed to do what we can do with bash scripts, using modern coding languages.
...So we have project Krypton. Designed by a bash-hacker, java-script-engine-hacker, c-coding, assembler-coding; java-coding, java-script-scripting: freak; targeting the posix interface with streams and buffers using ES6 JavaScript.
You should definitely take this baby for a test-drive. Written in Java, no compiler needed.
to get started, download the project, and run (as root):
install/for-unix.sh
The script will prompt you for the Unix program and Library paths. If you set them to writable directories, command: "krypton" will be installed there.
To start an interactive session:
krypton -i;
To do a hello world from your system shell:
echo '"hello world"' | krypton --print-out
or
echo 'XPR.printLine("hello world")' | krypton
This project has reached a stage in development where feature requests are needed to asses the future development track.
Please provide input or requests through the project's issues tracker on github.
Why does `dd` not respond to USR1 signal on macOS/BSD systems by outputting progress but rather quits?
Hello Folks,
We received this message: How do I add a volume in a volume group using CLI?
Can someone in our community help out with this?
UNIX shared MITx on edX's post.
Get that CERT!
Be the reason, people can say: ALL SYSTEMS GO!
Earn a Professional Certificate in Systems Engineering from MIT. Impact the way you approach and solve engineering problems within your organization with this 4-course program by MIT and industry experts. Online program begins Jan 8, 2018.
UNIX shared Red Hat Developer Program's post.
Maybe wee need a new hat?
What's your color?
Are you ready to http full-colon double-slash and bash?
One of the best bash scripting examples ever written. Pseudo Object oriented programming; http 1.1 client example with gzip download compression.
This advanced example shows you how to open a url connection using the linux file system as the socket driver.
...Check this out, and let us know what you think. We have expert bash coders on hand UNIX to help you if you find some problems with the script, or you just want to know how something works.
[[ don't forget to share and save this baby! ]]
It's time for some: Shell Mail.
In your own words, opinion, facts, and or thoughts; describe here in the comments what you think a shell program should and should not do.
Here is an example from this Unixy project, of listing a directory treeview with a custom filtering command to act as a gateway for your file passthrough: pass/fail: testing. Its not super speedy, but it shows off some nice bash tricks that can be useful in a pinch.
The command typically accepts a single argument: directory. [press ctrl+c to escape if you accidently list a really deep tree such /]
small: bash ~22 lines
... See MoreHow to: "add a little *NIX/JS modular coding wisdom" to your web/client services and apps, in 3 simple steps using this Premium Coffee Shop: simple component scripting model.
1. new jCafe(....)
2. new jCafe(....)
3. repeat() while not done()
Evolved monkeys => Humans.
Evolved Linux(systemd) => Windows(svchost.exe) ?
Any thoughts? comments?
A quick look at the open source technologies that power Quakecon.























