<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5546402395475930545</id><updated>2025-05-28T20:40:38.849+05:30</updated><category term="Unix/Linux helpline"/><category term="JAVA HELPLINE"/><category term="seminar topics"/><category term="Networking"/><category term="Smart Computing"/><category term="C Helpline"/><category term="Visual Basic helpline"/><category term="Algorithm"/><category term="Basics"/><category term="Flowchart"/><category term="Maths Helpline"/><category term="Php Helpline"/><category term="Computer Security"/><category term="Computer tricks"/><category term="Data security"/><category term="Funny tricks"/><category term="Google Initiative"/><category term="Internet"/><category term="Welcome"/><category term="Word helpline"/><title type='text'>Nishtha&#39;s Programming World</title><subtitle type='html'>A blog for learning computer programming online, includes programming in C, C++, Java, COBOL, Pascal, VBasic and More</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>90</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-1716759972437749486</id><published>2012-07-19T16:55:00.002+05:30</published><updated>2012-07-19T17:12:28.906+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>IP addresses........</title><content type='html'>Namaskar Dosto,&lt;br /&gt;In previous artical i discussed about &lt;a href=&quot;http://nishtha-programming-world.blogspot.in/2012/07/the-internetworking-problem.html&quot;&gt;The internetworking problem&lt;/a&gt;.For networking we also need IP addresses inspite of networking technology.What is IP address? This is the main concern of this artical.I will discuss something about IP address.&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;IP addresses:-&lt;/span&gt; For any host, computer on a TCP/IP network, a unique id (32 bits in IPv4) written as a collection of 4 decimal numbers (dotted quad) between 0 to 255.&lt;br /&gt;&lt;br /&gt;Ex. IP address: 132.64.48.56.  Every device must have a unique IP address. All devices pertaining to a common network must reflect a common network portion of address that must be registered with the Internet community provided by some Internet Service Provider (ISP)&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;IP address class:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Class A:&lt;/span&gt;  0 + 7 network ID bits + 24 host ID bits&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Class B:&lt;/span&gt; 10 + 14 network ID bits + 16 host ID bits &lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Class C:&lt;/span&gt; 110 + 21 network ID bits + 8 host ID bits&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Class D:&lt;/span&gt; 1110 + 28 multicast address bits&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Address formats:&lt;/span&gt;&lt;br /&gt; network. local.local.local  (for class A IDs)&lt;br /&gt;       network.network.network.local (for class C IDs)&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;IP address of a device  MAC address (physical ID)&lt;/span&gt;&lt;br /&gt;MAC address is a permanently stamped address. IP address is stored in a configuration file in the local disk.&lt;span style=&quot;font-weight:bold;&quot;&gt; &lt;br /&gt;&lt;br /&gt;Subnets:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A single network may be split into a multiple networks for internal use but appear as a single network to outsider. This is the concept of subnets.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Subnet mask:-&lt;/span&gt; An address such that when added to network address (in bitwise-and) splits the address into network + subnet + host address.&lt;br /&gt;&lt;br /&gt;e.g. IP address: 12.11.10.9   subnet mask 255.254.0.0&lt;br /&gt;&lt;br /&gt;Since the leading bit begins with 0, it’s a Class A network with address 12.0.0.0&lt;br /&gt;&lt;br /&gt;   00001100 00001011 00001010 00001001  IP&lt;br /&gt;+ 11111111 11111110 00000000 00000000  Subnet&lt;br /&gt;___________________________________________&lt;br /&gt;   00001100 00001010 | 00000000 00000000  &lt;br /&gt;&lt;br /&gt;Network is extended by 7 more bits. Therefore, this is subnet 10. &lt;br /&gt;&lt;br /&gt;The remaining host part is 0.1.10.9 is the host address.&lt;br /&gt;&lt;br /&gt;IP and subnet masks are often presented together in this format. e.g. Network address = 154.4.32.0 , subnet mask = 255.255.224.0. In this case, the network address can be written as 154.4.32.0/19 &lt;br /&gt;indicating subnet has 19 bits for the network portion of address, and has remaining 13 bits for host part. &lt;br /&gt;&lt;br /&gt;Therefore, total number of subnets =   -2 = 6&lt;br /&gt;Total numbe of hosts per subnet =  &lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Classless Interdomain Routing (CIDR) &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;Classfull addresses waste a lot of addresses. Ideally, we could bunch similar network addresses together and reduce ARP table considerably. For a good example, see Tanenbaum &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Some distinct networks:&lt;/span&gt;&lt;br /&gt;a. 127.0.0.0 is used for loop-back address (typically in the form of 127.0.0.1)&lt;br /&gt;b. When host address is either all 0s (4.2BSD) or all 1s (Unix OS standard), it’s considered a broadcast message.&lt;br /&gt;c. For mobile objects, two addresses: Home address (permanent), and a care-of address. Used only for forwarding IP datagrams and admin functions. Higher layers never use them.&lt;br /&gt;d. Care-of addresses two types: Foreign agent address, and Co-located care of address where mails are sent directly to the device on a foreign net. &lt;br /&gt;&lt;br /&gt;TCP/IP includes a protocol suit ARP (Address Resolution Protocol) to map IP addresses to physical addresses by network administrators. The constructed table is called ARP cache.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;RARP =&lt;/span&gt; Reverse Address resolution Protocol permits the inverse mapping from MAC to corresponding IP address. Hosts such as diskless workstations only knows their MAC addresses when booted but not their IP addresses. This must be obtained from an RARP server source. (RFC 903 for details).&lt;br /&gt;&lt;br /&gt;Ok friends......i hope u get this artical.leave your comments.I need your support to share something useful.&lt;br /&gt;Thanks for visiting.................</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/1716759972437749486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/ip-addresses.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/1716759972437749486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/1716759972437749486'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/ip-addresses.html' title='IP addresses........'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-2010822788606456825</id><published>2012-07-19T16:26:00.003+05:30</published><updated>2012-07-19T16:45:24.405+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>The Internetworking Problem.....</title><content type='html'>Hello friends,&lt;br /&gt;In this artical i will discuss internetworking problem.As we all know internet become a main part of everyone&#39;s life.Without it we suffer much in today.As a mca student it become my soul.What problem face by us during networking.I am here to discuss that major problem.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Problem:-&lt;/span&gt; How to interconnect different networks together?&lt;br /&gt;Look into IP, TCP, end-to-end issues.&lt;br /&gt;&lt;br /&gt;The Internetworking Problem. Many different networks.&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Link heterogeneity issue.&lt;/span&gt; Single-link LANs do not scale well over hundreds of miles distances. LAN switching for unknown destination implies broadcasting, a poor scheme in large nets.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Link technology:&lt;/span&gt; LANs, point-to-point, Packet radio, wireless, satellites. An extremely heterogeneous community.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Challenge&lt;/span&gt;: Design a scalable network infrastructure that connects different types of smaller networks enabling packet flows between hosts across different nets.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Issues to reckon:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;■ Addressing: Each net may have its own addressing approach. Ethernet uses 6-byte ID, Telephone uses 10-digit numbers.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;Gateways:&lt;/span&gt;&lt;br /&gt;Primarily a protocol converter. It interfaces distinct networks with different characteristics.&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Two types: Translation GW, and Unified Network Layer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Translation-based Gateways: translates packet headers and protocol from one network to another seamlessly. &lt;br /&gt;Problems: &lt;br /&gt;&lt;br /&gt;a. Feature deficiency: Not all features are “preserved” as one moves from one net to another. Not all features are supported by the translation.&lt;br /&gt;b. Poor scalability: Translation =   where  is the number of networks connected. Untenable at large networks&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Internet Design principles:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Identify key parameters (a small number) which must be preserved through translation. All hosts and networks must implement them.  Check the seminal paper: “End-to-end arguments” http://www.reed.com/Papers/EndtoEnd.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Universality principles:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;U1. IP-over-everything. A standard network protocol IP would be used as Internet Protocol. Must have a standard well-defined addressing convention. Then scaling is not an issue.&lt;br /&gt;&lt;br /&gt;U2. Best-effort service model. All packets are treated alike, if any gets lost address this at the end, not inside the network to recover it. (Increases scalbility and throughput)&lt;br /&gt;U3. End-to-end arguments. Keeps the interior of the network as simple as possible. Move all controls for reliability, congestion control etc. at the end-hosts. TCP functionality removed from Gateways. &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Robustness principle:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;R1. Soft-state inside the network. Refresh soft-states such as Router tables as often as possible. Thus, even if it gets lost once in a while, it’s no big deal.&lt;br /&gt;&lt;br /&gt;R2. Fate sharing. Even if a GW crashes, the end-to-end communication must continue. The GW state is a soft-state, and it shouldn’t share its fate with end-hosts. &lt;br /&gt;&lt;br /&gt;R3. Conservative-transmission/Liberal reception. Be conservative in what you send, be liberal in what you receive. What does a TCP sender do when it sees an ACK for a message it didn’t expect? &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Weaknesses:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Internet architecture has its own weaknesses.&lt;br /&gt;&lt;br /&gt;■ Architecture relies heavily on the trustworthiness of end-systems. How does one build a trusted networks when hosts (or a subset of them) couldn’t be trusted?&lt;br /&gt;■ Greedy sources aren’t handled well. TCP does a good job in sharing its bandwidth, but more and more traffic isn’t TCP&lt;br /&gt;■ Security issues have been neglected&lt;br /&gt;■ Administration and management tools are not all that matured&lt;br /&gt;■ Incremental deployment. Not a fundamental problem, but ought to be recognized by every protocol designer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;■ Bandwidth and Latency: Link bandwidth would vary from net to net from bits/sec to Gb/sec. Latencies can be from μs to several secs.&lt;br /&gt;&lt;br /&gt;■ Packet size: In general varies between networks&lt;br /&gt;■ Loss rates &amp; QoS: All networks vary considerably in these. These depend on traffic volume, congestion, service demands, …&lt;br /&gt;■ Packet routing: Routing of packets may be handled differently by different nets. &lt;br /&gt;&lt;br /&gt;The original TCP/IP (Cerf &amp; Kahn).&lt;br /&gt;&lt;br /&gt;■ Key idea. Gateways. Reject translation in favor of gateways.&lt;br /&gt;&lt;br /&gt;■ IP over everything. &lt;br /&gt;■ Standard packet header format&lt;br /&gt;■ Gateways perform fragmentation, reassembly at end-hosts&lt;br /&gt;■ TCP: Process-level communication via TCP, a reliable, in-order, byte-stream protocol. Original TCP did reassembly; now it’s done at the receiver. TCP and IP were tightly interwined originally, now they are separate. &lt;br /&gt;■ How to launch/sustain/deliver multiple TCP between two processes? Original design didn’t consider this. &lt;br /&gt;1. Use same IP packet for multiple TCP segments?&lt;br /&gt;2. Use different IP packets for different segments?&lt;br /&gt; ■ 2 is simpler than 1. It’s easier to demux and out-of-order packets are difficult to handle in 1. Demux key is the port number of the receiving process.&lt;br /&gt;■ Sliding window, cumulative ACK-based ARQ protocol. &lt;br /&gt;■ Window-based flow control&lt;br /&gt;■ Heavily dependent on connection setup and release scheme. &lt;br /&gt;■Way off the mark on accounting issues&lt;br /&gt;■One line summary</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/2010822788606456825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/the-internetworking-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/2010822788606456825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/2010822788606456825'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/the-internetworking-problem.html' title='The Internetworking Problem.....'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-4100558797153283347</id><published>2012-07-19T09:52:00.010+05:30</published><updated>2012-07-19T10:57:28.383+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="seminar topics"/><title type='text'>Sniffer.............</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMBWV1UlKm3JQ73kv1oJHxcc06AJOAgD0KEMp7YziNYSD8EaQiZVkryw-ZXtmiwQMLyIwLTUUa49Im_tufZINMsxijuXt1U2ZIsQi9KOoNmzOPPPVmXvK7lioFQHeFKBLJJbi1UKIzRg/s1600/gh.png&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 283px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMBWV1UlKm3JQ73kv1oJHxcc06AJOAgD0KEMp7YziNYSD8EaQiZVkryw-ZXtmiwQMLyIwLTUUa49Im_tufZINMsxijuXt1U2ZIsQi9KOoNmzOPPPVmXvK7lioFQHeFKBLJJbi1UKIzRg/s320/gh.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5766744668679651410&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvLLS4Nzj819Nv9U3t3_Jr3hBNPLkelGjMX9swbRrmxpFqx04tOfv4yGwhor117U3q8_jtum-OcWcWhRDDuiKrG4TC7xxT-YQ6l405-vbMMAZdLMEOqWHu9uN_JE8x6fqo4ZliT16snw/s1600/nh.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 203px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvLLS4Nzj819Nv9U3t3_Jr3hBNPLkelGjMX9swbRrmxpFqx04tOfv4yGwhor117U3q8_jtum-OcWcWhRDDuiKrG4TC7xxT-YQ6l405-vbMMAZdLMEOqWHu9uN_JE8x6fqo4ZliT16snw/s320/nh.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5766743374194528242&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii7qRs6WxfwD7WMWgPSqphW6QgUCOWU04XQehlAh3MvuvLnSBwPbAvuVHNDcZWrTLLbWbVSijAis-ju0EfbUpwOW1qCyqHoKb1vCz15qtTZSadLyaa9YXTV2aI7gMZDGNIzBT4TS37dQ/s1600/pic.png&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 200px; height: 196px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii7qRs6WxfwD7WMWgPSqphW6QgUCOWU04XQehlAh3MvuvLnSBwPbAvuVHNDcZWrTLLbWbVSijAis-ju0EfbUpwOW1qCyqHoKb1vCz15qtTZSadLyaa9YXTV2aI7gMZDGNIzBT4TS37dQ/s200/pic.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5766740262328887586&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Good morning friends,&lt;br /&gt;The main scope of this artical is to detect the lost mobiles. Each and every day thousands of mobiles get misplaced or lost, though effective way for the blocking of the lost mobile to prevent unauthorized person from making and receiving the calls has been done by the manufacturers of the mobile with the help of International Mobile Equipment Identifier (IMEI) has been done but however there has been no development or very little progress for the detection of the misplaced mobile phone.&lt;br /&gt;&lt;br /&gt;                                              For   the detection of lost mobile SNIFFER plays a vital role .The sniffer   device has to be designed precisely and size should   be reduced for easy mobility for the purpose of detection .The device   can be called as a mobile Base station that includes   Sniffer Base station, Unidirectional antenna , Tracking software. The sniffer is a small base station that includes transceiver section.It should operate at a frequency which is much different from the frequency   of the current   cell in which the operation of detection   is being carried out. The directional antenna is an important device that is to be designed and used as it plays a major role.&lt;br /&gt;&lt;br /&gt;                                                There are certain boundary conditions that have to be qualified for the identification  of lost mobile like  the power of the mobile should be good enough, the mobile phone should not be in the shadow region but however this method using modern  technologies and devices.&lt;br /&gt;                                          Our paper seems to be a bit costlier for initial setup but the cost is gradually reduced when effectively and efficiently utilized for the purpose of detection.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Introduction&lt;/span&gt;&lt;br /&gt;                              One of the most interesting things about cell phone is that it is really a radio an extremely sophisticated radio, which uses some band of frequency that has the basic working similar to the ordinary cordless phone. The mobile cellular communication has been appreciated since its birth in the early 70’s and the advancement in the field of VLSI has helped in  designing less power, smaller size but efficient transceiver for the purpose of communication.              &lt;br /&gt;&lt;br /&gt;                &lt;br /&gt;                             But however the technology has not yet answered the loss or misplacement of the lost mobile phone which is significantly increasing. In this paper we discuss the problem and the probable solution that could be done. The IMEI number is a unique number that is embedded in the mobile phone the main purpose of which is the blocking of calls that is made by unauthorized person once the mobile is reported as stolen but here we use it effectively for the purpose of detection.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;2. ABOUT IMEI :&lt;/span&gt;&lt;br /&gt;  The GSM MoU’s IMEI (International Mobile Equipment Identity) numbering system is a 15 digit unique code that is used to identify the GSM/DCS/PCS phone. When a phone is switched on, this unique IMEI number is transmitted and checked against a data base of black listed or grey listed phones in the network’s EIR (Equipment ID Register). This EIR determines whether the phone can log on to the network to make and receive calls. To know the IMEI number the *#06# has to be pressed, the number will be displayed in the LCD screen; it is unique to a mobile phone. If the EIR and IMEI number match, the networks can do a number of things.&lt;br /&gt;        &lt;br /&gt;    &lt;br /&gt;     For example grey list or blacklist a phone:&lt;br /&gt;1. Grey listing will allow the phone to be used, but it can be tracked to see who has it (via the SIM information).&lt;br /&gt;2. Black listing   the phone from being used on any network where there is an EIR match.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;3. DESIGNING FOR THE SNIFFER &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;          &lt;br /&gt;                                As stated this proposal is about the detection of lost mobile phone and for this purpose we are designing a new device called the Sniffer. The sniffer device has to be designed precisely and size should be reduced for easy mobility for the purpose of detection. &lt;br /&gt;          The device can be called as a mobile base station that includes the following important components:&lt;br /&gt;1. Sniffer base station&lt;br /&gt;2 .Unidirectional antenna&lt;br /&gt;3 .Tracking software&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;3.1 SNIFFER BASE STATION:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                                  The sniffer is a small base station, it includes transceiver section. It should operate at a frequency that is much different from the frequency of the current cell in which the operation of detection is being carried out. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;                                  Some of the main important things are the frequency that has to be generated by the transceiver section is around   900MHz range which is a VHF range and it is necessarily to design the oscillator circuit for that frequency range .Another important is the cooling that has to be provided to the circuit while designing the circuit that is to be operated at 900MHz range of frequency.    Hence proper design of base station is an important thing in the design of the sniffer. Mobile phones as well as the base station has low power transmitter is also transmitting at low power. The transmitter of the sniffer has to be a low power transmitter. This helps in the process of reducing the interference of the device with the devices that are in the other cells.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;3.2 DESIGN OF UNIDIRECTIONAL ANTENNA:&lt;/span&gt;&lt;br /&gt;Though the transceiver in a sniffer plays an important role in the detection of the mobile phone but however it is the directional antenna that has a major role in the design of the transmitter. The directional antenna acts as the eyes for the sniffer for the purpose of the detecting the lost mobile phones. Hence the proper design of the directional antenna is required. Antenna is a device which works at specified frequencies range for transmitting or receiving the data signal. In general, antennas transmit power depending on lobe pattern which varies from one antenna to the other. The lobe pattern is a two dimensional diagrams that is used to show radiation pattern. Radiation pattern of directional antenna is shown in fig1.&lt;br /&gt;&lt;br /&gt;  In addition to this it is necessary that the transmitter should be a low power transmitter. The Gain and directivity are intimately related in antennas. The directivity of an antenna is a statement of how the RF energy is focused in one or two directions. Because the amount of RF energy remains the same, but is distributed over less area, the apparent signal strength is higher. This apparent increase in signal strength is the antenna gain. The gain is measured in decibels over either a dipole (dBd) or a theoretical construct called an Isotropic radiator (dBi). The isotropic radiator is a spherical signal source that radiates equally well in all directions. One way to view the omni directional pattern is that it is a slice taken horizontally through the three dimensional sphere.&lt;br /&gt;&lt;br /&gt;              &lt;br /&gt;&lt;br /&gt;      &lt;br /&gt;                             The graphical representation of Radiation pattern of the unidirectional antenna is shown in figure. The spherical co-ordination system has three main components for the pattern representation and they are (R, θ , Ф ) .The shape of the radiation system is independent of R, as long R is chosen to be sufficiently large and much greater than the wavelength as the largest dimension of the antenna. The magnitude of the field strength in any direction varies inversely with R. A complete radiation pattern requires the three dimensional representation. The other factors that are to be taken into account during the development of the antenna for the sniffer should be the gain and the directivity .As these features have a greater effect while designing the antenna. The gain of the antenna is defined as the ability of the antenna to radiate the power in a particular direction. The power radiated per unit area in any direction is given by the pointing vector and is equivalent to &lt;br /&gt;&lt;br /&gt;                                 &lt;span style=&quot;font-weight:bold;&quot;&gt;E2/η2 W/m2&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;                    Total of the power that is being radiated by the antenna is given as&lt;br /&gt;                                                 &lt;br /&gt;                                   &lt;span style=&quot;font-weight:bold;&quot;&gt;   W=∫ΦdΩ&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;The average power that gets radiated is given as &lt;br /&gt;&lt;br /&gt;                &lt;span style=&quot;font-weight:bold;&quot;&gt; Φ(avg)=W/4π&lt;/span&gt;  (watts per steradian)&lt;br /&gt;              &lt;br /&gt;                                    The Directivity of the antenna is the direction in which there is maximum gain for the radiation that is being radiated, the gain of the antenna is given as a function of the angles. The directivity value is constant for a particular direction. In addition to the directivity and the gain of the antenna the other important thing that has to be taken into account is the power that is being radiated by the antenna. The total power is given as W and is the summation of the radiated power and the ohmic loss of the antenna. Here the Wl represents the ohmic losses of the antenna.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Wt=Wr+Wl&lt;/span&gt;&lt;br /&gt;The power gain of the antenna is given as &lt;br /&gt;                                &lt;span style=&quot;font-weight:bold;&quot;&gt;   gp=4πΦ/wt&lt;/span&gt;&lt;br /&gt;The ratio of power to the directivity is referred as a measure of efficiency of the antenna&lt;br /&gt;                                         &lt;span style=&quot;font-weight:bold;&quot;&gt;gp/gd=Wr/(Wr+Wl)&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;                  The power radiated by the antenna should be properly designed as this causes more penetration of the electromagnetic radiation and thus it might have some effect in the near by cells.&lt;br /&gt;&lt;br /&gt;                        The effective area of the antenna is another important factor that is mainly required in the receiving antenna and it may be referred as the effective aperture or capture area and is related to the directive gain of the antenna through the relation &lt;br /&gt;                              &lt;span style=&quot;font-weight:bold;&quot;&gt;      A=gdλ2/4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                 Since the sniffer device that is constructed is a device that has both the transmitting and the receiving antenna. Effective gain has to be taken into account and this shows the ability of the antenna to capture the signal that the lost mobile is transmitting.&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;3.3 SOFTWARE FOR THE TRACKING:&lt;/span&gt;&lt;br /&gt;                                                           The software part plays a major role in the tracking of   the lost mobile phone It is the base for the antenna to track the lost mobile the main feature of this software is that it helps in the process of creation of the data base and this is mainly done using a Random Access Memory. The mobile phone that is lost has certain IMEI number that is embedded in the chip. This RAM of the sniffer device stores the IMEI number of the lost mobile phone. Thus this acts as a data base or the directory of the lost mobile phone number/The software that is to be designed in such a way that the software has the input as the IMEI number of the lost mobile phone from the RAM and this ID done using the SQL query that fetches the IMEI number. After getting the input of the lost mobile phones IMEI number it checks the comport for getting the information whether it obtains any signaling information from the lost device that might respond to the signal sent by the sniffer&lt;br /&gt;&lt;br /&gt;                                       The programming is done with C or Java. However the C is most preferred as it is easily embedded with the chips. With VB the front end is designed. The oracle SQL is the back end as it helps in retrieving the input data from the RAM using the query. But however the sample program that we have designed does not use the oracle it takes the input directly from the keyboard and this is an example and a dummy program that has been created that helps in the understanding of how the device would work.&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;4. WORKING OF THE SNIFFER DEVICE&lt;/span&gt;&lt;br /&gt; The sniffer is basically a transceiver that works in the frequency which is in the special unused range that is operated by the service provided or it can designed to operate at a frequency that is of much different frequency than the   one that is being used by the nearby cells as there may be possibility of interference by the device with the devices in the nearby cells. The working for the device is as follows. The fig 2 &amp;3 shows the working of the sniffer ; as given in the fig2 it gives the normal operation of the mobile with the base station and there is a BTS that  acts as a middle man in the process of communication between the mobile and the MTSO which is popularly known as MSC or Mobile Switching Centre .There is always a two way communication between devices and before the establishment of the communication the authentication of the SIM card that has the IMSI or the International Mobile Subscriber Identifier .This IMSI number helps in the authorization of the user. The second authentication is the authentication of the handset, which is done in EIR or the Equipment Identifier Register. This register is located at the MSC and it contains the IMEI number of the lost handset and if the signal is obtained from the normal one then the two way communication is established.&lt;br /&gt;&lt;br /&gt;                                   &lt;br /&gt;                                                          The IMEI of the lost mobile phone number once has been reported to the service provider, who keeps in track of the record of lost mobile phones. The MTSO or the MSC which keeps in track of all the mobile phones with IMEI number and the IMSI number has the information of the lost mobile phones location which means the location of the cell where the lost device is because of the two way communication with the device the BTS of the lost device is   known to MSC. From this information regarding the cell in which the device is located the sniffer device is introduced.Fig 3 .   The connection   of the sniffer device with the lost mobile phone.&lt;br /&gt;&lt;br /&gt;Here the signal strength of the received signal is obtain antenna pattern is plotted once the signal of the mobile is obtained. The no. of antenna pattern for different position of same mobile phone is used to find the exact location. But however in this method the directional antenna used much be of a very small beam width this helps in more accurate process of detection. Fig4 the sniffer shown in fig tries to communicate with the lost mobile. &lt;br /&gt;                           After getting connected with the mobile it creates a virtual cell pattern and thus helps in the detection of lost mobile phones.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;5.CONCLUSION:&lt;/span&gt;&lt;br /&gt;         Since the boom of the mobile phone for the purpose of the communication there has been a large no. of complaints regarding the mobile phone that is being lost and there has been no effective method developed for detecting the lost device. The given paper dealt about the idea of development “Sniffer for the detection of lost Mobile phones” paves a way by means of which the lost mobile phones can be recovered. But the process of detection is yet to be developed through the software and demo has been developed and is with the authors. The demo has been written in VB that gives the over view of how the lost mobile is being detected and the software has been written in C. The SQL has to be used for the purpose of querying and the internal architecture is of lesser complexity compared to the base station as this mainly involves the control signal and there is no need for the voice process.&lt;br /&gt;&lt;br /&gt;     The design involved the following:&lt;br /&gt;Design   of the sniffer base station design of unidirectional l antenna, development of software for tracking. Though this method appears to be  a little bit complex involving the design of the sniffer but however for large scale  detection the overall effective cost of the design and the detection scales down.&lt;br /&gt;&lt;br /&gt;                              There are certain boundary conditions or criteria that have to be qualified for the identification of the lost mobile like the power of the mobile should be good enough , the mobile phone should not be in the shadow region etc., but however this method can be improved by using   modern technologies and devices.&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;APPENDIX&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;IMEI:&lt;/span&gt; International Mobile Equipment Identifier.&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;SNIFFER: &lt;/span&gt;The small transceiver used for detecting lost mobile phone.&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;IMSI: &lt;/span&gt;International Mobile Subscriber Identifier.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;BTS: &lt;/span&gt;Base transceiver station.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;MTSO:&lt;/span&gt; Mobile Telephone Switching Office.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;MSC: &lt;/span&gt;Mobile Station Switching Controller.&lt;br /&gt;&lt;br /&gt;Ok friends,its all about sniffer device which i want to discuss.I hope it was quite understandable.Please leave comments in favour if you like and you can give suggestion also if I did any mistake.............&lt;br /&gt;I will post new artical soon.....keep on watching.........bye</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/4100558797153283347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/sniffer.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/4100558797153283347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/4100558797153283347'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/sniffer.html' title='Sniffer.............'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMBWV1UlKm3JQ73kv1oJHxcc06AJOAgD0KEMp7YziNYSD8EaQiZVkryw-ZXtmiwQMLyIwLTUUa49Im_tufZINMsxijuXt1U2ZIsQi9KOoNmzOPPPVmXvK7lioFQHeFKBLJJbi1UKIzRg/s72-c/gh.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-5542019984591365754</id><published>2012-07-09T19:03:00.001+05:30</published><updated>2012-07-09T19:05:13.759+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script to show use of for loop</title><content type='html'>echo Enter any sentence&lt;br /&gt;read a&lt;br /&gt;echo&lt;br /&gt;echo Words in given sentence are:-&lt;br /&gt;for i in $a&lt;br /&gt;do&lt;br /&gt;        echo $i&lt;br /&gt;done&lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;&quot;for&quot; 8L, 94C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;Enter any sentence&lt;br /&gt;Sky is not so high you can touch it if you try&lt;br /&gt;&lt;br /&gt;Words in given sentence are:-&lt;br /&gt;Sky&lt;br /&gt;is&lt;br /&gt;not&lt;br /&gt;so&lt;br /&gt;high&lt;br /&gt;you&lt;br /&gt;can&lt;br /&gt;touch&lt;br /&gt;it&lt;br /&gt;if&lt;br /&gt;you&lt;br /&gt;try</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/5542019984591365754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-use-of-for-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5542019984591365754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5542019984591365754'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-use-of-for-loop.html' title='Script to show use of for loop'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-6111012117379499421</id><published>2012-07-09T19:02:00.001+05:30</published><updated>2012-07-09T19:03:35.004+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script to show use of if-else  control structure</title><content type='html'>echo enter two numbers:-&lt;br /&gt;read a&lt;br /&gt;read b&lt;br /&gt;echo&lt;br /&gt;if [ $a -gt $b ]&lt;br /&gt;then&lt;br /&gt;echo a is greater&lt;br /&gt;else&lt;br /&gt;  echo b is greater&lt;br /&gt;fi&lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;&quot;if&quot; 11L, 160C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;enter two numbers:-&lt;br /&gt;12&lt;br /&gt;11&lt;br /&gt;&lt;br /&gt;a is greater</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/6111012117379499421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-use-of-if-else-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/6111012117379499421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/6111012117379499421'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-use-of-if-else-control.html' title='Script to show use of if-else  control structure'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-7957598364613517845</id><published>2012-07-09T19:00:00.001+05:30</published><updated>2012-07-09T19:02:00.758+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script to show the use of while loop.</title><content type='html'>echo Enter a number to print it&#39;s table&lt;br /&gt;read n&lt;br /&gt;i=1&lt;br /&gt;while [ $i -lt 10 ]&lt;br /&gt;do&lt;br /&gt;i=&#39;expr$i*$n&#39;&lt;br /&gt;i=&#39;expr$i+1&#39;&lt;br /&gt;echo $i&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;&quot;while&quot; 13L, 158C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;Even numbers between 1-20 are:-&lt;br /&gt;2&lt;br /&gt;4&lt;br /&gt;6&lt;br /&gt;8&lt;br /&gt;10&lt;br /&gt;12&lt;br /&gt;14&lt;br /&gt;16&lt;br /&gt;18&lt;br /&gt;20</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/7957598364613517845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-use-of-while-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/7957598364613517845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/7957598364613517845'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-use-of-while-loop.html' title='Script to show the use of while loop.'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-5014187899653532053</id><published>2012-07-09T18:54:00.001+05:30</published><updated>2012-07-09T18:56:39.912+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script to sort the contents of file</title><content type='html'>echo Enter name of file&lt;br /&gt;read a&lt;br /&gt;echo&lt;br /&gt;echo Contents of file are:-&lt;br /&gt;cat $a&lt;br /&gt;echo&lt;br /&gt;echo After sorting, contents are:-&lt;br /&gt;sort $a&lt;br /&gt;echo&lt;br /&gt;echo Enter two files for sorting&lt;br /&gt;read a&lt;br /&gt;read b&lt;br /&gt;echo&lt;br /&gt;echo After sorting of these files, contents are:-&lt;br /&gt;sort $a $b&lt;br /&gt;echo&lt;br /&gt;echo Store sorted output in a new file name kannu&lt;br /&gt;sort -okannu $a $b&lt;br /&gt;echo&lt;br /&gt;echo Showing contents of file kannu&lt;br /&gt;cat kannu&lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;Enter name of file&lt;br /&gt;Records&lt;br /&gt;&lt;br /&gt;Contents of file are:-&lt;br /&gt;Meenu   |23     |40000  |7206297384&lt;br /&gt;jyoti   |20     |35000  |9813456782&lt;br /&gt;mamta   |21     |32000  |9017720166&lt;br /&gt;kavita  |22     |30000  |9014445623&lt;br /&gt;neha    |23     |34500  |8014465777&lt;br /&gt;sanchi  |24     |23000  |9014356278&lt;br /&gt;nishtha |25     |24567  |7289786254&lt;br /&gt;mohina  |19     |45000  |9824568753&lt;br /&gt;mohit   |22     |43000  |7013442455&lt;br /&gt;pooja   |21     |34590  |9013324658&lt;br /&gt;monika  |34     |23000  |7823445678&lt;br /&gt;neenu   |33     |34000  |8076543210&lt;br /&gt;meena   |24     |32000  |9876543210&lt;br /&gt;sonika  |20     |43000  |8097634521&lt;br /&gt;meenal  |34     |31000  |8709653412&lt;br /&gt;&lt;br /&gt;After sorting,contents are:-&lt;br /&gt;jyoti   |20     |35000  |9813456782&lt;br /&gt;kavita  |22     |30000  |9014445623&lt;br /&gt;mamta   |21     |32000  |9017720166&lt;br /&gt;meena   |24     |32000  |9876543210&lt;br /&gt;meenal  |34     |31000  |8709653412&lt;br /&gt;Meenu   |23     |40000  |7206297384&lt;br /&gt;mohina  |19     |45000  |9824568753&lt;br /&gt;mohit   |22     |43000  |7013442455&lt;br /&gt;monika  |34     |23000  |7823445678&lt;br /&gt;neenu   |33     |34000  |8076543210&lt;br /&gt;neha    |23     |34500  |8014465777&lt;br /&gt;nishtha |25     |24567  |7289786254&lt;br /&gt;pooja   |21     |34590  |9013324658&lt;br /&gt;sanchi  |24     |23000  |9014356278&lt;br /&gt;sonika  |20     |43000  |8097634521&lt;br /&gt;&lt;br /&gt;Enter two files for sorting&lt;br /&gt;rain&lt;br /&gt;menu&lt;br /&gt;&lt;br /&gt;After sorting of these files,contens are:-&lt;br /&gt;book&lt;br /&gt;come to lab&lt;br /&gt;cook&lt;br /&gt;dook&lt;br /&gt;kook&lt;br /&gt;kool&lt;br /&gt;look&lt;br /&gt;&lt;br /&gt;Store sorted output in a new file name kannu&lt;br /&gt;&lt;br /&gt;Showing contents of file kannu&lt;br /&gt;book&lt;br /&gt;come to lab&lt;br /&gt;cook&lt;br /&gt;dook&lt;br /&gt;kook&lt;br /&gt;kool&lt;br /&gt;look</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/5014187899653532053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-sort-contents-of-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5014187899653532053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5014187899653532053'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-sort-contents-of-file.html' title='Script to sort the contents of file'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-5282208697675195512</id><published>2012-07-09T18:52:00.003+05:30</published><updated>2012-07-09T18:54:23.123+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script to show the case control structure</title><content type='html'>echo enter number&lt;br /&gt;read a&lt;br /&gt;echo&lt;br /&gt;while [ $a -eq 1 ]&lt;br /&gt;do&lt;br /&gt;echo choices are:-&lt;br /&gt;  echo 1. To copy the files&lt;br /&gt;  echo 2. To show list of files&lt;br /&gt;  echo 3. To show use of head&lt;br /&gt;  echo *. Exit&lt;br /&gt; echo&lt;br /&gt;echo enter the choice&lt;br /&gt;read ch&lt;br /&gt;case $ch in&lt;br /&gt;  1) echo enter the source and target file&lt;br /&gt;     read a b&lt;br /&gt;    if cp $a $b&lt;br /&gt;     then&lt;br /&gt;     echo file copied successfully&lt;br /&gt;    fi&lt;br /&gt;    ;;&lt;br /&gt; echo&lt;br /&gt;2) echo list of files with permission:-&lt;br /&gt;     ls -l&lt;br /&gt;     ;;&lt;br /&gt; echo&lt;br /&gt;  3) echo Enter the file&lt;br /&gt;     read k&lt;br /&gt;     echo Showing the 10 lines of files&lt;br /&gt;     head $k&lt;br /&gt;     ;;&lt;br /&gt; echo&lt;br /&gt;  *) exit ;;&lt;br /&gt;esac&lt;br /&gt;done&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;enter number&lt;br /&gt;1&lt;br /&gt;&lt;br /&gt;choices are:-&lt;br /&gt;1. To copy the files&lt;br /&gt;2. To show list of files&lt;br /&gt;3. To show use of head&lt;br /&gt;*. Exit&lt;br /&gt;&lt;br /&gt;enter the choice&lt;br /&gt;2&lt;br /&gt;&lt;br /&gt;list of files with permission:-&lt;br /&gt;total 686&lt;br /&gt;-rw-r--r-- 1 root root      0 Mar 20 14:51 ?[?1049l?&lt;br /&gt;-rw-r--r-- 1 root root      0 Mar 20 14:51 ?[?12l?[?25h?[?1049l?]0&lt;br /&gt;-rw-r--r-- 1 root root     55 Apr  6 15:44 2713&lt;br /&gt;-rw-r--r-- 1 root root      0 Mar 21 15:13 2744&lt;br /&gt;-rw-r--r-- 1 root root      0 Mar 21 15:06 2912&lt;br /&gt;-rw-r--r-- 1 root root      0 Mar 21 15:07 2921&lt;br /&gt;-rw-r--r-- 1 root root      0 Mar 21 15:10 2935&lt;br /&gt;-rw-r--r-- 1 root root     52 Mar 30 15:15 3gt&lt;br /&gt;-rw------- 1 root root    729 Feb 21 15:13 anaconda-ks.cfg&lt;br /&gt;-rw-r--r-- 1 root root     23 Mar 21 14:24 anand1&lt;br /&gt;-rw-r--r-- 1 root root     90 Apr  4 15:17 asd&lt;br /&gt;-rw-r--r-- 1 root root    449 Apr  4 16:00 awk&lt;br /&gt;-rw-r--r-- 1 root root      6 Feb 22 14:23 cmd&lt;br /&gt;-rw-r--r-- 1 root root      0 Feb 27 15:06 cmdfile&lt;br /&gt;-rw-r--r-- 1 root root      0 Feb 22 14:24 com&lt;br /&gt;-rw-r--r-- 1 root root    469 Apr  6 15:31 database&lt;br /&gt;drwxr-xr-x 3 root root   4096 Apr 10 16:25 Desktop&lt;br /&gt;-rw-r--r-- 1 root root     69 Mar 16 14:45 emp.lst&lt;br /&gt;-rw-r--r-- 1 root root     23 Mar 19 14:20 emp.txt&lt;br /&gt;-rw-r--r-- 1 root root     18 Feb 22 14:14 end&lt;br /&gt;-rw-r--r-- 1 root root    214 Mar 30 15:42 even&lt;br /&gt;-rw-r--r-- 1 root root     30 Mar  1 14:49 govind&lt;br /&gt;-rw-r--r-- 1 root root    557 Apr 10 15:56 grep&lt;br /&gt;drwxr-xr-x 4 root root   4096 Mar 14 14:47 heena&lt;br /&gt;-rw-r--r-- 1 root root    105 Mar 30 15:13 if&lt;br /&gt;-rw-r--r-- 1 root root  29101 Feb 21 15:13 install.log&lt;br /&gt;-rw-r--r-- 1 root root      0 Feb 21 14:57 install.log.syslog&lt;br /&gt;-rw-r--r-- 1 root root    153 Feb 28 14:43 jyoti&lt;br /&gt;-rw-r--r-- 1 root root     30 Mar  1 14:59 kanha&lt;br /&gt;-rw-r--r-- 1 root root    164 Mar  1 14:21 kanhaiya&lt;br /&gt;-rw-r--r-- 1 root root      0 Feb 28 14:21 keeru&lt;br /&gt;-rw-r--r-- 1 root root     30 Mar  1 14:29 keshav&lt;br /&gt;-rw-r--r-- 1 root root     30 Mar  1 14:48 madhav&lt;br /&gt;-rw-r--r-- 1 root root     19 Mar 13 14:25 main&lt;br /&gt;-rw-r--r-- 1 root root     30 Apr 11 15:29 meenu&lt;br /&gt;-rw-r--r-- 1 root root     12 Mar 20 15:05 nav&lt;br /&gt;-rw-r--r-- 1 root root     80 Feb 28 14:40 neelam&lt;br /&gt;-rw-r--r-- 1 root root     34 Feb 22 14:13 pa&lt;br /&gt;-rw-r--r-- 1 root root     27 Mar 13 14:25 pai&lt;br /&gt;-rw-r--r-- 1 root root     34 Apr  3 15:15 radhe&lt;br /&gt;-rw-r--r-- 1 root root     34 Apr 11 15:13 radhika&lt;br /&gt;-rw-r--r-- 1 root root     12 Mar 13 14:26 rain&lt;br /&gt;-rw-r--r-- 1 root root     20 Apr  5 15:08 result&lt;br /&gt;-rw-r--r-- 1 root root 188416 Mar 21 15:13 wc.sh&lt;br /&gt;-rw-r--r-- 1 root root    379 Apr 10 16:27 sed&lt;br /&gt;-rwx-w---x 1 root root  69632 Mar 20 15:19 sorting.sh&lt;br /&gt;-rw-r--r-- 1 root root    185 Mar 19 14:52 stu.lst&lt;br /&gt;-rw-r--r-- 1 root root     57 Mar 16 15:16 stu.txt&lt;br /&gt;-rw-r--r-- 1 root root     59 Mar 30 14:37 sum&lt;br /&gt;-rw-r--r-- 1 root root    540 Apr 11 15:26 switch&lt;br /&gt;-rw-r--r-- 1 root root    216 Mar 21 14:37 wc&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;choices are:-&lt;br /&gt;1. To copy the files&lt;br /&gt;2. To show list of files&lt;br /&gt;3. To show use of head&lt;br /&gt;*. Exit&lt;br /&gt;&lt;br /&gt;enter the choice&lt;br /&gt;3&lt;br /&gt;&lt;br /&gt;Enter the file&lt;br /&gt;Database&lt;br /&gt;&lt;br /&gt;Showing the 10 lines of files&lt;br /&gt;Name    |Age    |salary |contact no.&lt;br /&gt;Meenu   |23     |40000  |7206297384&lt;br /&gt;jyoti   |20     |35000  |9813456782&lt;br /&gt;mamta   |21     |32000  |9017720166&lt;br /&gt;kavita  |22     |30000  |9014445623&lt;br /&gt;neha    |23     |34500  |8014465777&lt;br /&gt;sanchi  |24     |23000  |9014356278&lt;br /&gt;nishtha |25     |24567  |7289786254&lt;br /&gt;mohina  |19     |45000  |9824568753&lt;br /&gt;mohit   |22     |43000  |7013442455&lt;br /&gt;&lt;br /&gt;choices are:-&lt;br /&gt;1. To copy the files&lt;br /&gt;2. To show list of files&lt;br /&gt;3. To show use of head&lt;br /&gt;*. Exit&lt;br /&gt;&lt;br /&gt;enter the choice&lt;br /&gt;7&lt;br /&gt;[root@localhost ~]#</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/5282208697675195512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-case-control-structure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5282208697675195512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5282208697675195512'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-case-control-structure.html' title='Script to show the case control structure'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-7555700415569388665</id><published>2012-07-09T18:49:00.002+05:30</published><updated>2012-07-09T18:51:59.618+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script for making use of multiple options of sed command.</title><content type='html'>echo Enter the given database&lt;br /&gt;read a1&lt;br /&gt;echo&lt;br /&gt;echo Database is&lt;br /&gt;cat $a1&lt;br /&gt;echo&lt;br /&gt;echo Show first three lines of database:&lt;br /&gt;sed &#39;3q&#39; $a1&lt;br /&gt;echo&lt;br /&gt;echo show database within a range 2-4:-&lt;br /&gt;sed -n &#39;2,4p&#39; $a1&lt;br /&gt;echo&lt;br /&gt;echo Show database within range 3-7 and last line&lt;br /&gt;sed -n -e &#39;3,7p&#39; -e &#39;$p&#39; $a1&lt;br /&gt;echo&lt;br /&gt;echo Show lines having pattern Meenu&lt;br /&gt;sed -n &#39;/[Mn]eenu/p&#39;  $a1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enter the given database&lt;br /&gt;Database&lt;br /&gt;&lt;br /&gt;Database is&lt;br /&gt;|Name    |Age    |salary |contact no.&lt;br /&gt;|Meenu   |23     |40000  |7206297384&lt;br /&gt;|jyoti   |20     |35000  |9813456782&lt;br /&gt;|mamta   |21     |32000  |9017720166&lt;br /&gt;|kavita  |22     |30000  |9014445623&lt;br /&gt;|neha    |23     |34500  |8014465777&lt;br /&gt;|sanchi  |24     |23000  |9014356278&lt;br /&gt;|nishtha |25     |24567  |7289786254&lt;br /&gt;|mohina  |19     |45000  |9824568753&lt;br /&gt;|mohit   |22     |43000  |7013442455&lt;br /&gt;|pooja   |21     |34590  |9013324658&lt;br /&gt;|monika  |34     |23000  |7823445678&lt;br /&gt;|neenu   |33     |34000  |8076543210&lt;br /&gt;&lt;br /&gt;Show first three lines of database:&lt;br /&gt;|Name    |Age    |salary |contact no.&lt;br /&gt;|Meenu   |23     |40000  |7206297384&lt;br /&gt;|jyoti   |20     |35000  |9813456782&lt;br /&gt;show database within a range 2-4:-&lt;br /&gt;|Meenu   |23     |40000  |7206297384&lt;br /&gt;|jyoti   |20     |35000  |9813456782&lt;br /&gt;|mamta   |21     |32000  |9017720166&lt;br /&gt;&lt;br /&gt;Show database within range 3-7 and last line&lt;br /&gt;|jyoti   |20     |35000  |9813456782&lt;br /&gt;|mamta   |21     |32000  |9017720166&lt;br /&gt;|kavita  |22     |30000  |9014445623&lt;br /&gt;|neha    |23     |34500  |8014465777&lt;br /&gt;|sanchi  |24     |23000  |9014356278&lt;br /&gt;|neenu   |33     |34000  |8076543210&lt;br /&gt;&lt;br /&gt;|Show lines having pattern Meenu&lt;br /&gt;|Meenu   |23     |40000  |7206297384&lt;br /&gt;|neenu   |33     |34000  |8076543210</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/7555700415569388665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-for-making-use-of-multiple_09.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/7555700415569388665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/7555700415569388665'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-for-making-use-of-multiple_09.html' title='Script for making use of multiple options of sed command.'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-5125719377942440393</id><published>2012-07-09T18:48:00.001+05:30</published><updated>2012-07-09T18:49:21.858+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Scipt showing use of perl command</title><content type='html'>echo print &#39;@&#39; symbol 10 times:-&lt;br /&gt;perl -e &#39;print &quot;@\n&quot; x 10;&#39;&lt;br /&gt;echo&lt;br /&gt;echo concatenate two words:-&lt;br /&gt;perl -e &#39;$x=&quot;meenakshi &quot;; $y=&quot;sharma&quot;; print( $x.$y.&quot;\n&quot;);&#39;&lt;br /&gt;echo&lt;br /&gt;echo Show first three lines of file database&lt;br /&gt;perl -ne &#39;print if($.&lt;4)&#39; database&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;print @ symbol 10 times:-&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;@&lt;br /&gt;&lt;br /&gt;concatenate two words:-&lt;br /&gt;meenakshi sharma&lt;br /&gt;&lt;br /&gt;Show first three lines of file database&lt;br /&gt;Name    |Age    |salary |contact no.&lt;br /&gt;Meenu   |23     |40000  |7206297384&lt;br /&gt;jyoti   |20     |35000  |9813456782</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/5125719377942440393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/scipt-showing-use-of-perl-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5125719377942440393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5125719377942440393'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/scipt-showing-use-of-perl-command.html' title='Scipt showing use of perl command'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-154252869935604575</id><published>2012-07-09T18:43:00.001+05:30</published><updated>2012-07-09T18:46:26.728+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script to show use of if control structure</title><content type='html'>echo Enter two files&lt;br /&gt;read a b&lt;br /&gt;echo&lt;br /&gt;echo contents of first file:-&lt;br /&gt;cat $a&lt;br /&gt;echo&lt;br /&gt;echo contents of second file:-&lt;br /&gt;cat $b&lt;br /&gt;if(($a==$b))&lt;br /&gt;then&lt;br /&gt;        echo contents are same&lt;br /&gt;&lt;br /&gt;fi&lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;&quot;oif&quot; 13L, 197C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enter two files&lt;br /&gt;pa radhe&lt;br /&gt;&lt;br /&gt;contents of first file:-&lt;br /&gt;jiska koi nhi uska khuda hai yaro&lt;br /&gt;&lt;br /&gt;contents of second file:-&lt;br /&gt;jiska koi nhi uska khuda hai yaro&lt;br /&gt;&lt;br /&gt;contents are same</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/154252869935604575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-use-of-if-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/154252869935604575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/154252869935604575'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-use-of-if-control.html' title='Script to show use of if control structure'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-1059428132898444983</id><published>2012-07-09T10:08:00.004+05:30</published><updated>2012-07-09T10:11:15.223+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script showing the use of head,tail and more command</title><content type='html'>echo Enter file name&lt;br /&gt;read a&lt;br /&gt;echo&lt;br /&gt;echo Contents of file are:-&lt;br /&gt;cat $a&lt;br /&gt;echo&lt;br /&gt;echo Showing first 12 lines from given file&lt;br /&gt;head -12 $a&lt;br /&gt;echo&lt;br /&gt;echo Showing last 15 lines from given file&lt;br /&gt;tail -15 $a&lt;br /&gt;echo&lt;br /&gt;echo Showing contents within the range 10-15&lt;br /&gt;more +10 -5 -d $a&lt;br /&gt;&lt;br /&gt;~                                                                                    &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                                                                                                 &lt;br /&gt;&quot;head&quot; 11L, 263C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;Enter file name&lt;br /&gt;Jannat&lt;br /&gt;&lt;br /&gt;Contents of file are:-&lt;br /&gt;Tit for tat.&lt;br /&gt;Do good have good&lt;br /&gt;radhe radhe&lt;br /&gt;Saini sir test le rhe h\&lt;br /&gt;Never forget god and your aim.&lt;br /&gt;Sab ka malik ek h&lt;br /&gt;jindgi ek safar h suhana.&lt;br /&gt;jeena kya jeevan se har ke.&lt;br /&gt;chhodo kal ki baten kal ki bat purani aaj hm likhenge unix ki nyi kahani.&lt;br /&gt;go to hell.&lt;br /&gt;Jai shree krishna.&lt;br /&gt;tyari kr lo bacho exam postpone nhi huye.&lt;br /&gt;syllabus bhut jyada h.&lt;br /&gt;lets do one night fight.&lt;br /&gt;khalo kha lo hmare bhi din aayenge.&lt;br /&gt;Necessity is mother of invention.&lt;br /&gt;Prevention is better than cure.&lt;br /&gt;jai mata di.&lt;br /&gt;life is a race.&lt;br /&gt;slow and steady wins the race.&lt;br /&gt;rain is coming.&lt;br /&gt;jitin party de rha h .&lt;br /&gt;Aman mam chle gye.&lt;br /&gt;&lt;br /&gt;Showing first 12 lines from given file&lt;br /&gt;Tit for tat.&lt;br /&gt;Do good have good&lt;br /&gt;radhe radhe&lt;br /&gt;Saini sir test le rhe h\&lt;br /&gt;Never forget god and your aim.&lt;br /&gt;Sab ka malik ek h&lt;br /&gt;jindgi ek safar h suhana.&lt;br /&gt;jeena kya jeevan se har ke.&lt;br /&gt;chhodo kal ki baten kal ki bat purani aaj hm likhenge unix ki nyi kahani.&lt;br /&gt;go to hell.&lt;br /&gt;Jai shree krishna.&lt;br /&gt;tyari kr lo bacho exam postpone nhi huye.&lt;br /&gt;Showing last 15 lines from given file&lt;br /&gt;chhodo kal ki baten kal ki bat purani aaj hm likhenge unix ki nyi kahani.&lt;br /&gt;go to hell.&lt;br /&gt;Jai shree krishna.&lt;br /&gt;tyari kr lo bacho exam postpone nhi huye.&lt;br /&gt;syllabus bhut jyada h.&lt;br /&gt;lets do one night fight.&lt;br /&gt;khalo kha lo hmare bhi din aayenge.&lt;br /&gt;Necessity is mother of invention.&lt;br /&gt;Prevention is better than cure.&lt;br /&gt;jai mata di.&lt;br /&gt;life is a race.&lt;br /&gt;slow and steady wins the race.&lt;br /&gt;rain is coming.&lt;br /&gt;jitin party de rha h .&lt;br /&gt;Aman mam chle gye.&lt;br /&gt;&lt;br /&gt;Showing contents within the range 10-15&lt;br /&gt;go to hell.&lt;br /&gt;Jai shree krishna.&lt;br /&gt;tyari kr lo bacho exam postpone nhi huye.&lt;br /&gt;syllabus bhut jyada h.&lt;br /&gt;lets do one night fight.&lt;br /&gt;--More--(62%)[Press space to continue,&#39;q&#39; to quit.]</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/1059428132898444983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-showing-use-of-headtail-and-more.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/1059428132898444983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/1059428132898444983'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-showing-use-of-headtail-and-more.html' title='Script showing the use of head,tail and more command'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-2537159021717572648</id><published>2012-07-09T10:07:00.000+05:30</published><updated>2012-07-09T10:08:28.890+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script for calculating characters,words and lines in a fil</title><content type='html'>echo &quot;Enter the file name&quot;&lt;br /&gt;read a&lt;br /&gt;echo&lt;br /&gt;echo Contents of file are:-&lt;br /&gt;cat $a&lt;br /&gt;echo&lt;br /&gt;echo &quot;Number of lines in given file&quot;&lt;br /&gt;wc -l $a&lt;br /&gt;echo&lt;br /&gt;echo &quot;Number of words in given file&quot;&lt;br /&gt;wc -w $a&lt;br /&gt;echo&lt;br /&gt;echo &quot;Number of characters in given file&quot;&lt;br /&gt;wc -c $a&lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;&quot;wc&quot; 12L, 275C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;Enter the file name&lt;br /&gt;pa&lt;br /&gt;&lt;br /&gt;Contents of file are:-&lt;br /&gt;jiska koi nhi uska khuda hai yaro&lt;br /&gt;&lt;br /&gt;Number of lines in given file&lt;br /&gt;1 pa&lt;br /&gt;&lt;br /&gt;Number of words in given file&lt;br /&gt;7 pa&lt;br /&gt;&lt;br /&gt;Number of characters in given file&lt;br /&gt;34 pa</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/2537159021717572648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-for-calculating-characterswords.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/2537159021717572648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/2537159021717572648'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-for-calculating-characterswords.html' title='Script for calculating characters,words and lines in a fil'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-6154619785470159940</id><published>2012-07-09T10:03:00.000+05:30</published><updated>2012-07-09T10:05:17.034+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script to show the multiple option of awk command</title><content type='html'>echo enter the database&lt;br /&gt;read a&lt;br /&gt;echo&lt;br /&gt;echo Contents of file are:-&lt;br /&gt;cat $a&lt;br /&gt;echo&lt;br /&gt;echo show 1,2,3 column of given pattern :-&lt;br /&gt;awk -F&quot;|&quot; &#39;/[Mn]eenu/ { print $1, $2, $3 }&#39; $a&lt;br /&gt;echo&lt;br /&gt;echo show data within range 3-6&lt;br /&gt;awk -F&quot;|&quot; &#39;NR == 3, NR == 6 { print }&#39; $a&lt;br /&gt;echo&lt;br /&gt;echo show record of jyoti in formatted way&lt;br /&gt;awk -F&quot;|&quot; &#39;/jyoti/ {&lt;br /&gt;printf &quot;%-7s %5d %-10d %12d\n&quot;,$1,$2,$3,$4 }&#39; $a&lt;br /&gt;echo&lt;br /&gt;echo save record of jyoti in a file name result&lt;br /&gt;awk -F&quot;|&quot; &#39;/jyoti/ {&lt;br /&gt;printf &quot;%-7s %12d&quot;,$1,$4 }&#39; $a &gt; &quot;result&quot;&lt;br /&gt;echo result file is:-&lt;br /&gt;cat result&lt;br /&gt;&lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                               &lt;br /&gt;&quot;awk&quot; 17L, 506C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;enter the database&lt;br /&gt;database&lt;br /&gt;&lt;br /&gt;Contents of file are:-&lt;br /&gt;Name    |Age    |salary |contact no.&lt;br /&gt;Meenu   |23     |40000  |7206297384&lt;br /&gt;jyoti   |20     |35000  |9813456782&lt;br /&gt;mamta   |21     |32000  |9017720166&lt;br /&gt;kavita  |22     |30000  |9014445623&lt;br /&gt;neha    |23     |34500  |8014465777&lt;br /&gt;sanchi  |24     |23000  |9014356278&lt;br /&gt;nishtha |25     |24567  |7289786254&lt;br /&gt;mohina  |19     |45000  |9824568753&lt;br /&gt;mohit   |22     |43000  |7013442455&lt;br /&gt;pooja   |21     |34590  |9013324658&lt;br /&gt;monika  |34     |23000  |7823445678&lt;br /&gt;neenu   |33     |34000  |8076543210&lt;br /&gt;&lt;br /&gt;Show 1,2,3 column of given pattern :-&lt;br /&gt;Meenu    23      40000  &lt;br /&gt;neenu    33      34000  &lt;br /&gt;&lt;br /&gt;show data within range 3-6&lt;br /&gt;jyoti   |20     |35000  |9813456782&lt;br /&gt;mamta   |21     |32000  |9017720166&lt;br /&gt;kavita  |22     |30000  |9014445623&lt;br /&gt;neha    |23     |34500  |8014465777&lt;br /&gt;&lt;br /&gt;show record of jyoti in formatted way&lt;br /&gt;jyoti       20 35000        9813456782&lt;br /&gt;&lt;br /&gt;save record of jyoti in a file name result&lt;br /&gt;result file is:-&lt;br /&gt;jyoti      9813456782</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/6154619785470159940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-multiple-option-of-awk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/6154619785470159940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/6154619785470159940'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-to-show-multiple-option-of-awk.html' title='Script to show the multiple option of awk command'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-5672229970039658138</id><published>2012-07-09T09:58:00.002+05:30</published><updated>2012-07-09T10:01:45.024+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script for making use of multiple options of grep command</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;vi grep&lt;/span&gt; and press enter&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;echo &quot;Enter the database&quot;&lt;br /&gt;read a&lt;br /&gt;echo&lt;br /&gt;echo database is:-&lt;br /&gt;cat $a&lt;br /&gt;echo&lt;br /&gt;echo &quot;Search given  patterns from database&quot;&lt;br /&gt;echo enter the salary&lt;br /&gt;read s1&lt;br /&gt;grep $s1 $a&lt;br /&gt;echo&lt;br /&gt;echo search those pattern in which  age 22:-&lt;br /&gt;grep -n  22 $a&lt;br /&gt;echo&lt;br /&gt;echo Do not  display those pattern having age 22:-&lt;br /&gt;grep -v 22 $a&lt;br /&gt;echo&lt;br /&gt;echo Searching multiple pattern of salary 23000 and name start with m:-&lt;br /&gt;grep -e m -e 23000 $a&lt;br /&gt;echo&lt;br /&gt;echo Showing the use of character class:-&lt;br /&gt;grep &quot;[Mn]eenu&quot; $a&lt;br /&gt;echo&lt;br /&gt;echo show the use of ^ to specify the pattern location&lt;br /&gt;grep &quot;^n&quot; $a&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;~                                                                               &lt;br /&gt;~                                                                           &lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;sh grep&lt;/span&gt; and press enter&lt;br /&gt;Enter the database&lt;br /&gt;Database&lt;br /&gt;&lt;br /&gt;database is:-&lt;br /&gt;|Name    |Age    |salary |contact no.&lt;br /&gt;|Meenu   |23     |40000  |7206297384&lt;br /&gt;|jyoti   |20     |35000  |9813456782&lt;br /&gt;|mamta   |21     |32000  |9017720166&lt;br /&gt;|kavita  |22     |30000  |9014445623&lt;br /&gt;|neha    |23     |34500  |8014465777&lt;br /&gt;|sanchi  |24     |23000  |9014356278&lt;br /&gt;|nishtha |25     |24567  |7289786254&lt;br /&gt;|mohina  |19     |45000  |9824568753&lt;br /&gt;|mohit   |22     |43000  |7013442455&lt;br /&gt;|pooja   |21     |34590  |9013324658&lt;br /&gt;|monika  |34     |23000  |7823445678&lt;br /&gt;|neenu   |33     |34000  |8076543210&lt;br /&gt;&lt;br /&gt;Search given  patterns from database&lt;br /&gt;enter the salary&lt;br /&gt;3000&lt;br /&gt;|sanchi  |24     |23000  |9014356278&lt;br /&gt;|monika  |34     |23000  |7823445678&lt;br /&gt;&lt;br /&gt;search those pattern in which age 22:-&lt;br /&gt;5: |kavita  |22     |30000  |9014445623&lt;br /&gt;10:|mohit   |22     |43000  |7013442455&lt;br /&gt;&lt;br /&gt;Do not display those pattern having age 22:-&lt;br /&gt;|Name    |Age    |salary |contact no.&lt;br /&gt;|Meenu   |23     |40000  |7206297384&lt;br /&gt;|jyoti   |20     |35000  |9813456782&lt;br /&gt;|mamta   |21     |32000  |9017720166&lt;br /&gt;|neha    |23     |34500  |8014465777&lt;br /&gt;|sanchi  |24     |23000  |9014356278&lt;br /&gt;|nishtha |25     |24567  |7289786254&lt;br /&gt;|mohina  |19     |45000  |9824568753&lt;br /&gt;|pooja   |21     |34590  |9013324658&lt;br /&gt;|monika  |34     |23000  |7823445678&lt;br /&gt;|neenu   |33     |34000  |8076543210&lt;br /&gt;&lt;br /&gt;Searching multiple pattern of salary 23000 and name start with m:-&lt;br /&gt;|Name    |Age    |salary |contact no.&lt;br /&gt;|mamta   |21     |32000  |9017720166&lt;br /&gt;|sanchi  |24     |23000  |9014356278&lt;br /&gt;|mohina  |19     |45000  |9824568753&lt;br /&gt;|mohit   |22     |43000  |7013442455&lt;br /&gt;|monika  |34     |23000  |7823445678&lt;br /&gt;&lt;br /&gt;Showing the use of character class:-&lt;br /&gt;|Meenu   |23     |40000  |7206297384&lt;br /&gt;|neenu   |33     |34000  |8076543210&lt;br /&gt;&lt;br /&gt;show the use of ^ to specify the pattern location&lt;br /&gt;|neha    |23     |34500  |8014465777&lt;br /&gt;|nishtha |25     |24567  |7289786254&lt;br /&gt;|neenu   |33     |34000  |8076543210</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/5672229970039658138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-for-making-use-of-multiple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5672229970039658138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5672229970039658138'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-for-making-use-of-multiple.html' title='Script for making use of multiple options of grep command'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-3227891539852417643</id><published>2012-07-09T09:52:00.000+05:30</published><updated>2012-07-09T09:56:09.928+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Script for showing all the basic commands of linux</title><content type='html'>echo  show calendar of april month of year 2012&lt;br /&gt;cal 4 2012&lt;br /&gt;echo&lt;br /&gt;echo show date and time&lt;br /&gt;date&lt;br /&gt;echo&lt;br /&gt;echo creating a new file having name mca&lt;br /&gt;cat &gt; mca&lt;br /&gt;echo&lt;br /&gt;echo showing the contents of file mca&lt;br /&gt;cat mca&lt;br /&gt;echo&lt;br /&gt;echo showing present working directory&lt;br /&gt;pwd&lt;br /&gt;echo&lt;br /&gt;echo Creating a new directory&lt;br /&gt;mkdir Nitika&lt;br /&gt;echo&lt;br /&gt;echo Showing the list of all directories&lt;br /&gt;ls –ld&lt;br /&gt;echo&lt;br /&gt;echo show list of files&lt;br /&gt;ls&lt;br /&gt;echo&lt;br /&gt;echo  Enter the file which you want to remove&lt;br /&gt;read a&lt;br /&gt;rm -i $a&lt;br /&gt;echo&lt;br /&gt;echo Enter the name of user you want to add&lt;br /&gt;read a&lt;br /&gt;rm -i $a&lt;br /&gt;echo&lt;br /&gt;echo Enter the name of user you want to add&lt;br /&gt;read a&lt;br /&gt;adduser $a&lt;br /&gt;passwd $a&lt;br /&gt;echo&lt;br /&gt;echo Showing the free disk space&lt;br /&gt;df&lt;br /&gt;echo&lt;br /&gt;echo Showing list of all user&lt;br /&gt;who&lt;br /&gt;echo&lt;br /&gt;echo showing list of file start with character k&lt;br /&gt;ls k*&lt;br /&gt;echo&lt;br /&gt;echo showing permissions of file meenu&lt;br /&gt;ls -l menu&lt;br /&gt;echo&lt;br /&gt;echo  creating a hidden file name krishna&lt;br /&gt;cat &gt; .krishna&lt;br /&gt;echo&lt;br /&gt;echo Showing list of all hidden files&lt;br /&gt;ls –a&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;show calendar of april month of year 2012&lt;br /&gt;     April 2012     &lt;br /&gt;Su Mo Tu We Th Fr Sa&lt;br /&gt; 1  2  3  4  5  6  7&lt;br /&gt; 8  9 10 11 12 13 14&lt;br /&gt;15 16 17 18 19 20 21&lt;br /&gt;22 23 24 25 26 27 28&lt;br /&gt;29 30&lt;br /&gt;&lt;br /&gt;show date and time&lt;br /&gt;Thu Apr 12 15:37:59 IST 2012&lt;br /&gt;&lt;br /&gt;creating a new file having name mca&lt;br /&gt;jai shree Krishna&lt;br /&gt;&lt;br /&gt;showing the contents of file mca&lt;br /&gt;jai shree Krishna&lt;br /&gt;&lt;br /&gt;showing present working directory&lt;br /&gt;/root&lt;br /&gt;&lt;br /&gt;Creating a new directory&lt;br /&gt;&lt;br /&gt;Showing the list of all directories&lt;br /&gt;drwxr-x--- 20 root root 4096 Apr 12 15:38 .&lt;br /&gt;&lt;br /&gt;show list of files&lt;br /&gt;?[?1049l?                com       install.log         neelam   sed&lt;br /&gt;?[?12l?[?25h?[?1049l?]0  database  install.log.syslog  Nishtha  seema&lt;br /&gt;2713                     Desktop   jyoti               Nitika   sorting.sh&lt;br /&gt;2744                     emp.lst   kanha               oif      stu.lst&lt;br /&gt;2912                     emp.txt   kanhaiya            pa       stu.txt&lt;br /&gt;2921                     end       keshav              pain     sum&lt;br /&gt;2935                     even      m                   prm      switch&lt;br /&gt;3gt                      f         madhav              qwe      w&lt;br /&gt;anaconda-ks.cfg          for       main                radhe    wc&lt;br /&gt;anand1                   for1      marks               radhika  while&lt;br /&gt;asd                      govind    mca                 rain&lt;br /&gt;awk                      grep      meenu               rajji&lt;br /&gt;cmd                      heena     nav                 result&lt;br /&gt;cmdfile                  if        nav.txt             script&lt;br /&gt;&lt;br /&gt;Enter the file which you want to remove&lt;br /&gt;mca&lt;br /&gt;rm: remove regular file `mca&#39;? y&lt;br /&gt;&lt;br /&gt;Enter the name of user you want to add&lt;br /&gt;keerti&lt;br /&gt;Changing password for user keerti.&lt;br /&gt;New UNIX password: &lt;br /&gt;BAD PASSWORD: it is based on a dictionary word&lt;br /&gt;Retype new UNIX password: &lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;&lt;br /&gt;Showing the free disk space&lt;br /&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/hda8              9920592   1913620   7494904  21% /&lt;br /&gt;/dev/hda7               101054     10005     85832  11% /boot&lt;br /&gt;/dev/hda10            26680708    176200  25127340   1% /cdlu&lt;br /&gt;tmpfs                   971620         0    971620   0% /dev/shm&lt;br /&gt;&lt;br /&gt;Showing list of all user&lt;br /&gt;root     pts/0        2012-04-12 14:33 (:0.0)&lt;br /&gt;&lt;br /&gt;showing list of file start with character k&lt;br /&gt;kanha  kanhaiya  keshav&lt;br /&gt;showing permissions of file meenu&lt;br /&gt;-rwxr-xr-x 1 root root 30 Apr 11 15:29 meenu&lt;br /&gt;&lt;br /&gt;creating a hidden file name krishna&lt;br /&gt;gunjan ghar aa ja&lt;br /&gt;&lt;br /&gt;Showing list of all hidden files&lt;br /&gt;.                        for1                nav&lt;br /&gt;..                       .gconf              nav.txt&lt;br /&gt;?[?1049l?                .gconfd             neelam&lt;br /&gt;?[?12l?[?25h?[?1049l?]0  .gnome              Nishtha&lt;br /&gt;2713                     .gnome2             Nitika&lt;br /&gt;2744                     .gnome2_private     oif&lt;br /&gt;2912                     govind              pa&lt;br /&gt;2921                     grep                pain&lt;br /&gt;2935                     .grep.swo           prm&lt;br /&gt;3gt                      .grep.swp           qwe&lt;br /&gt;anaconda-ks.cfg          .gstreamer-0.10     radhe&lt;br /&gt;anand1                   .gtk-bookmarks      radhika&lt;br /&gt;asd                      .gtkrc-1.2-gnome2   rain&lt;br /&gt;awk                      heena               rajji&lt;br /&gt;.bash_history            .heena              .recently-used.xbel&lt;br /&gt;.bash_logout             .heena.swp          .redhat&lt;br /&gt;.bash_profile            .ICEauthority       result&lt;br /&gt;.bashrc                  if                  script&lt;br /&gt;cmd                      install.log         sed&lt;br /&gt;cmdfile                  install.log.syslog  .sed.swp&lt;br /&gt;com                      jyoti               seema&lt;br /&gt;.config                  kanha               sorting.sh&lt;br /&gt;.cshrc                   kanhaiya            stu.lst&lt;br /&gt;database                 .keerti             stu.txt&lt;br /&gt;Desktop                  keshav              sum&lt;br /&gt;.dmrc                    .krishna            switch&lt;br /&gt;.eggcups                 m                   .switch.swp&lt;br /&gt;emp.lst                  madhav              .tcshrc&lt;br /&gt;emp.txt                  main                .thumbnails&lt;br /&gt;end                      marks               .Trash&lt;br /&gt;.esd_auth                meenu               w&lt;br /&gt;even                     .metacity           wc&lt;br /&gt;f                        .mozilla            while&lt;br /&gt;for                      .nautilus           .xsession-errors</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/3227891539852417643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-for-showing-all-basic-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/3227891539852417643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/3227891539852417643'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/script-for-showing-all-basic-commands.html' title='Script for showing all the basic commands of linux'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-1614069098700378410</id><published>2012-07-09T09:29:00.002+05:30</published><updated>2012-07-09T09:52:34.407+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>How to write script in Vi Editor</title><content type='html'>Hello Friends,&lt;br /&gt;    In previous article i discussed a brief introduction of Unix/Linux operating system.In this article i will show you how to write a script in vi editor.&lt;br /&gt;Firstly we should know what is editor? Editor is for editing in a files.When we create a file in unix then through editor we can modify file.Mainly 3 editors used in Unix.&lt;br /&gt;1. Ed editor&lt;br /&gt;2. Ex editor&lt;br /&gt;3. Vi Editor&lt;br /&gt;Ed editor used in previous time on command line.It works on line number.Then after it ex editor comes into picture.Now a days Vi editor is used for writing script.it was first editor to display file on whole screen.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;In unix file can be created through a command:-&lt;/span&gt;&lt;br /&gt;cat &gt; filename&lt;br /&gt;contents of file................&lt;br /&gt;................&lt;br /&gt;ctrl+d&lt;br /&gt;Now if we want to edit content of file created by Unix/Linux ,we can use vi editor.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;How to use vi editor:-&lt;/span&gt;&lt;br /&gt;In Vi editor there is three  modes:&lt;br /&gt;1. command mode&lt;br /&gt;2. Insert mode&lt;br /&gt;3. Ex command mode&lt;br /&gt;&lt;br /&gt;We can write script in insert mode.For editing through Vi editor :-&lt;br /&gt;1. Firstly &lt;span style=&quot;font-weight:bold;&quot;&gt;vi filename&lt;/span&gt; and press enter key.&lt;br /&gt;&lt;br /&gt;2.Now select position at which you want to modify through commands h,j,k,l.&lt;br /&gt;3. Press i for insert  mode and carry out modification.&lt;br /&gt;4. save changes through command by firstly press Esc for command mode and then Shift+z or ZZ.&lt;br /&gt;if You write a script then you can execute that script by writing on command prompt:-&lt;br /&gt;sh filename and press enter&lt;br /&gt;Ok friends ,i hope you get something from this.i will Explain you how to write script through example in next article.Stay in touch..................&lt;br /&gt;Thank you.</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/1614069098700378410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/how-to-write-script-in-vi-editor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/1614069098700378410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/1614069098700378410'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/how-to-write-script-in-vi-editor.html' title='How to write script in Vi Editor'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-7403556150867437485</id><published>2012-07-09T08:54:00.006+05:30</published><updated>2012-07-09T09:27:01.514+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux helpline"/><title type='text'>Introduction to unix/Linux</title><content type='html'>Hello friends,&lt;br /&gt;      The origin of Unix trace in 1965 by Bell telephone laboratory,the General Electronic Company &amp; Massachusetts institute of Technology.&lt;br /&gt;Aim of that association was to develop an operating system that could serve a large community of users and allow them to share data if neeeded.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Danis Ritchie and Ken Thomson&lt;/span&gt; in 1969 create a first version of multiuser system Unix on computer PDP-7.&lt;br /&gt;             In 1971 Unix ported to PDP-11 with 512 KB disk.Then unix is a 16 KB system with 8kb for user program and upper limit of 64 KB per file,Unix was machine dependent.Ken create B language and rewrite Unix in this language,but it lack in real life programming.Then Ritchie shifted Unix to C language code which finally enable Unix to stand on any machine.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Hardware requirement of Unix&lt;/span&gt;:-&lt;br /&gt;It has minimum 80 MB hard disk,4 MB RAM on a 16 bit microprocessor.Out of 80 MB ,40 MB eaten away by actual Unix files,10-20 MB is used as swap space,swap space is used when Unix falls short of memory .At such time it temperory stored in swap space ,the content of memory which are not currently required then shift back to memory.More the number of terminals more memory is required.As a thumb rule 0.75 to 1Mb  should be present in host machine.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Salient features of Unix&lt;/span&gt;:-&lt;br /&gt;1. Multiuser capability.&lt;br /&gt;2. Multitasking capability.&lt;br /&gt;3. It provide communication media.&lt;br /&gt;4. Security.&lt;br /&gt;5. Portability.</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/7403556150867437485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/introduction-to-unixlinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/7403556150867437485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/7403556150867437485'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/introduction-to-unixlinux.html' title='Introduction to unix/Linux'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-287708659260612643</id><published>2012-07-07T19:23:00.004+05:30</published><updated>2012-07-07T19:25:47.722+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA HELPLINE"/><title type='text'>Program to print fibonic series of n number with for loop.</title><content type='html'>import java.util.*;&lt;br /&gt;class Fib&lt;br /&gt;{&lt;br /&gt; public static void main(String args[])&lt;br /&gt;  {&lt;br /&gt;     Scanner a1=new Scanner(System.in);&lt;br /&gt;    System.out.println(&quot;enter the limit to generate series&quot;);&lt;br /&gt;     int a =a1.nextInt();&lt;br /&gt;     int f0=0,f1=1,f2,i;&lt;br /&gt;  System.out.println(&quot;Series is as follows:&quot;);&lt;br /&gt;      System.out.println(f0+ &quot;\n&quot; +f1);&lt;br /&gt;     for(i=1;i&lt;=a-2;i++)&lt;br /&gt;     {&lt;br /&gt;        f2=f0+f1;&lt;br /&gt;        f0=f1;&lt;br /&gt;        f1=f2;&lt;br /&gt;        System.out.println(f2);&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;    &lt;br /&gt;   Output:-&lt;br /&gt;&lt;br /&gt;Microsoft Windows XP [Version 5.1.2600]&lt;br /&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator&gt;cd\&lt;br /&gt;&lt;br /&gt;C:\&gt;cd\java\bin&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;javac Fib.java&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;java Fib&lt;br /&gt;enter the limit to generate series&lt;br /&gt;10&lt;br /&gt;Series is as follows:&lt;br /&gt;0&lt;br /&gt;1&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;5&lt;br /&gt;8&lt;br /&gt;13&lt;br /&gt;21&lt;br /&gt;34</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/287708659260612643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-print-fibonic-series-of-n.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/287708659260612643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/287708659260612643'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-print-fibonic-series-of-n.html' title='Program to print fibonic series of n number with for loop.'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-8169052700613046577</id><published>2012-07-07T19:20:00.000+05:30</published><updated>2012-07-07T19:22:43.581+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA HELPLINE"/><title type='text'>Program to show the concept of inheritance using super keyword.</title><content type='html'>class A&lt;br /&gt;{&lt;br /&gt; int length;&lt;br /&gt; int breadth;&lt;br /&gt;            void A1(int x, int y)&lt;br /&gt; {&lt;br /&gt;  length=x;&lt;br /&gt;  breadth=y;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class B extends A&lt;br /&gt;{&lt;br /&gt;int height;&lt;br /&gt; int volume(int x,int y,int z)&lt;br /&gt; {&lt;br /&gt;  super.A1(x,y);&lt;br /&gt;  height=z;&lt;br /&gt;  return (length*breadth*height);   &lt;br /&gt; }&lt;br /&gt;} &lt;br /&gt;class Inher&lt;br /&gt;{&lt;br /&gt; public static void main(String ar[])&lt;br /&gt; { &lt;br /&gt;  B h=new B();&lt;br /&gt;  int volume1=h.volume(2,1,3);&lt;br /&gt;  System.out.println(&quot;volume is=&quot;+volume1);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;  &lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator&gt;cd\&lt;br /&gt;&lt;br /&gt;C:\&gt;cd java&lt;br /&gt;&lt;br /&gt;C:\java&gt;cd bin&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;javac Inher.java&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;java Inher&lt;br /&gt;volume is=6&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/8169052700613046577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-show-concept-of-inheritance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/8169052700613046577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/8169052700613046577'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-show-concept-of-inheritance.html' title='Program to show the concept of inheritance using super keyword.'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-358556194311406113</id><published>2012-07-07T19:18:00.002+05:30</published><updated>2012-07-07T19:20:06.133+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA HELPLINE"/><title type='text'>Program to print pyramid of prime numbers.</title><content type='html'>import java.util.*;&lt;br /&gt;class Pyd&lt;br /&gt;{&lt;br /&gt; public static void main(String ar[])&lt;br /&gt; {&lt;br /&gt;  int m,k=2,flag=0,row;&lt;br /&gt;  for(row=1;row&lt;=3;row++)&lt;br /&gt;  {&lt;br /&gt;   for(int i=1;i&lt;=3-row;i++)&lt;br /&gt;   {&lt;br /&gt;    System.out.print(&quot;  &quot;);&lt;br /&gt;   }&lt;br /&gt;   m=1;&lt;br /&gt;   while(m&lt;=row)&lt;br /&gt;   {&lt;br /&gt;    flag=0;&lt;br /&gt;    for(int i=2;i&lt;=k/2;i++)&lt;br /&gt;    {&lt;br /&gt;     if(k%i==0)&lt;br /&gt;     {&lt;br /&gt;      flag=1;&lt;br /&gt;      break;&lt;br /&gt;     }&lt;br /&gt;    }&lt;br /&gt;    if(flag==0)&lt;br /&gt;    {&lt;br /&gt;     System.out.print(k+&quot;  &quot;);&lt;br /&gt;     m++;&lt;br /&gt;    &lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    k++;&lt;br /&gt;    &lt;br /&gt;   }&lt;br /&gt;   System.out.println();&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator&gt;cd\&lt;br /&gt;&lt;br /&gt;C:\&gt;cd java&lt;br /&gt;&lt;br /&gt;C:\java&gt;cd bin&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;javac Pyd.java&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;java Pyd&lt;br /&gt;    2&lt;br /&gt;  3  5&lt;br /&gt;7  11  13</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/358556194311406113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-print-pyramid-of-prime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/358556194311406113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/358556194311406113'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-print-pyramid-of-prime.html' title='Program to print pyramid of prime numbers.'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-8344515171710669558</id><published>2012-07-07T19:16:00.003+05:30</published><updated>2012-07-07T19:17:55.170+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA HELPLINE"/><title type='text'>Program to show interthread communication by producer and consumer problem.</title><content type='html'>class Q&lt;br /&gt;{&lt;br /&gt;   int n;&lt;br /&gt; boolean valueSet=false;&lt;br /&gt;   synchronized int get()&lt;br /&gt; {&lt;br /&gt;  while(!valueSet)&lt;br /&gt;  try&lt;br /&gt;  {&lt;br /&gt;   wait();&lt;br /&gt;  }&lt;br /&gt;  catch(InterruptedException e)&lt;br /&gt;  {&lt;br /&gt;   System.out.println(&quot;InterruptedException caught&quot;);&lt;br /&gt;  }&lt;br /&gt;  System.out.println(&quot;got: &quot;+n);&lt;br /&gt;  valueSet=false;&lt;br /&gt;  notify();&lt;br /&gt;  return n;&lt;br /&gt; }&lt;br /&gt; synchronized void put(int n)&lt;br /&gt; {&lt;br /&gt;  while(valueSet)&lt;br /&gt;  try&lt;br /&gt;  {&lt;br /&gt;   wait(); &lt;br /&gt;  }&lt;br /&gt;  catch(InterruptedException e)&lt;br /&gt;  {&lt;br /&gt;System.out.println(&quot;InterruptedException   caught&quot;);&lt;br /&gt;  }&lt;br /&gt;  this.n=n;&lt;br /&gt;  valueSet=true;&lt;br /&gt;  System.out.println(&quot;put :&quot;+n);&lt;br /&gt;  notify();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class Producer implements Runnable&lt;br /&gt;{&lt;br /&gt; Q q; &lt;br /&gt; Producer(Q q) &lt;br /&gt; {&lt;br /&gt;  this.q=q;&lt;br /&gt;  new Thread(this,&quot;producer&quot;).start();&lt;br /&gt; }&lt;br /&gt; public void run()&lt;br /&gt; {&lt;br /&gt;  int i=0;&lt;br /&gt;  while(true)&lt;br /&gt;  {&lt;br /&gt;   q.put(i++);&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class Consumer implements Runnable&lt;br /&gt;{&lt;br /&gt; Q q;&lt;br /&gt; Consumer(Q q)&lt;br /&gt; {&lt;br /&gt;  this.q=q;&lt;br /&gt;  new Thread(this,&quot;Consumer&quot;).start();&lt;br /&gt; }&lt;br /&gt; public void run()&lt;br /&gt; {&lt;br /&gt;  while(true)&lt;br /&gt;  {&lt;br /&gt;   q.get();&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class Synch&lt;br /&gt;{&lt;br /&gt; public static void main(String arg [])&lt;br /&gt; {&lt;br /&gt;  Q q=new Q();&lt;br /&gt;  new Producer(q);&lt;br /&gt;  new Consumer(q);&lt;br /&gt;  System.out.println(&quot;press control c to stop&quot;);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:-&lt;br /&gt;&lt;br /&gt;got: 5803&lt;br /&gt;put :5804&lt;br /&gt;got: 5804&lt;br /&gt;put :5805&lt;br /&gt;got: 5805&lt;br /&gt;put :5806&lt;br /&gt;got: 5806&lt;br /&gt;put :5807&lt;br /&gt;got: 5807&lt;br /&gt;put :5808&lt;br /&gt;got: 5808&lt;br /&gt;put :5809&lt;br /&gt;got: 5809&lt;br /&gt;put :5810&lt;br /&gt;got: 5810&lt;br /&gt;put :5811&lt;br /&gt;got: 5811&lt;br /&gt;put :5812&lt;br /&gt;got: 5812&lt;br /&gt;put :5813&lt;br /&gt;got: 5813&lt;br /&gt;put :5814&lt;br /&gt;got: 5814&lt;br /&gt;put :5815&lt;br /&gt;got: 5815&lt;br /&gt;put :5816&lt;br /&gt;got: 5816&lt;br /&gt;put :5817&lt;br /&gt;got: 5817&lt;br /&gt;put :5818&lt;br /&gt;got: 5818&lt;br /&gt;put :5819&lt;br /&gt;got: 5819&lt;br /&gt;put :5820&lt;br /&gt;got: 5820&lt;br /&gt;put :5821&lt;br /&gt;got: 5821&lt;br /&gt;put :5822&lt;br /&gt;got: 5822&lt;br /&gt;put :5823&lt;br /&gt;got: 5823&lt;br /&gt;C:\java\bin&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/8344515171710669558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-show-interthread.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/8344515171710669558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/8344515171710669558'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-show-interthread.html' title='Program to show interthread communication by producer and consumer problem.'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-5048881198579389701</id><published>2012-07-07T19:05:00.002+05:30</published><updated>2012-07-07T19:13:04.803+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA HELPLINE"/><title type='text'>Program to print spiral through applet.</title><content type='html'>import java.awt.*;&lt;br /&gt;import java.applet.*;&lt;br /&gt;//&lt;Applet code=spiral.class width=250 height=200&gt;&lt;/Applet&gt;&lt;br /&gt;public class spiral extends Applet&lt;br /&gt;{&lt;br /&gt;   public void paint(Graphics g)&lt;br /&gt;   {&lt;br /&gt;      int x1=350,y1=350,x2=400,y2=350,y3,x3,x4,y4,i;&lt;br /&gt;      g.drawLine(x1,y1,x2,y2);&lt;br /&gt;     x3=x2;&lt;br /&gt;      g.drawLine(x2,y2,x3,y3=y2+45);&lt;br /&gt;     y4=y3;&lt;br /&gt;      x4=x1-25;&lt;br /&gt;      g.drawLine(x3,y3,x4,y4);&lt;br /&gt;     for(i=1;i&lt;10;i++)&lt;br /&gt;      {    &lt;br /&gt;        x1=x4;&lt;br /&gt;        y1=y1-25;&lt;br /&gt;        g.drawLine(x4,y4,x1,y1);&lt;br /&gt;       y2=y1;&lt;br /&gt;       x2=x2+25;&lt;br /&gt;       g.drawLine(x1,y1,x2,y2);&lt;br /&gt;       x3=x2;&lt;br /&gt;      y3=y3+25;&lt;br /&gt;      g.drawLine(x2,y2,x3,y3);&lt;br /&gt;      y4=y3;x4=x1-25;&lt;br /&gt;     g.drawLine(x3,y3,x4,y4);&lt;br /&gt;     }&lt;br /&gt;  } &lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/5048881198579389701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-print-spiral-through-applet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5048881198579389701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/5048881198579389701'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-print-spiral-through-applet.html' title='Program to print spiral through applet.'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-3966187918704006326</id><published>2012-07-07T19:03:00.002+05:30</published><updated>2012-07-07T19:05:20.506+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA HELPLINE"/><title type='text'>Program to find reverse of a string but returning in same order</title><content type='html'>import java.util.*;&lt;br /&gt;class Reverse&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt; public static void main(String fj[])&lt;br /&gt;    {&lt;br /&gt;           int b=0,j=-2,j1;&lt;br /&gt;       Scanner s1=new Scanner(System.in);&lt;br /&gt;                 System.out.println(&quot;\nEnter the string&quot;);&lt;br /&gt;            String str=s1.nextLine();&lt;br /&gt;                 int v=0;          &lt;br /&gt;                 System.out.println(&quot;\n\n&quot;);      &lt;br /&gt;           for(int i=0;i&lt;str.length();i++)&lt;br /&gt;            {&lt;br /&gt;int r=str.charAt(i);        if((((int)r)==32)||(i==(str.length()-1)))&lt;br /&gt;                { &lt;br /&gt;                   j++;&lt;br /&gt;                    for(j1=j;j1&gt;=b;j1--)&lt;br /&gt;            {&lt;br /&gt;                     System.out.print(str.charAt(j1));     &lt;br /&gt;                   }&lt;br /&gt;                   System.out.print(&quot; &quot;);&lt;br /&gt;                   j++;               &lt;br /&gt;                  b=j;&lt;br /&gt;                }&lt;br /&gt;                else&lt;br /&gt;                 {&lt;br /&gt;                    j++;&lt;br /&gt;                   &lt;br /&gt;   }&lt;br /&gt;                                        &lt;br /&gt;            } &lt;br /&gt;          &lt;br /&gt;      System.out.println(&quot;\n\n&quot;);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator&gt;cd\&lt;br /&gt;&lt;br /&gt;C:\&gt;cd java&lt;br /&gt;&lt;br /&gt;C:\java&gt;cd bin&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;javac Reverse.java&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;java Reverse&lt;br /&gt;&lt;br /&gt;Enter the string&lt;br /&gt;MEENAKSHI SHARMA&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IHSKANEEM AMRAHS</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/3966187918704006326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-find-reverse-of-string-but.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/3966187918704006326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/3966187918704006326'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-find-reverse-of-string-but.html' title='Program to find reverse of a string but returning in same order'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5546402395475930545.post-8673552061885438011</id><published>2012-07-07T19:01:00.002+05:30</published><updated>2012-07-07T19:03:27.996+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA HELPLINE"/><title type='text'>Program to show concept of overloading.</title><content type='html'>import java.util.*;&lt;br /&gt;class Overl&lt;br /&gt;{&lt;br /&gt; int a;&lt;br /&gt; double area(double r)&lt;br /&gt; {&lt;br /&gt;  return 3.14*r*r;&lt;br /&gt; }&lt;br /&gt; double area(double l,double b)&lt;br /&gt; {&lt;br /&gt;  return l*b;&lt;br /&gt; }&lt;br /&gt; int area(int a)&lt;br /&gt; {&lt;br /&gt;  return a*a;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class Main&lt;br /&gt;{&lt;br /&gt; public static void main(String ar[])&lt;br /&gt; {&lt;br /&gt;  Overl o1=new Overl();&lt;br /&gt;  double c,d;&lt;br /&gt;  int n;&lt;br /&gt;  c=o1.area(5.2);&lt;br /&gt;  System.out.println(&quot;area of circle is=&quot;+c);            &lt;br /&gt;  d=o1.area(2.3,2.3);&lt;br /&gt;  System.out.println(&quot;area of rectangle is=&quot;+d);&lt;br /&gt;  n=o1.area(4);&lt;br /&gt;  System.out.println(&quot;area of square is=&quot;+n);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Output:-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator&gt;cd\&lt;br /&gt;&lt;br /&gt;C:\&gt;cd\java\bin&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;javac Main.java&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;java Main&lt;br /&gt;area of circle is=84.90560000000002&lt;br /&gt;area of rectangle is=5.289999999999999&lt;br /&gt;area of square is=16&lt;br /&gt;&lt;br /&gt;C:\java\bin&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishtha-programming-world.blogspot.com/feeds/8673552061885438011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-show-concept-of-overloading.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/8673552061885438011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5546402395475930545/posts/default/8673552061885438011'/><link rel='alternate' type='text/html' href='http://nishtha-programming-world.blogspot.com/2012/07/program-to-show-concept-of-overloading.html' title='Program to show concept of overloading.'/><author><name>Meenakshi Sharma</name><uri>http://www.blogger.com/profile/01116918390576983658</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFseVDoXCTd54Uae_6CCl1YqRB4lz2GJaH17nQGHz1Hyh7dX4GFSKX1oWyA6NpGFBFymswtLIAnJARcw0QlV0PGirIo6o-4cn5w-OoHiWx9tK_Kpljd8VUvHbBrM4K/s123/M.jpg'/></author><thr:total>0</thr:total></entry></feed>