01-08-2008
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
i want to add the gtk libraries into my Sun Solaris 8.
So i got this file from http://www.sunfreeware.com/.
glib-1.2.10-sol8-sparc-local.gz
After i gzip -d it, i got the file below.
glib-1.2.10-sol8-sparc-local
then, what should i do ? how to continue?
pls help me. thank... (1 Reply)
Discussion started by: champion
1 Replies
2. UNIX for Dummies Questions & Answers
I need to do a project that is suppose to read a file and it is suppose to display the number of the line plus whatever the file is reading indented by a tab:
example file:
"This is
the test
file."
expected output:
1 "This is
2 the test
3 file."
I am having two... (1 Reply)
Discussion started by: lesgoodfella
1 Replies
3. UNIX for Dummies Questions & Answers
Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some.
I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
Discussion started by: EugeneG
4 Replies
4. Shell Programming and Scripting
Quick question...I'm trying to grab the .tif file name from this output from our fax server. What is the best way i can do this in a bash script? I have been looking at regular expressions with bash or using awk but having some trouble. thanks! The only output i want is... (5 Replies)
Discussion started by: kuliksco
5 Replies
5. Shell Programming and Scripting
Hi,
Need to delete all the records prior to pattern (INSERT/UPDATE/DELETE). If ' is available, then need to retain it.
Input
======================
l_s := ' INSERT INTO TEST'
l_P PD := ' UPDATE INTO TEST'
l_D := ' DELETE INTO TEST'
This is test
Input
======================... (1 Reply)
Discussion started by: saurabhbaisakhi
1 Replies
6. Shell Programming and Scripting
I have a collection of text files that comprise a mailing list archive. I grep them to find an email that interests me, then open the file in a text editor to find the surrounding paragraph of text. Is there an easy way to do this from the shell instead? (2 Replies)
Discussion started by: CRGreathouse
2 Replies
7. Shell Programming and Scripting
I have to write a program to read data from files and then format into another file. However, I face a strange problem related to control character that I can't understand and solve.
The source file is compose of many lines with such format:
T_NAME|P_NAME|P_CODE|DOCUMENT_PATH|REG_DATE
... (3 Replies)
Discussion started by: hk6279
3 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
i have a requirement where i need to format the input RAW file ( which is CSV) by using another mapping file(also CSV file). basically i am getting feed file with dynamic headers by using mapping file (in that target field is mapped with source filed) i have to convert the raw file into... (6 Replies)
Discussion started by: ravi4informatic
6 Replies
LEARN ABOUT REDHAT
diffstat
DIFFSTAT(1) General Commands Manual DIFFSTAT(1)
NAME
diffstat - make histogram from diff-output
USAGE
diffstat [options] [file-specifications]
SYNOPSIS
This program reads the output of diff and displays a histogram of the insertions, deletions, and modifications per-file.
DESCRIPTION
Diffstat is a program that is useful for reviewing large, complex patch files. It reads from one or more input files which contain output
from diff, producing a histogram of the total lines changed for each file referenced. If the input filename ends with .bz2, .Z or .gz,
diffstat will read the uncompressed data via a pipe.
Diffstat recognizes the most popular types of output from diff:
unified
preferred by the patch utility.
context
best for readability, but not very compact.
default
not good for much, but simple to generate.
Diffstat detects the lines that are output by diff to tell which files are compared, and then counts the markers in the first column that
denote the type of change (insertion, deletion or modification). These are shown in the histogram as "+", "-" and "!" characters.
If no filename is given on the command line, diffstat reads the differences from the standard input.
OPTIONS
-c prefix each line of output with "#", making it a comment-line for shell scripts.
-f format
specify 0 for concise, 1 for normal output.
-k suppress the merging of filenames in the report.
-n number
specify the minimum width used for filenames. If you don't specify this, diffstat uses the length of the longest filename, after
stripping common prefixes.
-p number
override the logic that strips common pathnames, simulating the patch "-p" option.
-u suppress the sorting of filenames in the report.
-V prints the current version number
-w number
specify the maximum width of the histogram. The plot will never be shorter than 10 columns, just in case the filenames get too
large.
ENVIRONMENT
Diffstat runs in a portable UNIX(R) environment.
FILES
Diffstat is a single binary module, which uses no auxiliary files.
BUGS
Diffstat makes a lot of assumptions about the format of a diff file.
There's no easy way to determine the degree of overlap between the "before" and "after" displays of modified lines.
SEE ALSO
diff (1).
AUTHOR
Thomas Dickey <dickey@invisible-island.net>.
DIFFSTAT(1)