Linux / UNIX Tech Support Forum
This is a discussion on shell script to find and replace a line using a identifier within the Shell scripting forums, part of the Development/Scripting category; Hi all im having trouble starting with a shell script, i hope someone here can help me i have 2 ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all
im having trouble starting with a shell script, i hope someone here can help me i have 2 files file1: 404905.jpg 516167 404906.jpg 516168 404917.psd 516183 404947.pdf 516250 file2: 516250 /tmp/RecyclePoster18241.pdf 516167 /tmp/ReunionCardFINAL.jpg 516168 /tmp/MPP-3013594-05012009/ReunionBack.jpg 516183 /tmp/Stamp8x5.psd my output would be like: 516167 /tmp/ReunionCardFINAL.jpg 516168 /tmp/MPP-3013594-05012009/ReunionBack.jpg 516183 /tmp/Stamp8x5.psd 516250 /tmp/RecyclePoster18241.pdf note that file1 and file2 is not in particular order it could be 516183 404917.psd 404947.pdf 516250 and so on... although numbers 516183 and 404947 are unique which can be use as an identifier for the output thanks in advance |
| Sponsored Links | ||
|
|
|
||||
|
And how file1 and file2 are related to each other? I'm not able to see any relation between two in your output...?
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| To find and replace in text file | nashtech | Shell scripting | 5 | 01-31-2010 06:32 AM |
| Shell script tp Log files last line | kasimani | Shell scripting | 3 | 03-24-2009 03:25 PM |
| Shell script To find out who have account but are not logged in | gsb1bee | Shell scripting | 4 | 03-21-2009 06:30 PM |
| Shell script to count number of lines in file specified by the second command-line | seaman77 | Shell scripting | 1 | 03-16-2009 07:46 PM |
| writing a shell script to find out my shell name | jaymob123 | Shell scripting | 1 | 10-08-2007 12:36 AM |