Sponsored Content
Top Forums Shell Programming and Scripting Moving a part of the text in a file Post 302312988 by devtakh on Monday 4th of May 2009 10:12:25 AM
Old 05-04-2009
Quote:
Originally Posted by srikanthgoodboy
it did not work Smilie
What is your expected o/p from the i/p file you have given above?


cheers,
Devaraj Takhellambam
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Moving part of Text in a file

Hi, I have this text in a file where I need to move part of the text.... <Relation1 OriginatingObjectID="Holding_1" RelatedObjectID="Party_1" id="Relation_1"> <OriginatingObjectType tc="4">Holding</OriginatingObjectType> <RelatedObjectType tc="6">Party</RelatedObjectType>... (4 Replies)
Discussion started by: mgirinath
4 Replies

2. UNIX for Dummies Questions & Answers

moving apache part 2

Hi everybody..... please help me in moving apache 2.2 over to another server remotely............. still having problems thank you (12 Replies)
Discussion started by: marinob007
12 Replies

3. Shell Programming and Scripting

Get the latest added part of a text file?

Hi, I want to get the latest added part of a text file sent over the network to for analysis. Is there a tool to use to keep track of which part of a text file that has already been analysed so only the "new" lines will be sent and handled? I have checked a few tools but I still don´t know how to... (3 Replies)
Discussion started by: pcrs
3 Replies

4. Shell Programming and Scripting

extracting part of a text file

Hi guys So I have a very large log file where each event is logged along with the time that it occurred. So for e.g. The contents of the file look like: ... 12:00:07 event 0 happened. 12:01:01 event 1 happened. 12:01:05 event 2 happened. 12:01:30 event 3 happened. 12:02:01 event 4... (10 Replies)
Discussion started by: alinaqvi90
10 Replies

5. Shell Programming and Scripting

moving text within file

I want to mvoe lines around in a file. Say I have 30 lines in a file and want to move the last 5 lines to the top of the file..how can this be done? i thought of awk and sed but was not sure context. please assist thanks (5 Replies)
Discussion started by: sigh2010
5 Replies

6. Shell Programming and Scripting

Remove part of a column in a text file

I have a text file with delimiter "|" and sometimes the zipcode is in "5th" column or "6th" column. I want to scan the file and remove the "-2323" from the zipcode which has zip+4 digits From blah|blah|foo|bar||blah|945523-232|USA blah|blah|foo|bar||blah|foo|94555-2323|USA To... (8 Replies)
Discussion started by: gubbu
8 Replies

7. Shell Programming and Scripting

extract part of text file

I need to extract the following lines from this text and put it in different files. From xxxx@gmail.com Thu Jun 10 21:15:46 2010 Return-Path: <xxxxx@gmail.com> X-Original-To: xxx@localhost Delivered-To:xxxx@localhost Received: from ubuntu (localhost ) by ubuntu (Postfix) with ESMTP... (11 Replies)
Discussion started by: waxo
11 Replies

8. Shell Programming and Scripting

search needed part in text file (awk?)

Hello! I have text file: From aaa@bbb Fri Jun 1 10:04:29 2010 --____OSPHWOJQGRPHNTTXKYGR____ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline My code '234565'. ... (2 Replies)
Discussion started by: candyme
2 Replies

9. Shell Programming and Scripting

To display the selected part in text file of unix

0400903071220312 20120322 20:21 1TRANTELSTRAFLEXCAB22032012CMP201323930000812201108875802100A003485363 12122011AUS 182644 000C2 8122011 0000 000 1TRANTELSTRAFLEXCAB22032012CMP201323930000812201108875802100A003485363 12122011AUS ... (6 Replies)
Discussion started by: rammm
6 Replies

10. Windows & DOS: Issues & Discussions

Renaming part of a text file ?

I have several files that are named like this "DotP_D14 - Verknüpfung" They all have the " - Verknüpfung" in common. I'd like to rename all of them to get rid of that last part. Is this possible with DOS on windows ? (1 Reply)
Discussion started by: pasc
1 Replies
NETMASK(1)							   Debian Linux 							NETMASK(1)

NAME
netmask - a netmask generation and conversion program SYNOPSIS
netmask [ options ] spec [ spec ... ] DESCRIPTION
This program accepts and produces a variety of common network address and netmask formats. Not only can it convert address and netmask notations, but it will optimize the masks to generate the smallest list of rules. This is very handy if you've ever configured a firewall or router and some nasty network administrator before you decided that base 10 numbers were good places to start and end groups of machines. OPTIONS
-h, --help Print a summary of the options -v, --version Print the version number -d, --debug Print status/progress information -s, --standard Output address/netmask pairs -c, --cidr Output CIDR format address lists -i, --cisco Output Cisco style address lists -r, --range Output ip address ranges -x, --hex Output address/netmask pairs in hex -o, --octal Output address/netmask pairs in octal -b, --binary Output address/netmask pairs in binary -n, --nodns Disable DNS lookups for addresses DEFINITIONS
A spec is an address specification, it can look like: address One address. address1:address2 All addresses from address1 to address2. address1:+address2 All addresses from address1 to address1+address2. address/mask A group starting at address spanning mask. An address is an internet network address, it can look like: ftp.gnu.org An internet hostname. 209.81.8.252 A standard dotted quad internet address notation. 100 A decimal number (100 in this case). 0100 An octal number preceded by "0" (64 in this case). 0x100 A hexadecimal number preceded by "0x" (256 in this case). A mask is a network mask, it can look like: 255.255.224.0 A dotted quad netmask (netmask will complain if it is not a valid netmask). 0.0.31.255 A Cisco style inverse netmask (with the same checks). 8 The number of bits set to one from the left (CIDR notation). 010 The number of bits set to one from the left in octal. 0x10 The number of bits set to one from the left in hexadecimal. AUTHOR
netmask was written by Robert Stone. Some algorithm design and optimization was provided by Tom Lear. This manual page was written by Robert Stone. BUGS
Let me know if you find any. This man page is a bit more simplistic than I'd like, but I've forgotten most of the groff I once knew. SEE ALSO
ipchains(1), ipfwadm(8), netstat(8), route(8), routed(8), gated(8), tcpd(8) Debian Project 15 May 1999 NETMASK(1)
All times are GMT -4. The time now is 08:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy