08-19-2012
@nvramakrishna
Please open a new thread in the Homework Forum according to the Homework rules, and take some time to transcribe the questions accurately and to show your own effort.
e.g.
"trace root" should surely be "traceroute".
"ip config" should surely be "ipconfig".
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does any one know how to view a binary file as it is (in 1s and 0s) on unix environment? (1 Reply)
Discussion started by: devildivine
1 Replies
2. Shell Programming and Scripting
Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
For example:
file 1
123
1234
123456
file 2
123
2345
23456
file 3 should have
2345
23456
I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies
3. UNIX for Dummies Questions & Answers
Here's the problem...
I'm using a simulator on UNIX, and it requires a filename where bits are stored, it should read them out and do whatever with them at that point..
So what i'm trying to do is make a binary file on UNIX. On my PC i can use MSDEV, or any of my C++ compilers to generate a... (2 Replies)
Discussion started by: wcRandThor
2 Replies
4. Shell Programming and Scripting
Hi All,
I need a solution on my following find command
find ./.. -name '*.file' -print
BTW This gives me the output as belows
./rtlsim/test/ADCONV0/infile/ad0_dagctst.file
./rtlsim/test/ADCONV0/user_command.file
./rtlsim/test/ADCONV0/simv.daidir/scsim.db.dir/scsim.db.file... (2 Replies)
Discussion started by: user_prady
2 Replies
5. Shell Programming and Scripting
I need to compare 2 diff type of files and find out the duplicate after comparing each types of files:
Type 1 file name is like: file1.abc
(the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations).
The other file is file1.bcd01abc (the extension... (2 Replies)
Discussion started by: ricky007
2 Replies
6. Shell Programming and Scripting
Hi Masters,
I have two files named file1 and file2.
Both the files contains the same contents with some difference in comments,space.But no content change.
I tried to find the diff between the two files to make sure that contents are same.
For that i tried
diff -ibw file1 file2
But... (1 Reply)
Discussion started by: ecearund
1 Replies
7. Shell Programming and Scripting
Hi,
I have 2 files.I want to check if file1 is contained in file2.
A.txt:
-----
AAA
BBB
B.txt:
------
CCC
AAA
BBB
DDD
I want to check if A.txt is contained in B.txt. Can it be done using SED ? (12 Replies)
Discussion started by: giri_luck
12 Replies
8. Shell Programming and Scripting
Hi All,
I have two files which look as below
File1
serial="1" name="abc" type="employee" field="IT"
serial="2" name="cde" type="intern" field="Marketing"
serial="3" name="pqr" type="contractor" field="IT"
serial="4" name="xyz" type="employee" field="Sales"
File2
serial="1"... (3 Replies)
Discussion started by: grajp002
3 Replies
9. Shell Programming and Scripting
Hi All,Is there anyway I can conver the binary file to ascii. I don't know the binary file format. file command just lists this as "data" file and when I view it has a lot of non-printable characters.Can I write any command equivalent to wc -l to find out the number of rows in the file?Can I use... (4 Replies)
Discussion started by: rahulkav
4 Replies
10. Shell Programming and Scripting
Guys i have 3 files,
but i want to compare and diff only the 2nd column
path=`/home/whois/doms`
for i in `cat domain.tx`
do
whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant
whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
LEARN ABOUT PLAN9
ipconfig
IPCONFIG(8) System Manager's Manual IPCONFIG(8)
NAME
ipconfig, arpd, rip - Internet configuration and routing
SYNOPSIS
ip/ipconfig [-abp] [-e etherdev] [-m ip-mask] [ipaddr]
ip/arpd [-pd] [-e etherdev] [-b bcast-addr]
ip/rip [-b]
DESCRIPTION
Ipconfig configures an Internet connection on an Ethernet. The options are
a do not start arpd
b do not use BOOTP to discover a gateway address
p start arpd in promiscuous mode (see below)
e use the Ethernet mounted at /net/etherdev
m set the network mask to ip-mask
If ipaddr is specified on the command line, use that instead of one found in the local database or via the BOOTP protocol.
Arpd performs the Internet Address Resolution Protocol, translating Internet addresses into Ethernet addresses. It is normally started by
ipconfig. The options are
d print debugging to standard output
p (promiscuous) answer ARP requests for any recognized machine. The default is to answer just for the machine running arpd.
e use the Ethernet mounted at /net/etherdev
b use the IP broadcast address bcast-addr instead of the correct one.
Rip runs the routing protocol RIP. It listens for RIP packets on connected networks and updates the kernel routing tables. The only
option, -b, broadcasts routing information onto the networks.
SOURCE
/sys/src/cmd/ip/ipconfig.c
/sys/src/cmd/ip/arpd.c
/sys/src/cmd/ip/rip.c
SEE ALSO
ndb(6)
IPCONFIG(8)