10-04-2008
Thax for replying
Last edited by sarah2009; 10-05-2008 at 08:44 PM..
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hai all
i want to grep the particular pattern and move the mathing records to torget file and delete the matching recodrs from source file.
patterns are position based, like
13413432,aaaaaaa,dsfdddddd,34234324,22224555
13413432,aaaaaaa,dsfdddddd,12234324,11222455
i want to move the... (1 Reply)
Discussion started by: readycpbala
1 Replies
2. Shell Programming and Scripting
I have a big file with "|" delimiter. I want to delete all the records that have 'abc' in the 2nd field. How can i do that? I am not abe to open it in VI that is why i need to do it from outside. Please suggest (6 Replies)
Discussion started by: dsravan
6 Replies
3. UNIX for Advanced & Expert Users
Hai
I have a flat file which contains more than 6 crore lines or records. I want to delete only one line, using line number. For example I want to delete 414556 th line . How to do this using sed or awk command.
thanks (3 Replies)
Discussion started by: tkbharani
3 Replies
4. Shell Programming and Scripting
I have a file which has about 10000 records and I need to delete about 50 records from the file. I know line numbers and am using
sed '134,1357,......d' filename > new file.
It does not seem to be working.
Please Advice (5 Replies)
Discussion started by: mad_man12
5 Replies
5. UNIX and Linux Applications
Hi,
I have a file whose size is not zero but it has no records and another which has records. I want to delete all the files that have no records in it (even if size > 0). How do I do it?
I have tried the below option
#!/bin/ksh
temp1 = $(wc -l < INVX102C.sf)
if ; then
echo "Data... (3 Replies)
Discussion started by: sangharsh
3 Replies
6. Shell Programming and Scripting
Hi Friends,
I have the following file,
cat input
chr1 1000 2000
chr1 600 699
chr1 701 1000
chr1 600 1710
chr2 900 1800
Now, I would like to see the difference of
Record1.Col2 - Record2.Col2
Record1.Col2 - Record2.Col3
Record1.Col3 - Record2.Col2
Record1.Col3 - Record2.Col3
... (1 Reply)
Discussion started by: jacobs.smith
1 Replies
7. Shell Programming and Scripting
Hi,
Can any one help me...
the records are not deleting when I run the below script.
But if I issue the same delete command manually, the records are getting deleted.
script:
#!/bin/ksh
USAGE_STRING="USAGE $0 "
if
then
echo "SORRY you need to be user 'mqm'. Only 'mqm' has... (5 Replies)
Discussion started by: zxcjggu708
5 Replies
8. Shell Programming and Scripting
How do i delete the records when we have string "abcd" at position 21 to 24. The file is huge in size. Any help is appreciated.
Sample data given below
eiojfcdf oijjfdm ijdabcd234vffmv
eojfirr jfdiopem ijaabb456irkmd
aodniiuielc uejdocvoabcd957wpdjf (4 Replies)
Discussion started by: zooby
4 Replies
9. Shell Programming and Scripting
Hello Mates,
I would request your help in a shell script,
simply I need to delete some matching db table records (rows) to ones in a given file:
------------------------------
#!/bin/bash
SQL="delete from numberlist where msidn='';"
MYSQL_USER="<your-user>"... (4 Replies)
Discussion started by: EAGL€
4 Replies
RARP(8) Linux System Administrator's Manual RARP(8)
NAME
rarp - manipulate the system RARP table
SYNOPSIS
rarp [-V] [--version] [-h] [--help]
rarp -a
rarp [-v] -d hostname ...
rarp [-v] [-t type] -s hostname hw_addr
NOTE
This program is obsolete. From version 2.3, the Linux kernel no longer contains RARP support. For a replacement RARP daemon, see
ftp://ftp.dementia.org/pub/net-tools
DESCRIPTION
Rarp manipulates the kernel's RARP table in various ways. The primary options are clearing an address mapping entry and manually setting
up one. For debugging purposes, the rarp program also allows a complete dump of the RARP table.
OPTIONS
-V Display the version of RARP in use.
-v Tell the user what is going on by being verbose.
-t type
When setting or reading the RARP table, this optional parameter tells rarp which class of entries it should check for. The default
value of this parameter is ether (i.e. hardware code 0x01 for IEEE 802.3 10Mbps Ethernet . Other values might include network tech-
nologies such as AX.25 (ax25) and NET/ROM (netrom).
-a
--list Lists the entries in the RARP table.
-d hostname
--delete hostname
Remove all RARP entries for the specified host.
-s hostname hw_addr
--set hostname hw_addr
Create a RARP address mapping entry for host hostname with hardware address set to hw_addr. The format of the hardware address is
dependent on the hardware class, but for most classes one can assume that the usual presentation can be used. For the Ethernet
class, this is 6 bytes in hexadecimal, separated by colons.
WARNING
Some systems (notably older Suns) assume that the host replying to a RARP query can also provide other remote boot services. Therefore
never gratuitously add rarp entries unless you wish to meet the wrath of the network administrator.
FILES
/proc/net/rarp,
SEE ALSO
arp(8), route(8), ifconfig(8), netstat(8)
AUTHORS
Ross D. Martin, <martin@trcsun3.eas.asu.edu>
Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
Phil Blundell, <Philip.Blundell@pobox.com>
net-tools 2008-10-03 RARP(8)