Finding unmatched braces (brackets)

Posted by eldersnake on Aug 13, 2016 8:51 PM EDT
The Linux Rain; By Bob Mesibov
Mail this story
Print this story

Recently I was checking for unmatched braces in a big text file with nearly half a million lines (300+ MB). Was there a closing brace for every opening brace?

The text file was called 'beetle' and was actually a tab-separated table with each line divided into 77 fields. What I wanted to do was find any lines in which unmatched braces appeared within fields. Here's the command I used...

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer, GNU, Linux, Standards

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.