Sponsored Content
Top Forums UNIX for Dummies Questions & Answers cat to a file but retain header Post 302605883 by dodasajan on Friday 9th of March 2012 12:22:27 AM
Old 03-09-2012
hi bartus,
wil u please explain the concept of NR==FNR
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to retain file permissions during FTP on Solaris 5.9 ?

Hi All, I am trying to ftp a file : -rw-rw-rw- 1 oraclepbdw dba filename.txt from Machine A ( where umask is 022) to Machine B (umask 022) but the file changes to -rw-rw-r-- 1 ftpamle3 ftaml filename.txt Dur some constraints the group of the users on either side... (3 Replies)
Discussion started by: gauravsachan
3 Replies

2. UNIX for Dummies Questions & Answers

How to retain the header information of a file

Hi, I am using Bash shell to create some data and these data would be piped out to a file, let say output.txt. This output.txt I would like to add some extra header information such as comments, descriptions and general information on the text. I would like to know how could I maintain... (0 Replies)
Discussion started by: ahjiefreak
0 Replies

3. Linux

Reading the header of a tar file(posix header)

say i have these many file in a directory named exam. 1)/exam/newfolder/link.txt. 2)/exam/newfolder1/ and i create a tar say exam.tar well the problem is, when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories. on the... (2 Replies)
Discussion started by: Tanvirk
2 Replies

4. Shell Programming and Scripting

Retain file permissions when saving .sh file from internet [OS X]

Hello. I have written a bash script that I am sharing with an OS X community I am a member of. The purpose of the script is to execute a series of commands for members without them having to get involved with Terminal, as it can be daunting for those with no experience of it at all. I have renamed... (4 Replies)
Discussion started by: baza210
4 Replies

5. UNIX for Advanced & Expert Users

Retain Only specific number of file in Directory

I want to retain specific number of backup files in a directory.for example i want to retain only two latest backup file in backup directory. If number of backup files is greater than this policy that it will delete oldest file.Please Tell me whether this is possible or not. (2 Replies)
Discussion started by: ranvijaidba
2 Replies

6. Shell Programming and Scripting

Retain File Timestamp

There are directories of files that I have to run the dos2ux command on to get ride of the carriage return characters. Easy enough, but I have to retain the original timestamps on the files. I am thinking that I am going to have to strip off the timestamp for each file and convert it to unix time... (3 Replies)
Discussion started by: scotbuff
3 Replies

7. Shell Programming and Scripting

retain last 1000 line in a file

I have large file with around 100k+ lines. I wanted to retain only the last 100 lines in that file. One way i thought was using tail -1000 filename > filename1 mv filename1 filename But there should be a better solution.. Is there a way I can use sed or any such command to change the... (9 Replies)
Discussion started by: nss280
9 Replies

8. UNIX for Dummies Questions & Answers

openssl dgst cat header problem

I am trying to run an old script to modify an image file with a modified header to bypass the md5 check but it comes up with an error message. The image file is for use on a Expressgate SSD so that I can add sqx files to it. This is a link from where I got the script:-... (3 Replies)
Discussion started by: r1speedyrider
3 Replies

9. Shell Programming and Scripting

awk to retain header lines in output

The awk below executes and produces the current output, which is correct, except I can not seem to include the header lines # and ## in the output as well. I tried adding !/^#/ thinking that it would skip the lines with # and output them but the entire file prints as is. Thank you :). file ... (8 Replies)
Discussion started by: cmccabe
8 Replies

10. Shell Programming and Scripting

Find header in a text file and prepend it to all lines until another header is found

I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty. I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies
model-builder(1)					      General Commands Manual						  model-builder(1)

NAME
model-builder - graphical ODE simulator DESCRIPTION
Model Builder is a graphical ODE simulator. It allows the user to define, simulate and analyze arbitrary systems of Ordinary Diferential Equations. Features * Equation-based model definition. No need to learn to program to define and run your models. Just type-in you differential equations * Graphic output of simulation. You can save the graphics in the most common formats: png, svg, pdf, etc. * Spreadsheet view of the results. From the spreadsheet you can make customized plots from your variables. You can also export your data to a .csv text file * Latex rendering of your system of equations. Check you equation in clear mathematical notation. * Intuitive graphical interface. * Uncertainty analysis module. Implements a straightforward interface for the Bayesian Melding method. * Sensitivity analysis. Find out how sensitive your model is to variations in parameter values. GETTING STARTED
The best way to get started with ModelBuilder is open one of the models included with the distribution and look at it . Yes, it's that simple. So, if you have already intalled it, start Model-Builder by typing in the console: $ PyMB followed by <enter>. This will start Model-Buider . From now on I will assume that you know what a system of differential equations is, otherwise you probably should not be using Model-Builder. The larger box on the main frame, labeled "Differential Equations" is where we are going to start. On this text box you will write your system of equations (or a single equation) The syntax is that of python for mathematical expressions and functions and there are some conventions also, which I will explain below: * First of all, Model-Builder expects only the right-hand-side (RHS) of you equations to be present one per line in the equations box. The LHS is assumed to be of the form dy(t)/dt, dy_i/dt where i is an index to the the number of equations in your model. This number i will be used to refer to the state variables of the model ( y[i] ). This index, i, MUST start at 0, so if your model has 3 equations, their state variables will be y[0], y[1], and y[2] . * Another convention is the reference to model parameters. Any number of parameters may be included in the equations by the using this nomeclature: p[0], p[1], and so on. These parameter must the be specified one per line and in ascending order in the "Parameters" box. So the first line would be the definition of p[0], the second of p[1] and so forth. * The mathematical expressions that make up the equations and the parameters may include any function of the numpy python module. This allows for the easy contruction of models with a level of sophistication higher than that of a simple algebraic expression. Time may be referenced in the equations or parameter expressions by the variable "t". So if you want a parameter that is a function of time, you can simply write in the parameter box. * The user familiar with python will also be able to include more advanced structures in the model specification, such as Lambda functions for instance. Well, with that out of the way, it remains to explain the rest of the interface which is pretty much self-explanatory: * The initial values box should include one number for each equation (line) in the equations box. The numbers should be separated by spaces. * The start time is the time value at which the equations begin to be evaluated. The values of the state variables at this point in time are those specified in the initial conditions. * End time: You can figure this one out... * Time step: this is the time-step used in reporting the output of the simulation. The actual time step used by the numeric integrator is variable and chosen on the fly. Its normally much finer that what you specify here. * Critical time steps. Most user wil leave this box empty. * First Step: The size of the first step. Leave at 0 for automatic determination. * Min Step Size and Max Step Size: Respectively the minimum and maximum value for step sizes as chosen by variable step size algorithm. Leave at zero for automatic determination. * Full Output check box: If this box is checked a lot of useful information about the integration is included in the output. Check out the output spreadsheet to see what they are. * Show convergence message: if this box is checked, ModelBuilder will print "Integration successful" to the console after the integration is completed. Useful for debugging purposes only. Uncheck if you are doing uncertainty analyses. as it will slow things down. * Once you are done entering the necessary information for you model, Just press the start button to calculate your model. Enjoy! HOMEPAGE
http://model-builder.sourceforge.net/ AUTHOR
This manual page was written by Varun Hiremath <varunhiremath@gmail.com>, for the Debian project (but may be used by others). December 4, 2006 model-builder(1)
All times are GMT -4. The time now is 05:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy