10-22-2008
Need help with a manual task
I have an ASCII file that I receive on a monthly bases that is fixed length. I break the file into separate files based on a 5 character numerical sequence. I have 20 different sequences I have to find.
the input file looks something like this
xy-ins 2008yuthnrlsinrthsntwilgrha33260001 sslh12 0000000000000
xy-ins 2008yuthnrlsinrthsntwilgrha33270001 sslh12 0000000000000
xy-ins 2008yuthnrlsinrthsntwilgrha33277001 sslh12 0000000000000
I want to copy every line that contains that sequence in that same position to a new file retaining the same format.
I'm not looking for someone to hand me a script but would be the best way of doing this. I do prefer using bash as my shell and thinking about using awk and a some type of loop. However, I have not used awk and would consider my skillset in this arena as a "noobie"...
thanks in advance for your suggestions.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I don't seem to be able to get man pages up for any command. When I try the "No manual entry for..." message is displayed. When checking my $MANPATH variable I get the following
/opt/SUNconn/man:
However, when I check this directory it doesn't exist. Searching for any man directories results... (3 Replies)
Discussion started by: FattyLumpkin
3 Replies
2. Shell Programming and Scripting
Hi
How are you every body?
Could you please send me a link to shell programming manual on sun solaris 5.8
Thanks (4 Replies)
Discussion started by: so_friendly
4 Replies
3. Shell Programming and Scripting
hi guys...
am new 2 dis unix world...
am in need of a unix manual...
cud sum1 pls post sum links 2 download it?>?>? :confused:
Danks in advance... ;) ;) ;) (1 Reply)
Discussion started by: sundar_shankar
1 Replies
4. Shell Programming and Scripting
I have a file contains
TASK gsnmpproxy {
CommandLine = $SMCHOME/bin/gsnmpProxy.exe
}
TASK gsnmpdbgui {
CommandLine = $SMCHOME/bin/gsnmpdbgui.exe
I would like to comment and than uncomment specific task eg TASK gsnmpproxy
Pls suggest how to do in shell script (9 Replies)
Discussion started by: madhusmita
9 Replies
5. Shell Programming and Scripting
Hi,
Can any of you tell me how to get this ndm manual stuff?
I need it to know specific error ids and descriptions
Thanks,
Vinodhini (1 Reply)
Discussion started by: vinodhini4
1 Replies
6. Shell Programming and Scripting
I have an task definition listing xml file that contains a list of tasks such as
<TASKLIST
<TASK definition="Completion date" id="Taskname1" Some other
<CODE name="Code12"
<Parameter pname="Dog" input="5.6" units="feet" etc /Parameter>
<Parameter... (3 Replies)
Discussion started by: MissI
3 Replies
7. Shell Programming and Scripting
I'm sure it's really easy, but I have searched on Google and on the forums and haven't found anything.
For instance, if I open the grep manual (man grep), I can't close it.
I've tried ctrl+c, ctrl+x, scrolling to the bottom of the manual.
How can I exit the manual without closing the shell?
... (8 Replies)
Discussion started by: dennis89
8 Replies
8. Shell Programming and Scripting
Hi,
While executing the following command i am getting output as command not found.
iostat
output: command not found
Also, man iostat is displaying "NO Manual Entry"
Why is it so? (5 Replies)
Discussion started by: salil2012
5 Replies
9. Shell Programming and Scripting
my problem step by step...
1.I have 5 files at the location (/usr/abc) for example
file1, file2, file3, file4 and fe.ok
2. I have to transfer 2 of the above files from which one is fixed file (fe.ok) for example file1 and fe.ok to usr/dob using cp command.
3.After transferring i will... (2 Replies)
Discussion started by: j_panky
2 Replies
LEARN ABOUT REDHAT
pvm_send
SEND(3PVM) PVM Version 3.4 SEND(3PVM)
NAME
pvm_send - Immediately sends the data in the active message buffer.
SYNOPSIS
C int info = pvm_send( int tid, int msgtag )
Fortran call pvmfsend( tid, msgtag, info )
PARAMETERS
tid Integer task identifier of destination process.
msgtag Integer message tag supplied by the user. msgtag should be >= 0.
info Integer status code returned by the routine.
DESCRIPTION
The routine pvm_send sends a message stored in the active send buffer to the PVM process identified by tid. msgtag is used to label the
content of the message. If pvm_send is successful, info will be 0. If some error occurs then info will be < 0.
The pvm_send routine is asynchronous. Computation on the sending processor resumes as soon as the message is safely on its way to the
receiving processor. This is in contrast to synchronous communication, during which computation on the sending processor halts until the
matching receive is executed by the receiving processor.
The PVM model guarantees the following about message order. If task 1 sends message A to task 2, then task 1 sends message B to task 2,
message A will arrive at task 2 before message B. Moreover, if both messages arrive before task 2 does a receive, then a wildcard receive
will always return message A.
Terminating a PVM task immediately after sending a message or messages from it may result in those messages being lost. To be sure, always
call pvm_exit() before stopping.
EXAMPLES
C:
info = pvm_initsend( PvmDataDefault );
info = pvm_pkint( array, 10, 1 );
msgtag = 3 ;
info = pvm_send( tid, msgtag );
Fortran:
CALL PVMFINITSEND(PVMRAW, INFO)
CALL PVMFPACK( REAL8, DATA, 100, 1, INFO )
CALL PVMFSEND( TID, 3, INFO )
ERRORS
These error conditions can be returned by pvm_send
PvmBadParam
giving an invalid tid or a msgtag.
PvmSysErr
pvmd not responding.
PvmNoBuf
no active send buffer. Try pvm_initsend() before send.
SEE ALSO
pvm_initsend(3PVM), pvm_mcast(3PVM), pvm_pack(3PVM), pvm_psend(3PVM), pvm_recv(3PVM)
30 August, 1993 SEND(3PVM)