10-08-2008
Iam not sure if these keywords are appearing in a file. Have you tried considering SET command
You need to replace "," by space using "tr"
Read file and each line use can use set command then replace $2 with $1 within a loop ?
the way set works is as
set hi there it is a test
if you echo $3 it prints out "it"
similary as long as there is a space you can print Variables as $1 $2 $3 $4 using set.
Hope this sorts out your problem. Good luck
10 More Discussions You Might Find Interesting
1. Linux
i want to access mounted/mapped drive in linux using C code
is it possible to access the mapped drive in linux using C code ?
waiting for replay
NIrav (0 Replies)
Discussion started by: niravuchat
0 Replies
2. Filesystems, Disks and Memory
Hello,
I have a server running CentOS 5.1 on a virtual machine. Right now, there is one virtual disk on the system. Below are the result when I run the df commmand:
Filesystem.....1K-blocks.........Used.....Available....Use%.....Mounted on... (1 Reply)
Discussion started by: kennyw1000
1 Replies
3. SCO
We are running SCO OpenServer 5.0.7. Some of my users have drives mapped to the SCO box, some don't. The consultant, who setup the mapped drives, is long gone, and I need more users to have drive letter mapping.
When I try to map a drive via windows, I am repeatedly asked for a user/password,... (1 Reply)
Discussion started by: bnhcomputing
1 Replies
4. UNIX for Advanced & Expert Users
Before I forget, I'm running on a RedHat 5 box with the following uname -a output:
Linux gnc141c 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
Now on to my question.
I'm using a tool that maps a Matlab .mat file using the Linux mmap functionality and then... (1 Reply)
Discussion started by: rusttree
1 Replies
5. Programming
Program received signal SIGSEGV, Segmentation fault
si_code: 1 - SEGV_MAPERR - Address not mapped to object.
0x9fffffffbe7080d0:0 in free+0xb0 () from /usr/lib/hpux64/libc.so.1
Hi ,
I have developed a class to read config file (flat file with space as a field seperator ) on plattform... (3 Replies)
Discussion started by: pravinbhingare
3 Replies
6. Solaris
Hi everybody,
I'm facing a little trouble with my system. I have a SPARC M4000 server, which connected to a SAN with 2 Brocade 300 Switches and 1 STK 6140. The M4000 has 2 FC HBA cards, one port per card. Each card connect to one switch as follows...
____________M4000____________
___FC-HBA... (2 Replies)
Discussion started by: nam.nguyen
2 Replies
7. Shell Programming and Scripting
As i am new to unix so facing some problems in scripting:
here is my question:
i m having two files. 1st file say a.txt contain 3 column like
SPECIALITY|UMP_CODE|SPECIALTY_CODE
Addictive Diseases|25ADD|ADD
Addictive Diseases/Family Practice|25ADD|ADD/FP
Aerospace Medicine|1.041666667|AM... (4 Replies)
Discussion started by: dsh007
4 Replies
8. AIX
Hi
im logged in to the vio servers now.
when i give
# lspv | wc -l
i get the count as 6246
how will i know if a lun has been already mapped to a vio client or it is left free without mapping to any of the vio client ? (1 Reply)
Discussion started by: newtoaixos
1 Replies
9. Red Hat
Dear Experts,
I've schedule scripts with the help of Cronjob, and output should be generated on windows mapped drive,
Earlier 2 days its was working fine and now my cronjob is not generating file on windows network drive.
Please suggest.
Linux details given below.
$ tail... (9 Replies)
Discussion started by: Mohammed Fareed
9 Replies
10. Shell Programming and Scripting
Hey guys,
Does anyone know how to calculate total number of mapped reads for a certain region of a bam file using samtools flagstat?
I know to use flagstat for the whole bam file. but for a specific region of it... is there an option?
Tnx
---------- Post updated at 12:27 PM ----------... (1 Reply)
Discussion started by: @man
1 Replies
LEARN ABOUT REDHAT
replace
REPLACE(1) General Commands Manual REPLACE(1)
NAME
replace - A utility program that is used by msql2mysql, but that has more general applicability as well. replace changes strings in place
in files or on the standard input. Uses a finite state machine to match longer strings first. Can be used to swap strings.
USAGE
replace [-?svIV] from to from to ... -- [files]
or
replace [-?svIV] from to from to ... < fromfile > tofile
SYNOPSIS
replace [-?|-I] [-s] [-v]
DESCRIPTION
replace
-?|-I info
-s silent
-v verbose
EXTRA INFO
Special characters in from string:
^ Match start of line.
$ Match end of line.
Match space-character, start of line or end of line. For a end the next replace starts locking at the end space-character. A
alone in a string matches only a space-character.
EXAMPLE
this command swaps a and b in the given files:
shell> replace a b b a -- file1 file2 ...
SEE ALSO
isamchk (1), isamlog (1), mysqlaccess (1), mysqladmin (1), mysqlbug (1), mysqld (1), mysqldump (1), mysqlshow (1), msql2mysql (1), perror
(1), replace (1), safe_mysqld (1), which1 (1), zap (1),
AUTHOR
Ver 1.0, distribution 3.23.29a Michael (Monty) Widenius (monty@tcx.se), TCX Datakonsult AB (http://www.tcx.se). This software comes with
no warranty. Manual page by L. (Kill-9) Pedersen (kill-9@kill-9.dk), Mercurmedia Data Model Architect / system developer (http://www.mer-
curmedia.com)
20 December 2000 REPLACE(1)