Need to modify contents of file with complex patterns
Quote:
Originally Posted by ygemici
Hi ,
Thanks for the solution, it modifies the lines with /var1 to /var and /flx1 to /flx respectively, But how to delete the lines with /dev/vg0/var and /dev/vg0/flx. when i use "grep -v /dev/vg0/var " for deletion bothe the lines with /dev/vg0/var1 and /dev/vg0/var are getting deleted. even sed for deletion is causing the same problem.
Please suggest a way for deleting only the lines with /dev/vg0/var and /dev/vg0/flx.
Hi,
Can anyone pls let me know how can i modify the file contents thru script.
Eg.
I have file abc.dat that contains below lines
Merge.resync.cycleFlag
Merge.resync.logFlag
Merge.resync.maxByteRate
Merge.resync.maxSearch
Merge.resync.rate
Merge.resync.tickLog ... (2 Replies)
Hi Gurus,
I have a file say for ex. file1 which has 3500 lines in it which are different account numbers and another file (file2) which has 230000 lines in it. I want to read all the lines in file1 and delete all those lines from file2 which has that same pattern as in file1. I am not quite... (4 Replies)
Hello,
I am new to sed and hope that someone can help me with the following task.
I need to modify a txt file which has format like this:
xy=CreateDB|head.queue|head.source|head.definition|rtf.edit|rtf.task|rft.cut
abc|source|divine|line4|5|true
into something like:
head.queue=abc... (19 Replies)
I have a table output in a text file (abc.txt)as follows
col1 ,
col2 ,
col3 ,
col4 ,
Here I want to modify this file as follows
col1 '~!#',
col2 '~!#',
col3 '~!#',
col3 '^@\n'
Could you help on this???
Thanks
Kris (1 Reply)
I have file like this:
rs111 A T 0.9 0.8 ...
rs112 AT T 0.8 0.2 ...
rs113 G CT 0.9 0.1...
I wish to replace all the NONE "A" or "T" or "G" or "C" values in column 3 and column 4 to " ", how can I do this?
thanks! (8 Replies)
I am wanting to fetch the content of the table within a file
the table begins with data label like
N Batch Mn(I) RMSdev I/rms Rmerge Number Nrej Cm%poss AnoCmp MaxRes CMlplc SmRmerge SmMaxRes $$ $$
. #columns of data
.
.
.
.
.
$$
I tried the command
awk... (18 Replies)
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Hi,
What is the best approach to grab contents between
Changes
Dependencies
from the following example snippy
Changes in packages about to be updated:
bash-3.2-32.el5_9.1.x86_64
* Thu Jun 27 22:00:00 2013 Roman Rakus <rrakus@redhat.com> - 3.2-32.1
- Fixed a bug that caused... (2 Replies)
Hello.
For a given folder, I want to select any files find $PATH1 -f \( -name "*" but omit any files like pattern name ! -iname "*.jpg" ! -iname "*.xsession*" ..... \) and also omit any subfolder like pattern name -type d \( -name "/etc/gconf/gconf.*" -o -name "*cache*" -o -name "*Cache*" -o... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT SUNOS
sock2path
sock2path(4) File Formats sock2path(4)NAME
sock2path - file that maps sockets to transport providers
SYNOPSIS
/etc/sock2path
DESCRIPTION
The socket mapping file, /etc/sock2path, is a system file that contains the mappings between the socket(3SOCKET) call parameters and the
transport provider driver. Its format is described on the soconfig(1M) manual page.
The init(1M) utility uses the soconfig utility with the sock2path file during the booting sequence.
EXAMPLES
Example 1: A Sample sock2path File
The following is a sample sock2path file:
# Family Type Protocol Path
2 2 0 /dev/tcp
2 2 6 /dev/tcp
26 2 0 /dev/tcp6
26 2 6 /dev/tcp6
2 1 0 /dev/udp
2 1 17 /dev/udp
26 1 0 /dev/udp6
26 1 17 /dev/udp6
1 2 0 /dev/ticotsord
1 6 0 /dev/ticotsord
1 1 0 /dev/ticlts
2 4 0 /dev/rawip
26 4 0 /dev/rawip6
24 4 0 /dev/rts
27 4 2 /dev/keysock
SEE ALSO soconfig(1M), socket(3SOCKET)
Network Interfaces Programmer's Guide
SunOS 5.10 10 Nov 1999 sock2path(4)