Please become accustomed to provide decent context info of your problem.
It is always helpful to carefully and detailedly phrase a request, and to support it with system info like OS and shell, related environment (variables, options), preferred tools, adequate (representative) sample input and desired output data and the logics connecting the two including your own attempts at a solution, and, if existent, system (error) messages verbatim, to avoid ambiguities and keep people from guessing.
What exactly is going wrong with your code snippet - after having added a semicolon in front of the do? And, except this being incredibly inefficient. When I run it, it gives me the file2 lines for the names in file1.
Hi all,
I'm new to awk and I'm experiencing syntax error that I don't know how to resolve. Hopefully some experts in this forum can help me out.
I created an awk file that look like this:
$ cat myawk.awk
BEGIN {
VAR1=PATTERN1
VAR2=PATTERN2
}
/VAR1/ { flag=1 }
/VAR2/ { flag=0 }
{... (7 Replies)
Hi All, need some help with writing a shell script. I tried to search this forum but couldn't find exactly what i want. If you all know any reference link i can read and refer to solve my issue, let me know.
I got 1 file i.e: example.txt. It is content list of data, as below example.
What... (2 Replies)
Dear all,
How can I print results (and of course, send this result to the text file) of sed command.
I mean, I want to know which lines of which files sed command has found.
For e.g, the result text file should contains:
file1.c:line 12
file2.h:line 14
file2.h:line 37
Please help me (10 Replies)
Hello ,
When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
print from an ip_list file containing 300 ip's
the directory of the results is /var/tmp/1.1.1.1
the 1.1.1.1 will change according to the /tmp/ip_list file i.e
1.1.1.1
2.2.2.2
3.3.3.3
I need the results from /var/tmp/1.1.1.1 once done the script goes to the next ip address in... (11 Replies)
I'm interested in writing a report script using BASH that searches all of the files in a particular directory for a keyword and printing a list of files containing this string...
In fact this reporting script would have searches for multiple keywords, so I'm interested in making multiple... (2 Replies)
Hey,
I added an animation switch on the search results page; so by default the thread previews are off, but if you want to look at them, just click on the green button and the thread previews will turn on (and back off).
See image and attached animation:
... (1 Reply)
Discussion started by: Neo
1 Replies
LEARN ABOUT HPUX
dce_version
dce_version(8)dce_version(8)NAME
dce_version - print version information for HP DCE/9000 components
SYNOPSIS
/opt/dcelocal/etc/dce_version [-uvlG] [-g group_list] [-f version_file] [files ... ]
OPTIONS -u Print a usage message.
-v Print DCE version. This is the default behavior.
-l List available groups of interesting files.
-F Print the name of the default version information file.
-G Search files in all groups for what strings.
-g group_list
Search files in groups specified by group_list for what strings. group_list is a comma or white-space-separated list of group
names. The available group names can be listed with -l.
-f version_file
Specify an alternate version information file to use. The version information file contains the DCE version string and
group/file lists. The default version information file is /opt/dcelocal/etc/dce_vinfo.
DESCRIPTION
By default, dce_version prints the version of DCE that is currently installed. It can also print the what strings for one or more groups
of ``interesting'' DCE files, list the available group names and descriptions, or search any specified file for DCE what strings. More
than one action can be specified in a single invocation of dce_version.
Filenames to be searched for DCE what strings should be specified after any command line options.
FILES
/opt/dcelocal/etc/dce_vinfo
SEE ALSO what(1)HP DCE dce_version(8)