$ cat f1
Number of Dynamic Addresses Allocated : 107790 Addresses:
10.3.29.202,10.47.1.145,10.2.4.98,190.1.89.95
10.38.3.114,10.38.31.12,205.211.32.175,10.18.30.15,200.122.18.29
Number of Static Addresses Allocated : 107791 Addresses:
11.3.29.202,11.47.1.145,11.2.4.98,190.1.89.95
11.38.3.114,11.38.31.12,205.211.32.175,11.18.30.15,211.122.18.29
Number of Static Addresses Allocated : 107792 Addresses:
12.3.29.202,12.47.1.145,12.2.4.98,190.1.89.95
12.38.3.124,12.38.31.12,205.212.32.175,12.18.30.15,212.122.18.29
Number of Dynamic Addresses Allocated:107793 Addresses:
13.3.29.202,13.47.1.145,13.2.4.98,190.1.89.95
13.38.3.134,13.38.31.13,205.213.32.175,13.18.30.15,213.132.18.29
Code:
$ sed -n '/Number of Dynamic/','/Number of Static/p' f1|grep -v "[a-zA-Z]"|tr "," "|"
10.3.29.202|10.47.1.145|10.2.4.98|190.1.89.95
10.38.3.114|10.38.31.12|205.211.32.175|10.18.30.15|200.122.18.29
13.3.29.202|13.47.1.145|13.2.4.98|190.1.89.95
13.38.3.134|13.38.31.13|205.213.32.175|13.18.30.15|213.132.18.29
$
Hi All,
I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text.
An example of 4 lines in my file is:
1. MatchText_randomNumberOfText moreData ReplaceMe moreData
2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Dear All,
i want to search particular string and want to replance next line value.
following is the test file.
search string is
tmp,???
,10:1 "???" may contain any 3 character it should remain the same and next line replace with ,10:50
tmp,123 --- if match tmp,??? then... (3 Replies)
Hello.
I want to find a line that has "new = 0" in it, then search back based on field $4 () in the current line, and find the first line that has field $4 and "last fetch"
Grep or Awk preferred.
Here is what the data looks like:
2013-12-12 12:10:30,117 TRACE last fetch: Thu Dec 12... (7 Replies)
Hello.
I have been looking high and low for the solution for this. I seems there should be a simple answer, but alas.
I have a big xml file, and I need to extract certain information from specific items. The information I need can be found between a specific set of tags. let's call them... (2 Replies)
In the bash below I am trying to run the script entire script including the ....(which is a bunch of code) and then in the run function if the user response is y (line in bold). then start processing from execute function. Basically, goto the # extract folder for variable filename line and start... (4 Replies)
Well, guys I saw a question about GOTO for Python.
So this gave me the inspiration to attempt a GOTO function for 'dash', (bash and ksh too).
Machine: MBP OSX 10.14.3, default bash terminal, calling '#!/usr/local/bin/dash'...
This is purely a fun project to see if it is possible in PURE... (3 Replies)
Finally!
Yesterday I FINALLY figured out why Google Search Console (GSE) was showing so many pages with 302 redirects in our link budget. For over a year, I thought this issue was relate to either Apache2 or DBSEO (our PHP module which rewrites our links to be SEO friendly). However, when I... (5 Replies)
The following is a multi-line shell command example:
$cargo build
Compiling prawn v0.1.0 (/Users/ag/rust/prawn)
error: failed to resolve: could not find `setup_panix` in `human_panic`
--> src/main.rs:14:22
|
14 | human_panic::setup_panix!();
| ... (2 Replies)
Discussion started by: yogi
2 Replies
LEARN ABOUT DEBIAN
addresstool
ADDRESSTOOL(1) General Commands Manual ADDRESSTOOL(1)NAME
ADDRESSTOOL - Command-line utility for the Addresses framework
SYNOPSIS
addresstool [options] command [parameters]
DESCRIPTION
addresstool is a command-line utility for the Addresses framework for manipulating the address book
Note: addresstool is named adtool in the upstream distribution, but was renamed in Debian to avoid conflicting with the adtool package.
OPTIONS -l turn on localization of property names
-h turn off printing of header
PERSON MANAGEMENT COMMANDS
people Show all people (ID and name)
showperson {PERSONID|me}
Show a person's complete record
setme PERSONID
Mark the given person as the 'me' record
exportimage PERSONID FILENAME
Export a person's image
importimage PERSONID FILENAME
Export a person's image
GROUP MANAGEMENT COMMANDS
groups Show toplevel groups
members GROUPID
Display the members of the given group
addmember GROUPID PERSONID
Add a person to a group
delmember GROUPID PERSONID
Remove a person from a group
subgroups SUPERGROUPID
Show a group's subgroups
addgroup [SUPERGROUPID] NAME
Add a group to toplevel or the given supergroup
delgroup [SUPERGROUPID] GROUPID
Remove a group from toplevel or the given supergroup
parentgroups {GROUPID|PERSONID}
Show a record's parent group(s)
GENERAL COMMANDS
tree Show a tree view of all members and groups
config Show the current address book configuration
import FILE [FILE ...]
Merge file(s) with the database. Supported file types: vcf, mfaddr
SEE ALSO
http://giesler.biz/bjoern/English/Software.html
http://www.gnustep.org/
AUTHOR
Addresses for GNUstep was written by Bjoern Giesler.
This manual page was written by Hubert Chan for the Debian project (but may be used by others).
November 16, 2006 ADDRESSTOOL(1)