public inbox for blinux-list@redhat.com
 help / color / mirror / Atom feed
* script for easier transmission list output
@  blinux-list
  0 siblings, 0 replies; only message in thread
From: blinux-list @  UTC (permalink / raw)


I have a little script here that prints out the results of
transmission-remote -l
in a slightly easier format to read. The script looks like this:
transmission-remote localhost:9091 -l | awk -F ' +' 'NR>1 && $1 != "Sum:"{name="";for (i=11; i<NF; i++) { name = name $i " "}; printf "%d: %s - %s - %s - %s\n", $2, name, $4, $3, $9}'
The problem is that depending on spacing some of the names don't print or are truncated. I don't know enough about awk and its friends to reliably fix it. Can any of you help?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~ UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 script for easier transmission list output blinux-list

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).