![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Debian: doubt in "top" %CPU and "sar" output | jaduks | Debian | 0 | 09-12-2007 09:05 AM |
| lsuser -c "ALL" - Output of this command | Malar | AIX | 3 | 03-13-2007 07:52 AM |
| Maximum input file size in "Diff" Command | Neeraja | UNIX for Dummies Questions & Answers | 1 | 01-17-2007 10:09 AM |
| diff on c-source file always returns "files differ" | C-Prog-Man | UNIX for Dummies Questions & Answers | 7 | 08-31-2006 02:57 PM |
| Unix "at" / "Cron" Command New Problem...Need help | Mohanraj | UNIX for Dummies Questions & Answers | 3 | 01-26-2006 08:08 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
reformat the output from "diff" command
Hi all, I use the diff command and got the output: Code:
$> diff -e file1.txt file2.txt 15a 000675695 Yi Chen Chen 200520 EASY 50 2/28/05 0:00 SCAD Debit Card Charge . 12a 000731176 Sarah Anderson 200520 EASY 25 2/28/05 0:00 SCAD Debit Card Charge . 11a 000624694 Meagan Thomas 200520 EASY 402 2/28/05 0:00 SCAD Debit Card Charge 000679538 Nicole Blackmon 200520 EASY 750 2/28/05 0:00 SCAD Debit Card Charge . 2a 000679668 Ashley Tucker 200520 EASY 200 2/28/05 0:00 SCAD Debit Card Charge 000672299 Candace Daniels 200530 EASY 100 2/28/05 0:00 SCAD Debit Card Charge . How do i get rid of the line above the data? I used "comm" and it works for the format, but sometimes it doens't give me the right results, maybe i change the .xls files to .txt files Thanks CT Last edited by CamTu; 02-28-2005 at 05:52 PM.. |
|
||||
|
zazzybob, Thanks for your response, that's exactly what i am looking for But i was just wondering, if i want the output in the actual position of these row within the output file, what is the code like? for instant, i want to get rid of those lines with 1a2,3, 4a7, 7a11, 10a15 and the ">" in front of the line. Code:
$ > diff 1.txt 2.txt 1a2,3 > 000685115 Ariel Wilchek 200520 EASY 150 2/28/05 0:00 SCAD Deb it Card Charge > 000686937 Charles Payne 200520 EASY 200 2/28/05 0:00 SCAD Deb it Card Charge 4a7 > 000735567 Hayden Lewis 200520 EASY 50 2/28/05 0:00 SCAD Deb it Card Charge 7a11 > 000701166 Kyle Provencal 200520 EASY 500 2/28/05 0:00 SCAD Debit Card Charge 10a15 > 000014514 Tiffany Jennings 200520 EASY 65 2/28/05 0:00 SCAD Debit Card Charge Once again....thanks ! CT |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|