• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux Txr Download

Txr

November 2, 2009
An efficient utility is designed for easy text extraction using pattern matching technology. It offers convenience, accuracy and saves time.
Version 020
License BSD License
Platform Linux
Supported Languages English
Homepage common-lisp.net
Developed by Kaz Kylheku
Introducing Txr, the interpreter for the txr query language, perfect for text extraction tasks. With Txr, you can extract pieces of text that are bound to variables in the query and output them as raw bindings or substitute them into a template-driven report.

While tools like sed, awk, and perl support pattern matching with regular expressions, they don't implement a whole-input pattern matching paradigm like Txr. Sed is limited to basic regexp filtering and struggles with text extraction tasks that span multiple lines. Awk and Perl are programming languages used for complex text extraction, but often expressed as algorithms. A clearer, more concise Txr query can typically achieve the same result.

To develop a Txr query, simply start with sample data. The raw data is likely already a Txr query that matches itself after some character escaping. Identify the relevant variable parts and generalize the query to work for all instances of the data.

To demonstrate, let's look at a practical example. Have you ever struggled with the ps utility for listing processes? With Txr, we can easily create a ps utility relying on the /proc filesystem on Linux.

Check out the example query below for listing processes:

@(next)$/proc
@(collect) @{process /[0-9]+/}
@(next)/proc/@process/status Name:@ @name State:@ @state (@state_desc)
@(skip) Tgid:@ @tgid Pid:@ @proc_id PPid:@ @parent_id
@(bind pid proc_id) @(bind ppid parent_id)
@(skip) Uid:@ @uid@ @/.*/ Gid:@ @gid@ @/.*/
@(next)$/proc/@process/task
@(collect) @thr
@(end)
@(bind thread thr)
@(some)
@(next)/etc/passwd
@(skip) @user:@pw:@uid:@/.*/
@(or)
@(bind user uid)
@(end)
@(end)
@(output) USER PID PPID S NAME THREADS
@(repeat) @{user 8} @{proc_id -5} @{parent_id -5} @state @{name 16}
@(rep)@thr, @(first)@(last)@thr@(single)~@(end)
@(end)

The Txr query processes numeric entries under the /proc directory, reads the /proc/< pid >/status file of each process, and the list of threads under /proc/< pid >/tasks. The user IDs are resolved by matching through the /etc/passwd file.

With Txr, you can finally achieve advanced text extraction tasks and produce powerful reports with ease. Give it a try today!
What's New

Version 020: N/A

Free Download 116K
404
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    92
  4. SlideMap 1.2.2
    82
  5. CherryTV 0.1
    81
  6. porm r2
    79
  7. Swiftfox 3.0b5pre-2
    77
  8. Java Games 1.0
    76
  9. Clewarecontrol 0.8
    75
  10. fuseftp 0.8
    74

Related Downloads

KDE Simple Programming Tutorial
The KDE Simple Programming Tutorial is a guide to create a KDE ...
ClanBomber2
ClanBomber is a multiplayer game that resembles Bomberman and is available for ...
Rad SFTP Applet
Rad SFTP Applet is a secure file transfer protocol (SFTP) software that ...
amarok-lcdproc
Amarok-lcdproc is a script designed for Amarok, displaying metadata on an LCD ...
ImgBrowz0r
This PHP class allows users to showcase image galleries from files saved ...
Games::Worms
This software is an Alife simulator designed for Conway/Patterson/Beeler worms and other ...
WebClient for SVN
SVN Web Client is a web interface for Subversion repository that provides ...
XPasta
XPasta is a script package that facilitates the management of folders by ...
Nagcon
Nagcon is a console app that interfaces with Nagios for a summary ...
MoSSHe
MoSSHe is a lightweight, uncomplicated software that offers server monitoring solutions.
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.