04 February 2018

Randomized addition worksheets for kiddos using Bash Pipelines

Following up on a prior randomized worksheet for reading, here's a way to generate as many simple addition worksheets as you care to print:

#!/bin/bash
# Print a US letter page of addition problems using numbers 0 through 10.
(
    for i in $(seq 1 26); do
        printf "%2d %s %2d = \n" "$((RANDOM % 11))" "+" "$((RANDOM % 11))"
    done
) \
| column -nxc 36 \
| sed G \
| head -n -1 \
| a2ps -1 --chars-per-line=32 --no-header --borders=no

34 comments:

rakibhr said...
This comment has been removed by a blog administrator.
rakibhr said...
This comment has been removed by a blog administrator.
rakibhr said...
This comment has been removed by a blog administrator.
John lee said...
This comment has been removed by a blog administrator.
thenortonsetup.com said...
This comment has been removed by a blog administrator.
Norton Product Key said...
This comment has been removed by a blog administrator.
wwwnortoncomsetup.com said...
This comment has been removed by a blog administrator.
Mcafee Antivirus Setup said...
This comment has been removed by a blog administrator.
Norton Setup said...
This comment has been removed by a blog administrator.
Norton Setup said...
This comment has been removed by a blog administrator.
Easy to Fix Office Setup said...
This comment has been removed by a blog administrator.
McAfee-Antivirus All Protection Solution said...
This comment has been removed by a blog administrator.
antivirusguard said...
This comment has been removed by a blog administrator.
McAfee-Antivirus All Protection Solution said...
This comment has been removed by a blog administrator.
Quickbooks Phone Number said...
This comment has been removed by a blog administrator.
Mcafee activate protection said...
This comment has been removed by a blog administrator.
How to protect your system said...
This comment has been removed by a blog administrator.
Quickbooks Phone Number said...
This comment has been removed by a blog administrator.
John Shaw said...

Good Work, i like the way you describe this topic, keep going. i would like to share some useful security links here please go through.

mcafee.com/activate
www.mcafee.com/activate

James Tech said...

Great information ! I thankful to author of this blog who sharing such a useful information, I also subscribe your blog for all future post. I have also share some useful links here.
Mcafee.com/activate
www.Mcafee.com/activate

James Tech said...

Great information ! I thankful to author of this blog who sharing such a useful information, I also subscribe your blog for all future post. I have also share some useful links here.
Mcafee.com/activate
www.Mcafee.com/activate

thenortonsetup.com said...

It is a very helpful and informative blog post. I would like to thank to you for providing such information I have also have a website providing very good information.

norton.com/setup
www.norton.com/setup

mcafee.com/activate said...

I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.


office.com/setup
www.office.com/setup
office setup
mcafee.com/activate
www.mcafee.com/activate
bitcoin login

RentaPC: Laptop Rental | Macbooks | Desktops @Lowest Price Delhi | India said...


NICE BLOG
That's Great & Giving so much information after reading your blog.For RentaPC : Laptop on Rent | PC | Tablets | Macbooks
Great thanks to you
Laptop on Rent

sanjay said...
This comment has been removed by the author.
sanjay said...

Convoque is a complete inbound/outbound call center solutions that consists of Agent Interface, Admin/Manager Interface and a highly customizable process logic capable of handling various PSTN, PRI, ISDN, VOIP trunking, and connecting agents via Soft SIP Phone, IP Phone (Hard Sip Phone), PBX, IP-PBX, IAX, VOIP or even on traditional PSTN and Mobile Networks using our state of the art computer less call center technology.

Herman Herrington said...

There are numerous approaches to watch Netflix on your TV – all you require is a gadget with the Netflix application! The Netflix application is accessible on many Smart TVs, game consoles, streaming media players, set-top boxes, and Blu-beam players. You can discover more data about viable gadgets and brands at netflix.com/activate, and to enroll visit www.netflix.com/activate or read on to check whether your TV is now Netflix-prepared.

www.netflix.com register
www.netflix.com/redeem
netflix activation code
netflix.com.au/redeem
netflix.com/tv8

amazon.com/mytv said...

Great information amazon.com/mytv

primevideo.com/mytv said...

Thanks For Sharing Such An Amazing Post Enjoyed Reading it.

Regards

www.primevideo.com/mytv
www.primevideo/mytv
www.primevideo.com/mytv
www.amazon.com/mytv
amazon.com/mytv
amazon.com/mytv

ava clark said...


Canon Printers are one among the simplest printers within the industry. The highly versatile beat one printer has features that make them stand out among others
canon.con/ijsetup | canon.com/ijsetup

ava clark said...

123.hp.com/setup | norton.com/setup norton.com/setup | canon.com/ijsetup

ava clark said...

Amazon is one of the biggest eCommerce websites which spreads its business all over the world under the leadership of the richest man on the richest earth Jeff Bezos. amazon.com/code | www.amazon.com/code

ava clark said...

microsoft365.com/setup | microsoft365.com/setup |
microsoft365.com/setup | microsoft365.com/setup

digital marketing company in dehradun said...

Great content & thanks for sharing with best digital marketing company in dehradun

Subscribe Subscribe to The Return of Agent Zlerich