12-02-2010
Excellent it worked in record time!!
Thank you.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Awk Gurus,
Can anyone of you help me with the below problem. I have got a file having data in below format
pmFaultyTransportBlocks
-----------------------
9842993
pmFrmNoOfDiscRachFrames
-----------------------
NULL
pmNoRecRandomAccSuccess
-----------------------... (4 Replies)
Discussion started by: Mohammed
4 Replies
2. Shell Programming and Scripting
For lists in sed, to say what to replace, is this correct:
I am hoping that this would recognise that either a "." is present, or that the substitution happens at the end of the line.
For files with extensions , my script works perfectly.
My problem is, files without extentions, i.e. . ... (1 Reply)
Discussion started by: busillis
1 Replies
3. Shell Programming and Scripting
:confused: Is it possible to send a variable to a sed or cut command? I have a test script as below:
counter=1
while read line
do
# Test the file
printf "$line" > temp$counter
pref=$(cut c1-2000 $temp$counter | sed 's///g' | sed 's|.*PutTime\(.*)Origin.*|\1|')
printf" let... (5 Replies)
Discussion started by: gugs
5 Replies
4. Shell Programming and Scripting
Hello I am trying to make an awk script that always replaces the same characters in a file, with white space in between. Can anyone write a script that prompts for the 3 numbers and then replaces them in the file?
eg.
enter a b c:
'it then puts a b c in the file.
The file format is always
... (12 Replies)
Discussion started by: gav2251
12 Replies
5. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Problem Statement for project:
When an account is created on the CS Unix network, a
public html directory is created in the account's home directory. A default web page is put into that directory.
Some users replace or... (13 Replies)
Discussion started by: peage1475
13 Replies
6. Shell Programming and Scripting
Hi all
I use aix (sadly).
I've got a file consisting of fields separated by commas, I need a sed or awk command that will delete all spaces between two commas as long as there are only spaces between the commas.
eg
,abc, ,sd , ,dr at
would become
,abc,,sd ,,dr at
I have... (53 Replies)
Discussion started by: mychmose
53 Replies
7. Shell Programming and Scripting
Hi,
I have a script that, basically, has two input files of this type:
file1
key1=value1_1_1
key2=value1_2_1
key4=value1_4_1
...
file2
key2=value2_2_1
key2=value2_2_2
key3=value2_3_1
key4=value2_4_1
...
My files are 10k lines big each (approx).
The keys are strings that don't... (7 Replies)
Discussion started by: fzd
7 Replies
8. Shell Programming and Scripting
HI All,
I am new to unix. I have a file would like to do some editing by using awk, cut and sed. Could anyone help?
This file contain 100 lines. There are one line for example:
2,"102343454",5060,"579668","579668","579668","SIP",,,"825922","035885221283026",1,268,"00:59:00.782 APR 17... (2 Replies)
Discussion started by: mimilaw
2 Replies
9. Shell Programming and Scripting
Hi guys,
I have been trying to do this, but... no luck so maybe you can help me.
I have a line like this:
Total Handled, Received, on queue Input Mgs: 140 / 14 => 0
I need to, get the number after the / until the =, to get only 14 .
Any help is greatly appreciated.
Thanks, (4 Replies)
Discussion started by: ocramas
4 Replies
10. Shell Programming and Scripting
hi,
i want to remove 12 and 13 column from psv files and dump them in new folder
ls -ltr *GTDA_Dly_Pmix_*.psv>filename.xls
var1=`cat filename.xls`
for i in $var1
do
var3=`echo "$i" |cut -d '|' -f12,13 |sort -u`
sed -e 's/"|$var3"//g... (2 Replies)
Discussion started by: renuk
2 Replies
LEARN ABOUT HPUX
ioconfig
ioconfig(4) Kernel Interfaces Manual ioconfig(4)
NAME
ioconfig - ioconfig entry format
SYNOPSIS
DESCRIPTION
The file is used to retain information on a system's I/O configuration across reboots. It contains two types of information:
o Mappings of dynamically allocated major numbers to drivers.
o Mappings of instance numbers to hardware paths.
At boot time this file is read and the information is stored in the kernel data structure. The file is created by at install time and is
modified by and when devices are added or removed (see insf(1M), rmsf(1M), and ioscan(1M)). The only purpose of the file to maintain con-
figuration information when the system is not running. While the system is running, all accesses are made directly to the kernel struc-
ture, although any tools that change the kernel structures must also keep consistent.
There will be two copies of maintained: and A second copy is placed in because NFS diskless clients are not guaranteed to have a reliable
directory at boot time.
The file begins with the magic number.
Following the magic number is an array of structures, which logically form a tree structure defining the connectivity of the various levels
of software modules and managers, the device class and hardware address of each element, and the logical unit associated with each leaf
node. The root of the tree is array element 0.
Each contains the following fields as defined in
The definitions of each element are as follows:
Each record must have a character string as its first entry
which is used to identify the record type. The default record is the If the string begins with an underscore character then it
is one of the variants.
This is the default record entry for the ioconfig file.
The must begin with an underscore character to distinguish record from other record type.
The element is a structure that contains following elements.
This record stores information about major numbers dynamically assigned
to drivers. It is used to allow major number assignments to persist across boots. The must begin with (underscore) character to
distinguish record from other record type.
The contains following elements.
AUTHOR
was developed by HP.
FILES
SEE ALSO
insf(1M), ioinit(1M), ioscan(1M), rmsf(1M), magic(4).
ioconfig(4)