Sponsored Content
Full Discussion: multiple action!
Top Forums Shell Programming and Scripting multiple action! Post 302634519 by oreka18 on Thursday 3rd of May 2012 12:31:59 PM
Old 05-03-2012
multiple action!

lets explain it easy by showing the initial file and desired file:
I've a file such this that contains:
initial_file:
Code:
31/12/2011 23:46:08    38.6762    43.689    14.16    Ml 3.1     
                                                                                                                 
TypeID    GroupID    EventID    BulletinID    CodeID    Station    Component    Phase    Quality    Day    Month    Year    Hour    Minute    Second    Residual    Polarity    Hypo    Weight    Duration    Amplitude Type    Amplitude    Period    Md    Ml    Mb    Ms    Mw    Distance    Azimuth 
1    0    2.01112E+13    1325375174    52    TVAN    Z    P    I    31    12    2011    23    46    13.8469    -0.27    0    1    0    0    C    25253.24    0.18    0    3.4    0    0    0    30.01    235.7882 
1    0    2.01112E+13    1325375174    290    VMUR    Z    P    I    31    12    2011    23    46    13.9996    -1.99    0    1    0    0    C    3182.026    0.13    0    3.2    0    0    0    36.28    343.7596 
1    0    2.01112E+13    1325375178    331    CLDR    Z    P    I    31    12    2011    23    46    17.9258    -0.27    0    1

desired_file:
Code:
31/12/2011 23:46:08 38.6762 43.689 14.16 Ml 3.1     
1    0    2.01112E+13    1325375174    52    TVAN    Z    P    I    31    12    2011    23    46    13.8469    -0.27    0    1    0    0    C    25253.24    0.18    0    3.4    0    0    0    30.01    235.7882 
1    0    2.01112E+13    1325375174    290    VMUR    Z    P    I    31    12    2011    23    46    13.9996    -1.99    0    1    0    0    C    3182.026    0.13    0    3.2    0    0    0    36.28    343.7596 
1    0    2.01112E+13    1325375178    331    CLDR    Z    P    I    31    12    2011    23    46    17.9258    -0.27    0    1       0

Moderator's Comments:
Mod Comment Code tags for code, please.
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

action command

Hi.. When i refered the script /etc/rc.sysinit... i found the "action commands" like But this is not working in my shells.. the following error is coming... Please anybody help Thanks in advance esham (5 Replies)
Discussion started by: esham
5 Replies

2. UNIX for Advanced & Expert Users

tracking user action

Hi, we are using solaris8. we have some files disappear. I would like to know how to track who and when the files was remove ??? thanks, (7 Replies)
Discussion started by: xitrum
7 Replies

3. Shell Programming and Scripting

same action in then as in else: explanation?

in /etc/init.d/networking of an ubuntu computer, I found this code: if ifdown -a --exclude=lo; then log_action_end_msg $? else log_action_end_msg $? fi Shouldn't it be replace by ifdown -a --exclude=lo ... (0 Replies)
Discussion started by: raphinou
0 Replies

4. Shell Programming and Scripting

Need help with find its action

I am writing a shell script that takes at least 2 arguments. The first is an octal representation of file permissions, the second is a command that is executed on all the files found with that permission. #!/bin/sh find . -perm $1 -exec $2 $3 $4 {} \; invoked: ./script.sh 543 ls -la what... (3 Replies)
Discussion started by: computethis
3 Replies

5. Shell Programming and Scripting

Check date and do action

I would like to write a script to do such thing , if a directory have file that the extension is today (yymmdd), then do a specific action , I will run a cron job to run this script . For example Today is 2nd , if the directory have files which file name are abc.121102 and def.121102 ,... (6 Replies)
Discussion started by: ust3
6 Replies

6. UNIX for Beginners Questions & Answers

Action on all files in a folder

How can I do an action to all files in a specific folder? Do I use ls and a loop or something else? Does ls take folder location? (2 Replies)
Discussion started by: locoroco
2 Replies
PROFNET(1)							   User Commands							PROFNET(1)

NAME
profnet_* - neural network implementations in Fortran SYNOPSIS
profnet_* [OPTION|filePar] DESCRIPTION
profnet_* binaries are neural network implementations in Fortran. Due to the original design of the code, a specific binary is compiled for each particular network architecture, changing certain constants in the source code. Therefore, there is a binary for every network architecture used. Note: certain array structures are intentionally indexed out of bounds in some of the binaries. Note: This binary should only be used to run with pre-made training data, do not try to use it to train your network as it will produce undesired results. It was made to be used only as part of wrapping (dependent) packages and not as a standalone neural network program. OPTIONS
This list is not exhaustive. filePar file with input parameters (also gives fileIn, fileOut) 1 "switch" 2 number of input units 3 number of hidden units 4 number of output units 5 number of samples 6 bitacc (typically 100) 7 file with input vectors 8 file with junctions 9 file with output of NN ("none" -> no file written) 10 optional=dbg [inter] will bring up dialog NOTES
1st MUST be "switch"! tested only with 2 layers! AUTHOR
Burkhard Rost <rost@rostlab.org> Bug fixes and enhancements by Laszlo Kajan <lkajan@rostlab.org> and Guy Yachdav <gyachdav@rostlab.org> COPYRIGHT AND LICENSE
Copyright 1998-2011 by Burkhard Rost <rost@rostlab.org> EMBL, CUBIC (Columbia University, NY, USA) and LION Biosciences (Heidelberg, DE) Copyright 2009-2011 by Laszlo Kajan <lkajan@rostlab.org> Technical University Munich (Munich, DE) Copyright 2009-2011 by Guy Yachdav <gyachdav@rostlab.org> CUBIC (Columbia University, NY, USA) and Technical University Munich (Munich, DE) 1.0.21- 2011-06-16 PROFNET(1)
All times are GMT -4. The time now is 11:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy