Question

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.
0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Linux Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums