Hi,
Can anybody help me how to add a word in front of a line in a file.Actually it is bit tricky to add a word. i will give a sample for this:
Input :
1110001 ABC DEF
1110001 EFG HIJ
1110001 KLM NOP
1110002 QRS RST
1110002 UVW XYZ
Output:
%HD% 1110001 ABC DEF
%DT% 1110001 EFG HIJ... (4 Replies)
ok, so this is proving to be kind of difficult even though it should not be.
say for instance I want to grep out ONLY the word fkafal from the below output, how do I do it?
echo ajfjf fjfjf iafjga fkafal foeref afoafahfia | grep -w "fkafal"
If i run the above command, i get back all the... (4 Replies)
Hello, I have an output like
Interface Chipset Driver wlan0 Intel 4965/5xxx iwlagn - and I want to take only the 'wlan0' string. This can be done by
a="Interface Chipset Driver wlan0 Intel 4965/5xxx iwlagn - "
b=${a:25:6}
echo $bThe thing is that wlan0 can be something else, like eth0 or... (2 Replies)
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Hi all,
I have 7 words
Now I have 1 file which contain data in large number of rows and columns
and 6th column contain any of these words or may be more than one words among above 7 words:
I want
script should search for the above mentioned 7 words in the 6th column
... (9 Replies)
Hi,
Below is an example :
ST1 PREF: int1 AVAIL: int2
ST2 PREF :int1 AVAIL: int2
I need int1 to come in preferred variable while programming and int2 in available variable
Please help me doing so
Best regards,
Vishal (10 Replies)
Hi Experts,
I have a requirement like, I have to search between 2 words (<deviceDetails> and </deviceDetails>) and merge all lines in between into 1 line.
Example:
<deviceDetails><subscriberName>#UNKNOWN#</subscriberName>
<customerNumber>#UNKNOWN#</customerNumber>... (5 Replies)
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
LEARN ABOUT OSF1
protocols.map
protocols.map(4) Kernel Interfaces Manual protocols.map(4)NAME
protocols.map - Specifies node names for protocols configured on your machine.
SYNOPSIS
/var/adm/sendmail/protocols.map
DESCRIPTION
This file contains the Phase IV, Phase V, UUCP, and X25 node names for your system if the respective protocols are running on your machine.
The format of the file is as follows: protocols?Phase_IV_name?Phase_V_name?UUCP_name?X25_name. The string between the delimeters (?) is
empty if a particular protocol is not running on your machine. If no protocols are running on your machine, the file contains the follow-
ing string: protocols????
If you are generating the hostname.m4 configuration file manually, you must update the protocols.map file manually as well. If your system
is a member of a TruCluster Server cluster, you must maintain or create the protocols.map file as a Context-Dependent Symbolic Link (CDSL).
See the System Administration guide for more information.
In addition, your hostname.m4 configuration file is instead named after the cluster alias, i.e., cluster_alias.m4. The following parame-
ters in the hostname.m4 file affect the protocols.map file: If you have defined or updated this parameter in your hostname.m4 file, you
must specify the UUCP_name parameter in the protocols.map file. Use your system's UUCP host name. If you have defined or updated this
parameter in your hostname.m4 file, you must specify the Phase_IV_name parameter in the protocols.map file.
Also, if you have defined any nicknames for DECnet PhaseIV node name in the _My Nicknames parameter of your hostname.m4 file, you
must add them to the protocols.map file below the protocols entry as follows: phaseiv: nickname If you enter more than one nickname,
put a space between each nickname.
You also need to add your DECnet PhaseIV node address as follows: phaseivaddr: address If you have defined or updated this parameter
in your hostname.m4 file, you must specify the Phase_V_name parameter in the protocols.map file.
Also, if you have defined any nicknames for DECnet PhaseV node name in the _My Nicknames parameter of your hostname.m4 file, you
need to add them to the protocols.map file below the protocols entry as follows: phasev: nickname If you enter more than one nick-
name, put a space between each nickname. If you have defined or updated this parameter in your hostname.m4 file, you must specify
the X25_name parameter in the protocols.map file. Use your system's unqualified node name.
RELATED INFORMATION
Commands: sendmail(8)
Files: sendmail.cf(4), sendmail.m4(8)
Network Administration delim off
protocols.map(4)