LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2011, 11:05 AM   #1
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
A tool for extractin file names from *.torrent fies


Hi,
I need to know file names in torrent without opening torrent client. Know and extract for further actions.
 
Old 05-24-2011, 11:52 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

I assume you want to do this from CLI. The information can be easily extracted with ctorrent.
Code:
ctorrent -x file.torrent
You can further parse the output with sed/awk/perl to extract the info you need. I do not recommend to parse the *.torrent file directly with one of the above tools since it is "semi-binary".

Hope this helps.
 
1 members found this post helpful.
Old 05-24-2011, 01:44 PM   #3
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717

Original Poster
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Great thanks. After I posted I found that the same can do btpd with
Code:
btinfo file.torrent
 
  


Reply

Tags
file, names, torrent



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: bash file names are different than openbox trash file names whatthefunk Programming 4 02-15-2011 01:52 AM
LXer: Torrent Search - Torrent searching application for the Gnome desktop environment LXer Syndicated Linux News 0 08-18-2010 08:20 AM
[SOLVED] How to changing same file names by their directory names? bayaraa_u Linux - General 3 04-09-2010 08:26 AM
download SUSE torrent file, now how do I use the file? mhg Linux - Newbie 3 09-14-2008 11:33 PM
how to extract .torrent file??? ZAMO Linux - General 1 05-30-2007 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration