I am really lost I don't know what this line does. Please help I'm very lost. Thanks in advance.
cat CPROGRAMS.c
|sed 's// /g'|tr ' ' '\012'
|grep ''
|sed 's/^*/ /'
|grep '($'|sort -u|tr -d "("` (4 Replies)
OK, I am trying to become more familiar with grep and sed.
I have a file that is storing some records. I am allowing a user to
search for a keyword in the file with this:
grep -i "$keyword" testFile|sed -n -e 's/^/\
/' -e 's/:/\
/gp'
... (15 Replies)
I have a file that contains many instances of double dollar signs. I want to use sed to get the first occurrence. for example, given the following data.
#Beginning of file
AB
34
$$
AB
$$
AB
98
$$
I only want to pull out:
AB
34
$$ (1 Reply)
Hi All,
I have created a bourne script that basically wants to split a file up in to different parts. I have this working if the file has all the information on different lines but if it doesn't then it doesn't work.
i.e.
If this is the file
hello
12345
good bye
6789
I could grep all the... (5 Replies)
hello everybody!
I have a html file which is not properly formatted meaning that the whole content is in one line.
I want to to cut out certain parts of that file. Those parts are between ' #" ' and ' " ' and always start with ' sec_ ' and after the ' sec_ ' any number of characters and ' _... (2 Replies)
HI all,
i have a line in a file it contains
Code:
one;two_1_10;two_2_10;two_3_10;three~
now i need to get the output as
Code:
one;two_1_abc_10;two_2_abc_10;two_3_abc_10;three~ ( 1 should be replaced with 1_abc for two__abc_10 , and one more thing the number of occurances of... (6 Replies)
So I have a html file with a bunch of words inside tags and I need to extract just the words, and I'm not sure exactly what the best way to do this is. The format is as follows:
<tr>
<td>word 1</td>
<td>word 2</td>
</tr>
And all I want to extract is the 'word 2'. First I tried... (3 Replies)
I am stranded with a problem. Please solve.
How will you remove blank lines from a file using sed and grep? ( blank line contains nothing or only white spaces).
I run the below commands of sed and grep but grep isn't giving output as desired. Why?
sed '/^*$/d' blank
grep -v "^*$" blank... (3 Replies)
Hi,
I have a file with reoccurring patterns and I want extract the 3rd line after the match, then delete another pattern from that third line.
For example the file is in the following format:
Hello
Name: Abc
Number: 123
Hello
Name: FQE
Number: 543
This occurs more than 100... (4 Replies)
Hi ,
I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows.
# diff mir_lex.c.modified mir_lex.c.orig
3209c3209
< if(yy_current_buffer -> yy_is_our_buffer == 0) {
---
>... (5 Replies)
Discussion started by: breezevinay
5 Replies
LEARN ABOUT CENTOS
zenmap
ZENMAP(1) Zenmap Reference Guide ZENMAP(1)NAME
zenmap - Graphical Nmap frontend and results viewer
SYNOPSIS
zenmap [options] [results file]
DESCRIPTION
Zenmap is a multi-platform graphical Nmap frontend and results viewer. Zenmap aims to make Nmap easy for beginners to use while giving
experienced Nmap users advanced features. Frequently used scans can be saved as profiles to make them easy to run repeatedly. A command
creator allows interactive creation of Nmap command lines. Scan results can be saved and viewed later. Saved scan results can be compared
with one another to see how they differ. The results of recent scans are stored in a searchable database.
This man page only describes the few Zenmap command-line options and some critical notes. A much more detailed Zenmap User's Guide is
available at http://nmap.org/book/zenmap.html. Other documentation and information is available from the Zenmap web page at
http://nmap.org/zenmap/.
OPTIONS SUMMARY -f, --file results file
Open the given results file for viewing. The results file may be an Nmap XML output file (.xml, as produced by nmap -oX) or a Umit scan
results file (.usr). This option may be given more than once.
-h, --help
Show a help message and exit.
-n, --nmap Nmap command line
Run the given Nmap command within the Zenmap interface. After -n or --nmap, every remaining command line argument is read as the
command line to execute. This means that -n or --nmap must be given last, after any other options. Note that the command line must
include the nmap executable name: zenmap -n nmap -sS target.
-p, --profile profile
Start with the given profile selected. The profile name is just a string: "Regular scan". If combined with -t, begin a scan with the
given profile against the specified target.
-t, --target target
Start with the given target. If combined with -p, begin a scan with the given profile against the specified target.
-v, --verbose
Increase verbosity (of Zenmap, not Nmap). This option may be given multiple times to get even more verbosity.
Any other arguments are taken to be the names of results files to open.
ENVIRONMENT VARIABLES
ZENMAP_DEVELOPMENT
Set ZENMAP_DEVELOPMENT to disable automatic crash reporting.
BUGS
Like their authors, Nmap and Zenmap aren't perfect. But you can help make them better by sending bug reports or even writing patches. If
Nmap or Zenmap doesn't behave the way you expect, first upgrade to the latest version available from http://nmap.org. If the problem
persists, do some research to determine whether it has already been discovered and addressed. Try Googling the error message or browsing
the nmap-dev archives at http://seclists.org/. Read this full manual page as well. If nothing comes of this, mail a bug report to
<dev@nmap.org>. Please include everything you have learned about the problem, as well as what version of Zenmap you are running and what
operating system version it is running on. Problem reports and Zenmap usage questions sent to dev@nmap.org are far more likely to be
answered than those sent to Fyodor directly.
Code patches to fix bugs are even better than bug reports. Basic instructions for creating patch files with your changes are available at
https://svn.nmap.org/nmap/HACKING. Patches may be sent to nmap-dev (recommended) or to Fyodor directly.
HISTORY
Zenmap was originally derived from Umit, an Nmap GUI created during the Google-sponsored Nmap Summer of Code in 2005 and 2006. The primary
author of Umit was Adriano Monteiro Marques. When Umit was modified and integrated into Nmap in 2007, it was renamed Zenmap.
AUTHORS
Nmap
Fyodor <fyodor@nmap.org> (http://insecure.org)
Hundreds of people have made valuable contributions to Nmap over the years. These are detailed in the CHANGELOG file which is distributed
with Nmap and also available from http://nmap.org/changelog.html.
Umit
Zenmap is derived from the Umit Nmap frontend, which was started by Adriano Monteiro Marques as an Nmap/Google Summer of Code project
(<py.adriano@gmail.com>, http://www.umitproject.org).
Zenmap 07/28/2013 ZENMAP(1)