LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2007, 03:06 PM   #1
garagestudios
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Rep: Reputation: 0
Determining Longest Title in a DVD


I am trying to write a program that processes DVDs. I need to determine what the longest title on a DVD is for the script. Does anyone know how to do this?

I have been looking at lsdvd and it will tell me what the longest Title is, but how to I take that output and set it as a variable?
 
Old 12-17-2007, 09:38 PM   #2
polymath69
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu, DSL, TRK, etc.
Posts: 18
Blog Entries: 3

Rep: Reputation: 3
$ longest=$(lsdvd | awk '/Longest/ {print $NF}')
$ echo $longest
01

Last edited by polymath69; 12-17-2007 at 09:41 PM. Reason: bugfix involving octal
 
  


Reply



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
Can't call method "title" on undefined title in Perl script scuzzman Programming 12 12-11-2009 04:40 AM
mplayer: which is the main dvd title noware Linux - Software 1 02-14-2007 01:11 AM
DVD won't play main title, only warnings, why? jon_k Linux - Software 1 06-03-2005 03:57 PM
Get video DVD title string for shell script? cheesekeeper Linux - Hardware 9 05-05-2005 05:53 AM
extracting single DVD title with vobcopy slimjim Linux - Software 1 03-26-2005 10:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:12 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