Sponsored Content
Full Discussion: Looping through input/output
Top Forums UNIX for Beginners Questions & Answers Looping through input/output Post 302979961 by wisecracker on Monday 22nd of August 2016 11:38:12 AM
Old 08-22-2016
Quote:
Originally Posted by zajtat
I was going through the post again to look over things and have double-checked that the perl script works fine with files that have numbers as names. There are no bugs in perl script and there has never been such a problem, that's why I've answered a question about the name of the output file that it does not matter. I did try to provide clear information and answer all the questions to the best of my abilities and I apologise that it was not understandable. Thank you all of your time and help once more!
Apologies for any typos.

But was it tested with a file named 0, zero? Looking at your alternative code there is NO 0, zero, file generated at all; your files start with the number 1.

We are not trying to belittle you, just glean as much information as possible to satisfy your requirements. You have no idea how difficult some problems are for volunteers on here, and remember we ARE volunteers, to solve with limited or incorrect information. Until late into this thread no-one even knew about a Perl script and the error report pointed straight to an unknown script at that time. If we had the Perl script to view the Perl experts on here would have probably solved your problem without ANY errors from either the Perl or the Shell scripts well inside in less than 20 odd replies.

There can't be anything so secret about your Perl script that you cannot show it to us.

Your Perl script might need a specific _library_/module and that module may be causing this error, who knows, we don't, as we do not have this script to view.

Please oh please, for everyones' sanity, give as much information as possible so that the big guns on here, who give their time for free, can supply you with a solution ASAP.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using Output from one command as input to another

This site has been very helpful thus far.. I thank you all in advance for sharing the knowledge. Let me get to it. I am trying to write a very small script to take away from the boredom of doing the same thing over and over. Everynow and again I have to get the hex value of a file using a... (2 Replies)
Discussion started by: BkontheShell718
2 Replies

2. UNIX for Advanced & Expert Users

input/Output settings

How can we view all the input/output settings of unix environment for a session (6 Replies)
Discussion started by: paritoshc
6 Replies

3. Shell Programming and Scripting

input -output file

Hi, I am having an Input file .which is having a list of names. comapring with our database , needs to write the out put in file called output.txt , format should be name--> country--->phone number could you please help me.. thanks in advance (7 Replies)
Discussion started by: hegdeshashi
7 Replies

4. Shell Programming and Scripting

perl: looping through the output of a 'system' command

Hi there could anybody point me in the right direction when it comes to looping through the output of a system command in perl (i.e. df -k) doing a test against each line to see if it matches? for example if i have a df -k output like this and I wanted to grab the lines that matched "sda" or... (3 Replies)
Discussion started by: rethink
3 Replies

5. Shell Programming and Scripting

Dynamic output file generation using a input text file with predefined output format

Hi, I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format. Example: File.txt AP|{SSHA}VEEg42CNCghUnGhCVg== APVG3|{SSHA}XK|"password" AP3|{SSHA}XK|"This is test" .... etc --------- test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies

6. Solaris

SVM Solaris 8 Problem. Metastat output looping

Hi friends, I'm newbie to SVM. Just wanna try installed it on one of our server (to do mirroring for disk0 and disk1) but i think im lost until now. :( the steps i've taken is as below:- 1.prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2 2.metadb -a -c 3 -f c1t0d0s7... (3 Replies)
Discussion started by: kronenose
3 Replies

7. Shell Programming and Scripting

Looping through for user input

Legends, I want to remain in the script until user passes the correct name. I had tried the below code; but it didn't work out. Please help echo "\nPlease enter the source system: \c" while read SYSTEM_NAME do if ]; then echo "\nMaking $SYSTEM_NAME as source system for particular... (5 Replies)
Discussion started by: sdosanjh
5 Replies

8. Shell Programming and Scripting

looping and saving output of each line separately

I have been trying this program for a long time. I am trying to read a file named "odon" line by line; read the first line, send it to do a command saved in a file "perm", once the first line has finished going through the content of the file perm, the result is saved with the number of the line.... (17 Replies)
Discussion started by: iconig
17 Replies

9. UNIX for Dummies Questions & Answers

Looping through the contents of array for output name

Hi all, I am trying to loop through the string contents of an array, to add it during the saving of the output files. I am trying this code to print each column and save it to unique file name, but it doesn't work. Thanks for any help. fnam=(japan usa uk) alldata.dat contained sample data... (1 Reply)
Discussion started by: ida1215
1 Replies

10. Shell Programming and Scripting

Looping over output of 'ls'

Hi, I have some output from 'ls' command and I want to loop over the output in a bash script. What would be a good way to go about it? For example, if the output of the ls command gives me 'prefix1 prefix2 prefix3', how can I set a loop that will iterate over these? many thanks! (5 Replies)
Discussion started by: pc2001
5 Replies
TIFFUTIL(1)						    BSD General Commands Manual 					       TIFFUTIL(1)

NAME
tiffutil - manipulates tiff files SYNOPSIS
tiffutil <option> [<arguments>] [-out <outfile>] DESCRIPTION
tiffutil lets you manipulate TIFF files. The list of options (also available by running the program without any options) follows: tiffutil -none infile [-out outfile] -lzw infile [-out outfile] -packbits infile [-out outfile] -cat infile1 [infile2 ...] [-out outfile] -catnosizecheck infile1 [infile2 ...] [-out outfile] -cathidpicheck infile1 [infile2 ...] [-out outfile] -extract num infile [-out outfile] -info infile -verboseinfo infile -dump infile -none, -lzw, and -packbits options specify the compression format to be applied to the images in the TIFF file. -none specifies no compres- sion; -packbits specifies PackBits compression; -lzw specifies standard Lempel-Ziv & Welch compression (no prediction scheme). -cat allows combining multiple TIFF files into one. The images are copied without any change in tag values. If the real sizes (pixel size divided by dpi) of the images being combined are not the same, a warning will be generated. This makes sure that NSImage can successfully choose the right size image out of the generated TIFF file. Use -catnosizecheck to bypass the size check. -cathidpicheck can be used to write an output file conforming to Apple's guidelines for resolution independent bitmap images, and will gener- ate warnings if the supplied images do not have the recommended size relationship. For best results, ensure that the larger file has a file- name of the form <basename>@2x.png. -extract allows extracting an individual image from a TIFF file; specify num = 0 for the first image in the file. -info prints information about TIFF images. -verboseinfo is the same, except most of the tables are displayed in full. -dump simply lists all of the tags in the file without trying to interpret them; it is handy when trying to figure out why a TIFF file won't load or display prop- erly. For options which write images out, the output goes to "out.tiff" unless an output file name is specified after a -out keyword. This keyword and the file must be the last items on the command line. -info, -verboseinfo, and -dump write their output to the standard output. If there are multiple images in a TIFF file the specified operation will be performed on all of them. SECURITY NOTE: This version of tiffutil SHOULD NOT be used with untrusted files. CREDITS
Parts of tiffutil were based on the freely distributable "tiffcp" and "tiffinfo" programs written by Sam Leffler and made available with v3.0 of his excellent TIFF library. The TIFF library and the tiffcp and tiffinfo programs are: Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler Copyright (c) 1991, 1992 Silicon Graphics, Inc. Mac OS X September 2, 2010 Mac OS X
All times are GMT -4. The time now is 01:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy