![]() |
|
|
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 |
| Editing a File | ramkriz | Shell Programming and Scripting | 1 | 09-19-2008 09:22 AM |
| file editing | ambavaram | Linux | 0 | 06-24-2008 07:11 PM |
| editing ELF file | tejuwala | Linux | 1 | 05-18-2008 12:22 AM |
| How to editing a txt file | aaabbb123123 | Shell Programming and Scripting | 3 | 03-07-2008 12:31 AM |
| File editing using awk | rinku11 | Shell Programming and Scripting | 2 | 11-23-2006 11:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
file editing
hi experts,
please help me in writting the script.. i have two files file1 and file 2 i have to write a script which will take input parameters as file1 and file2 file1: ...... 1 2 3 4 file2: ..... 1 2 output ........ 1 file2 2 file2 3 ...... 4 ...... the output must be stored in another file (either .doc or .xls) thanks in advance subhendu |
|
||||
|
i am trying to make it more clear
while executing the script from the command line it will take two parameters. lets say file1 and file2 contents of file1 and file2 are in those files data stored in columns lets say file1 and file2 contains names as file1 ----- 1 2 3 4 file2 ----- 1 2 hence the output will be output ------ 1 file2 2 file2 3 ..... 4 ..... means it will search the names present in file2 in file1.. if the names presnt in file1 then it will print the file name against the names present in file1 and will put blank for other names present in file1. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|