![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| scp shell scripting question | Segwar | Shell Programming and Scripting | 1 | 04-03-2008 11:20 AM |
| Shell Scripting Question | vijaykrc | UNIX for Dummies Questions & Answers | 8 | 01-14-2008 11:08 AM |
| basic shell scripting question | convenientstore | Shell Programming and Scripting | 3 | 05-27-2007 10:21 PM |
| shell scripting newbie question | jazzman | UNIX for Dummies Questions & Answers | 2 | 12-29-2006 09:33 AM |
| Shell Scripting Question | tech2040 | Shell Programming and Scripting | 3 | 08-10-2005 01:32 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Shell Scripting Question
To anyone who can help greetings,
I am a beginner at Unix shell scripting and am taking a class. The assignment 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 commandline tool "itstat" and therefore do not know how to create a proper script. Any assistance will be greatly appreciated. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|