![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to detect failure from batch SFTP and SHELL operations | chengwei | Shell Programming and Scripting | 2 | 05-28-2008 04:32 AM |
| Unix File operations | nivas | Shell Programming and Scripting | 14 | 02-11-2008 02:27 AM |
| Unix Shell Script with output to CSV File | heather.morton@ | UNIX for Advanced & Expert Users | 1 | 01-28-2008 10:18 AM |
| File operations | chiragmistry21 | Shell Programming and Scripting | 2 | 03-27-2006 02:00 PM |
| mathematics operations in unix | cesar720213 | UNIX for Dummies Questions & Answers | 2 | 11-22-2001 08:24 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unix file operations(shell script)
Hi,
I want to compare two files. Files will look like as follows: file1: ASDFGHJU|1234567890123456 QWERTYUI|3456789098900890 file2: ZXCVBVNM|0987654321234567 POLKIJUYH|1234789060985478 output file should be: ASDFGHJU|1234567890123456 QWERTYUI|3456789098900890 Thnaks in advance |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
... and what is the 'criteria'?
|
|
#3
|
|||
|
|||
|
Unix file operations(shell script)
I want to get the contents that are not present in file2.
I.e File1 and file2 should be compared and output file should be the contents that are present in file 1 and not present in file2. Please help me. thanks. |
|
#4
|
||||
|
||||
|
if the files are sorted, look into 'man comm'
also look into 'man egrep' Last edited by vgersh99; 02-07-2008 at 03:53 AM. |
|
#5
|
|||
|
|||
|
Unix file operations(shell script)
I don't want to use diff command. because it displays other things also while comparing.
1d0 < CREDPOST|6001123412341234 I don't want 1d0 < Please give me a command. |
|
#6
|
||||
|
||||
|
pls read my previous post!
|
|
#7
|
|||
|
|||
|
Unix file operations(shell script)
THanks,
comm command works fine. |
|||
| Google The UNIX and Linux Forums |