LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   A tool for extractin file names from *.torrent fies (https://www.linuxquestions.org/questions/linux-software-2/a-tool-for-extractin-file-names-from-%2A-torrent-fies-882466/)

igadoter 05-24-2011 11:05 AM

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.

crts 05-24-2011 11:52 AM

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.

igadoter 05-24-2011 01:44 PM

Great thanks. After I posted I found that the same can do btpd with
Code:

btinfo file.torrent


All times are GMT -5. The time now is 04:16 AM.