Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Output formatting for diff -y Post 302788363 by Buckaroo Banzai on Monday 1st of April 2013 03:36:24 PM
Old 04-01-2013
Jim,
Thanks!! I had never seen that command before (script), that worked perfectly! Also it's always great to learn a new tool, I'll find that useful in many situations I'm sure.

---------- Post updated at 01:36 PM ---------- Previous update was at 01:33 PM ----------

hanson44, you can see in the screenshot what a small part of results.txt looks like. Every line has a pipe "|", the pipes should all line up on the same column. Jim's solutions of using script worked great, it captured the terminal's perspective which is formatted nicely. So I just do that instead of putting it's output into results.txt.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

diff 2 files; output diff's to 3rd file

Hello, I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3. For example: file 1 123 1234 123456 file 2 123 2345 23456 file 3 should have 2345 23456 I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies

2. UNIX for Dummies Questions & Answers

diff output

I have two CSV files and I would like to create a third CSV file containing the differences between the two. I understand the diff command can be used to list differences between two files. My problem is that when I pipe the output into a third CSV file, the line numbers and other formatting... (3 Replies)
Discussion started by: paulp
3 Replies

3. Shell Programming and Scripting

Is there a way to limit DIFF output

Hello is there a way to limit the number of lines output by the DIFF command? I tried -C 200 ect and -c but it continues to print out the whole huge file. Reason needed is i'm trying to do alot of DIFFs on a long list of files and would like to only get back an indicator which files are... (2 Replies)
Discussion started by: bobk544
2 Replies

4. Shell Programming and Scripting

Formatting the output from diff

Hi, i need to display the mismatches from two files.The output what is get is the entire rows which mismatch from file 1 are displayed first and the corresponding rows from file 2 are displayed below it. Sample output: From Test Run 1 - The row count of file2.txt is 23 From Test Run 1 -... (9 Replies)
Discussion started by: ragavhere
9 Replies

5. Shell Programming and Scripting

diff output is it correct??

I'm asking for explanation about the output of the diff format when i compare the two files f1 and f2: root@host1 # cat f1 205226 205237 205250 205255 205262 205274 205307 205403 205464 205477 205500 205520 205626 205759 205766 205776 (2 Replies)
Discussion started by: ahmad.zuhd
2 Replies

6. Shell Programming and Scripting

diff output next to each other

I have two files to compare, but diff output doesn't give me decent output I want. The portion of the two files are shown below. file 1) Authorize <1> Transaction Database Slave 3 <1> CPM HTTP Proxy Server <1> SSP (TDB Server) <1> CPM Application Authorization <7> CPM Script... (5 Replies)
Discussion started by: Daniel Gate
5 Replies

7. Shell Programming and Scripting

Tweaking the output of diff

hello everyone, I am trying to compare two files and have the result in a new files. When I used diff I am getting the header, '<' and '>' in my result which I don't want to have it in my output file. :wall: opt/sam/input: diff file1.txt file2.txt 1,20d0 < 16,ZA, < ZJ,08, < Z7,03, Any... (1 Reply)
Discussion started by: siteregsam
1 Replies

8. Shell Programming and Scripting

Processing diff output

How to get diff to not print the chevrons and the dashes? In this case the differences are all single line differences. Also the first few lines don't matter. How to get the output to always exclude the first few lines? Thanks! (1 Reply)
Discussion started by: stevensw
1 Replies

9. UNIX for Dummies Questions & Answers

What does this diff output mean?

35d34 < What does that mean in diff? (3 Replies)
Discussion started by: glev2005
3 Replies

10. Shell Programming and Scripting

Help with diff output

I am running diff between two directories dir1 and dir2. diff --exclude --recursive --brief -b dir1 dir2 The output of the above command is Files dir1/java/abc/bcd/abc9991.java and dir2/java/abc/bcd/abc9991.java differ Files dir1/java/abc/bcd/abc9933.java and... (11 Replies)
Discussion started by: gaurav99
11 Replies
gnome-panel-screenshot(1)					   User Commands					 gnome-panel-screenshot(1)

NAME
gnome-panel-screenshot - GNOME screenshot utility SYNOPSIS
gnome-panel-screenshot [--window] [--delay=int] DESCRIPTION
gnome-panel-screenshot is the command-line interface version of the gnome-panel screenshot option. The gnome-panel screenshot option cap- tures the complete screen without the delay option. The command-line option is more versatile; it allows you to capture the screen image of a window, as well as the complete screen. gnome-panel-screenshot also allows you to specify a delay before the screen or window is captured into file. If the --window option is used, you must move the mouse pointer to the window to be captured. The --delay option is always used with the --window option, to allow sufficient delay to set up the required screenshot. Once you have captured the window region, you are presented with a preview of the snapshot. You can then choose one of the following three options to handle the captured image: o Save screenshot to file o Save screenshot to desktop o Save screenshot to web page (save in ~/public html) OPTIONS
The following options are supported: --window Capture a screenshot of the window in which the mouse pointer is located. --delay=int Pause for int seconds before capturing the window or screen EXAMPLES
Example 1: Capturing the full screen example% gnome-panel-screenshot EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gnome-panel-scrExecutable for GNOME screenshot utility ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-panel | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. gnome-panel(1) NOTES
Written by Ghee Teo, Sun Microsystems Inc., 2003. SunOS 5.10 2 Oct 2003 gnome-panel-screenshot(1)
All times are GMT -4. The time now is 11:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy