Sponsored Content
Full Discussion: Looping through input/output
Top Forums UNIX for Beginners Questions & Answers Looping through input/output Post 302979877 by zajtat on Saturday 20th of August 2016 06:44:52 PM
Old 08-20-2016
Hi,

The syntax for the combining.executable is correct and it would not put the data from infile3 in front of the infile2 in outfile2. The excitable will add columns from infile3 to the end of outfile1. I've used the syntax to illustrate that the outcome of one command should be the input for the other.

I'm sorry, but your interpretation of the commands is not correct. We do not need to keep outfile1 through outfile6000, we just need outfile1 to be input for the executable in order to generate outfile2, then outfile1 can be deleted. Outfile2 will be the input for the executable to generate outfile3. Then outfile2 can be deleted and outfile3 can be used as input to generate outfile4, etc.

I may not need a master file or the loop, it was just the way I tried to solve the problem. But it does not necessarily have to be the case. The point is that I need to run a program (executable) where the output of step1 is the input of step2, and the output of step2 is the input for step 3, etc.

The format of my input files is text. They are the only ones in the folder.
The name of the output files does not matter.
 

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
KLATEXFORMULA(1)					      General Commands Manual						  KLATEXFORMULA(1)

NAME
klatexformula -- Gui to generate pictures from latex formulas. SYNOPSIS
klatexformula [-i,--input file] [-l,--latexinput expression ] [-o,--output file ] [-F,--format format] [-f,--fgcolor '#xxxxxx'] [-b,--bgcolor '#xxxxxx'] [-X,--dpi N] [-m,--mathmode expression containing '...'] [-p,--preamble LaTeX code] [-q,--quiet] [--lbor- deroffset N] [--tborderoffset N] [--rborderoffset N] [--bborderoffset N] [--tempdir /path/to/temp/dir] [--latex latex executable] [--dvips dvips executable] [--gs gs executable] [--epstopdf epstopdf executable] [-h,--help] [-V,--version] [-Q,--qtoption qt-option] DESCRIPTION
This manual page documents briefly the klatexformula program. klatexformula provides a GUI to easily get an image from a LaTeX formula or equation. It can alos be used via commandline using the options below. OPTIONS
-i,--input file Specifies a file to read latex input from. -l,--latexinput expression Specifies the LaTeX code of an equation to render. -o,--output file Specifies to write the output image (obtained from equation given by --input or --latexinput) to file or standard output. -F,--format format Specifies the format the output should be written in. By default, the format is guessed from file name extension and defaults to PNG. -f,--fgcolor '#xxxxxx' Specifies a color (in web #RRGGBB hex format) to use for foreground color. Don't forget to escape the '#' to prevent the shell from interpreting it as a comment. -b,--bgcolor '#xxxxxx' Specifies a color (in web #RRGGBB hex format, or '-' for transparent) to use as background color (defaults to transparent). -X,--dpi N Use N dots per inch (DPI) when converting latex output to image. Defaults to 1200 (high-resolution image). -m,--mathmode expression containing '...' Specifies which LaTeX math mode to use, if any. The termument to this option is any string containing "...", which will be replaced by the equation itself. Defaults to "[ ... ]" -p,--preamble LaTeX code Any LaTeX code that will be inserted before egin{document}. Useful for including custom packages with usepackage{...}. -q,--quiet Disable console output of warnings and errors. --lborderoffset N,--tborderoffset N,--rborderoffset N,--bborderoffset N Include a mtermin of N postscript points on left, top, right, or bottom mtermin respectively. --tempdir /path/to/temp/dir Specify the directory in which KLatexFormula will write temporary files. Defaults to a system-specific temporary directory like "/tmp/". --latex latex executable --dvips dvips executable --gs gs executable --epstopdf epstopdf executable Specifiy the executable for latex, dvips, gs or epstopdf. By default, they are searched for in $PATH and/or in common system directories. -h,--help Display this help text and exit. -V,--version Display KLatexFormula version information and exit. -Q,--qtoption qt-option Specify a Qt-Specific option. For example, to launch KLatexFormula in Plastique GUI style, use: klatexformula --qtop- tion='-style=Plastique' Note that if qt-option begins with a '-', then it must be appended to the long '--qtoption=' syntax with the equal sign. SEE ALSO
latex (1), ghostview (1), http://klatexformula.sourceforge.net/ AUTHOR
This manual page was written by Tobias Winchen tobias.winchen@physik.rwth-aachen.de for the Debian system (and may be used by others) based on the upstream documentation by Phillipe Faist. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. KLATEXFORMULA(1)
All times are GMT -4. The time now is 04:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy