XUTools: UNIX commands for processing next-generation structured text

  • Authors:
  • Gabriel A. Weaver;Sean W. Smith

  • Affiliations:
  • Dartmouth College;Dartmouth College

  • Venue:
  • lisa'12 Proceedings of the 26th international conference on Large Installation System Administration: strategies, tools, and techniques
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Traditional Unix tools operate on sequences of characters, bytes, fields, lines, and files. However, modern practitioners often want to manipulate files in terms of a variety of language-specific constructs--C functions, Cisco IOS interface blocks, and XML elements, to name a few. These language-specific structures quite often lie beyond the regular languages upon which Unix text-processing tools can practically compute. In this paper, we propose eXtended Unix text-processing tools (xutools) and present implementations that enable practitioners to extract (xugrep), count (xuwc), and compare (xudiff) texts in terms of language-specific structures. We motivate, design, and evaluate our tools around real-world use cases from network and system administrators, security consultants, and software engineers from a variety of domains including the power grid, healthcare, and education.