Sponsored Content
Full Discussion: Chemist Needs Help
Top Forums UNIX for Dummies Questions & Answers Chemist Needs Help Post 302250513 by gingburg on Thursday 23rd of October 2008 02:28:30 PM
Old 10-23-2008
Chemist Needs Help

Hello All I am a chemist and really dont know too much about programming but here goes.

Essentially I need to create a script that I can run which will do the following.
Create a file where the first four lines are a set of commands that are the same for all the files. E.g
ln1: comment
ln2: x y x
ln3: 101
ln4: 4 7

So the script should print those line into a new file first.

Then i need to make 4 columns.
The first I need to be 1.5 +0.1 100 times.
e.g.
1.5
1.6
1.7
1.8
1.9
etc.

The second column I need to be a column of data which I have used the command awk '/Done/ {print $2}' file
There will be 101 numbers extracted
Note: I would like Done and the number to be a variable to input in the command line.

The third and fourth are the same as the second except there will only be one point that I need to repeat 101 times.

If someone could help me that would be amazing. Also if someone is an expert I will pay them via paypal to help me occasionally. Thank you Lenny.

Last edited by gingburg; 10-23-2008 at 03:54 PM..
 

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

Chemist Needs Help part II

Hello friends, I was wondering if you can help me with probably a simple function to you all: the sample looks and has this format. I was wondering how I could extract the first and second column starting including the line 'E/N and Ko' and not stop until there are no more lines. Thank you for... (5 Replies)
Discussion started by: gingburg
5 Replies
STARTFLUXBOX(1) 						  Fluxbox Manual						   STARTFLUXBOX(1)

NAME
startfluxbox - start a fluxbox session SYNOPSIS
startfluxbox DESCRIPTION
startfluxbox is a script which runs the file ~/.fluxbox/startup If it doesn't exist it will be generated. startfluxbox should be started from your ~/.xinitrc if you use startx, or ~/.xsession if you run a display manager, like xdm. FILES
~/.fluxbox/startup This file contains all commands that should be executed before fluxbox is started. The initial file contains helpful comments for beginners. It also starts fluxbox. EXAMPLES
The default ~/.fluxbox/startup is as follows: #!/bin/sh # # fluxbox startup-script: # # Lines starting with a '#' are ignored. # Change your keymap: xmodmap "$HOME/.Xmodmap" # Applications you want to run with fluxbox. # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END. # # unclutter -idle 2 & # wmnd & # wmsmixer -w & # idesk & # And last but not least we start fluxbox. # Because it is the last app you have to run it with ''exec'' before it. exec fluxbox # or if you want to keep a log: # exec fluxbox -log "$fluxdir/log" If you need to start applications after fluxbox, you can change the exec fluxbox line above to something like this: exec fluxbox & fbpid=$! sleep 1 { xsetroot -cursor_name left_ptr -fg white -bg black & ipager & gkrellm2 & } & wait $fbpid So xsetroot, ipager, and gkrellm2 will all be started after fluxbox, after giving fluxbox 1 second to startup. For more details on what else you can do in this script, see sh(1), or the documentation for your shell. AUTHORS
The author of startfluxbox(1) is Han Boetes <han at fluxbox.org> This manpage was converted to asciidoc format by Jim Ramsay <i.am at jimramsay.com> for fluxbox-1.1.2 SEE ALSO
fluxbox(1) AUTHOR
Jim Ramsay <i.am@jimramsay.com> Author. startfluxbox.txt 28 October 2011 STARTFLUXBOX(1)
All times are GMT -4. The time now is 09:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy