Sheltac 0 Newbie Poster

Hi everyone!

I'm trying to write up a linux shell script to automatize the playing of video file collections.
Basically, I want to be able to make a script so that, while it's sitting on a specific folder, when I run it, it plays the first unwatched file in the folder.

The way I can see this problem solved is by doing implementing the following algorithm:
1. Read a file, which contains only a number, n.
2. grep ls into another file, and determine the name of the file in the n position.
3. Increment n and write it to the file.
4. use the vlc command to play the file.

I think this is rather simple, and quite easy for someone with enough knowledge of the scripting language itself.
By the way, if anyone knows of any good manuals on shell scripting, I'd really appreciate it!

:D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.