TAB2GRAPH(1)

πŸ’… TAB2GRAPH πŸ’…

okay so bestie, welcome to tab2graph β€” a little Perl script from the User Contributed Perl Documentation section of the manual, and we are literally about to turn your boring spreadsheet vibes into a whole graph. yes. a graph. i'm obsessed already. πŸ¦‹


✨ NAME ✨

tab2graph β€” turn tabular data into a graph. that's it. that's the whole pitch. πŸŽ€


🌸 SYNOPSIS 🌸

so you run it like this, periodt:

tab2graph [options] file.tab

and here are all the options, no skips, no gaps, we're doing the whole list because i love you:

  • -c, --color β€” adds some color to the output, which, yes ma'am 🌈 (the default is white, so sad, so plain).
  • -d, --directed β€” makes the graph directed. default is not directed, so like, keep that in mind bestie.
  • -l, --layout β€” picks the GraphViz layout. your choices are dot, neato, twopi, circo, and fdp. and the default? circo. iconic choice honestly.
  • -f, --fields β€” restricts it to a set of fields in the first row. you're in charge of what gets shown πŸ’…
  • -n, --numbers β€” shows the numbers. default is not showing them, so if you want the numbers you gotta ask, iykyk.
  • -o, --out β€” name of the output file. default is STDOUT, aka it just prints at you.
  • --format β€” the output format. default is PNG πŸ–ΌοΈ
  • --fs=x β€” use x as the field separator. default is tab.
  • --rs=x β€” use x as the record separator. default is newline.
  • --help β€” shows a brief help message and quits. short and sweet πŸŽ€
  • --man β€” shows the full documentation. that's this. hi. you're here. 🫢

🧚 DESCRIPTION 🧚

so what it does is: turns tabular data into a graph, using GraphViz. that's the whole thing. and per the manpage itself: this may or may not be useful. 😭 no cap, that's the actual disclaimer. the tool is out here with main character energy and zero promises. we respect it.


πŸ’œ SEE ALSO πŸ’œ

go look at these too, they're the supporting cast:

  • Text::RecordParser
  • GraphViz

πŸ‘‘ AUTHOR πŸ‘‘

Ken Youens-Clark <kclark@cpan.org>. thank you ken, legend behavior. 🫑


Copyright (C) 2009-10 Ken Youens-Clark. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

🚨 bestie read that again: no warranty, fr fr. it's GPL v2, it's free software, but it comes with absolutely zero promises. don't come for ken if your graph looks wild. πŸ’€

and that's the whole page! this one's from perl v5.32.1, dated 2022-06-01 β€” so like, a little vintage, but she still slays. go make some graphs, bestie. πŸ’–βœ¨

πŸ“¦ where this page comes from