I lost my mind and …

… coded a recursive parallel FBP mergesort, in bash using named pipes:


Also, and more usefully, I learned how to read a line correctly in bash:

IFS= read -r line

Without -r, it processes escaped characters such as \t and \n!

Without IFS=, it strips leading space.

All in all, another couple reasons not to write code in bash!  haha

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s