Linux

Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!

Question

Locked

Unix Basic Command

By bunbbb ·
Tags: Linux
To anyone who can help greetings,
I am a beginner at Unix shell scripting and am researching file processing.
The question I have can be done in c, however, this defeats the purpose
my question is as follows:

use a command-line tool named "itstat" which will display the resolution of an image file and some other lines of information. It accepts a list of image files as arguments (i.e., "itstat FILE1 FILE2 ..."), and its output looks like this:
File: pet_mocap_comp_v1_tvfa_vd8.1713.jpg
Resolution: 720 x 547
Channels: 3
Channel Types: RGB without Alpha Bit
Depth: 8
You are in a directory with 50 randomly named and sized images, and you want to know quickly the resolution of each file. Write a script that takes no arguments and uses itstat to print the filename and resolution of each file in the current working directory in the following format:
g50_comp_v6_2kfa_lg10.0310.rla: 2048 x 1556 g50_comp_v6_2kfa_lg10.0610.rla: 2048 x 1556 g50_comp_v6_2kfa_lg10.0710.rla: 2048 x 1556


I cannot find the command line tool "itstat" and therefore do not know how to create a proper script.

Any assistance will be greatly appreciated.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums