how to use sed command to find and replace a directory
i have a file.. which contains lot of paths ...
for eg.. file contains..
/usr/kk/rr/12345/1
/usr/kk/rr/12345/2
/usr/kk/rr/12345/3
/usr/kk/rr/12345/4
/usr/kk/rr/12345/5
/usr/kk/rr/12345/6
/usr/kk/rr/12345/7... (1 Reply)
I am trying to use a script to replace the header of each file, whose filename are stored within the array $test, using the sed command within a Perl script as follows:
$count = 0;
while ( $count < $#test )
{
`sed -e 's/BIOGRF 321/BIOGRF 332/g' ${test} > 0`;
`cat 0 >... (2 Replies)
What is wrong with this line in a perl script?
$amc_data = `sed -n '/\/,/\/p' "$config_file"`
I ran the above from command line and it works fine from unix command prompt.
The code should produce output between the and tags.
The config_file is as follows:
Sun ... (2 Replies)
Experts,
We used to receive our source files with '~^' as row delimiter. This file contains 2500K records and two of the columns having value in HTML formats within the file.
While running the below commands against the file, we are encountering out of memory, could you please help to... (3 Replies)
Hi all;
I have a Perl script that uses this awk command wrapped in a "system" call; it works exactly as I want it; however I want to keep this a Perl script and have very few if any "system" command...so the question; can someone help me code this in Perl please ... i have tried an now I am... (1 Reply)
Hi
I know sed and awk has options to give range of line numbers, but
I need to replace pattern in specific lines
Something like
sed -e '1s,14s,26s/pattern/new pattern/' file name
Can somebody help me in this....
I am fine with see/awk/perl
Thank you in advance (9 Replies)
Hi Guys
Am working on a bash script but got stuck, in this line:
32 $configValues = '';
What would be the best command to enter the password between the " Perl or sed ?
Been trying with Perl using this command:
perl -pi -e 's/''/Seattle#1669!/g'... (5 Replies)
Hi,
I have been stuck in this requirement where my file contains the below format.
20150812170500846959990854-25383-8.0.0
"ABC Report" hp96880
"4952"
20150812170501846959990854-25383-8.0.0 End of run
20150812060132846959990854-20495-8.0.0
"XYZ Report" vg76452
"1006962188"... (6 Replies)
Discussion started by: Chinmaya Kabi
6 Replies
LEARN ABOUT OPENSOLARIS
npe
npe(7D) Devices npe(7D)NAME
npe - PCI Express bus nexus driver
DESCRIPTION
The npe nexus driver is used on X64 servers for PCI Express Root Complex devices that provide PCI Express interconnect. This driver is com-
pliant to PCI Express base specification, Revision 1.0a.
This nexus driver provides support for the following features: Access to extended configuration space, IEEE 1275 extensions for PCI
Express, Base line PCI Express error handling and PCI Express MSI interrupts.
FILES
/platform/i86pc/kernel/drv/npe
32-bit ELF kernel module.
/platform/i86pc/kernel/drv/amd64/npe
64-bit ELF kernel module.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+------------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+------------------------------+
|Architecture |x64 PCI Express-based systems |
+-----------------------------+------------------------------+
|Availability |SUNWcakr.i |
+-----------------------------+------------------------------+
SEE ALSO attributes(5), pcie(4), pcie_pci(7D)
PCI Express Base Specification v1.0a -- 2003
Writing Device Drivers
IEEE 1275 PCI Bus Binding -- 1998
http://playground.sun.com/1275/bindings/pci/pci-express.txt
SunOS 5.11 12 Oct 2005 npe(7D)