Thank you for the prompt response guys!! I appreciate all your help!!
I must have been little clear on my requirement and output that I am expecting!!
I was writing a script to compare the files using sdiff or comp utility!! Before doing that I wanted the script to be generic where user can update a config file which expects the file name patterns (ex- file starts with 20170212 and end with .txt) This would be one set which I would call source. Similarly the config to be updated with file start and end patter for target. (ex- 20170213 and ends with .txt)
I may get following files in the list-
Source-
Target-
Without expecting users to do a mapping manual to do a comparison of these files. I would want to map them based on nearest match and run the comparison.
Expected map-
Hope I was able to explain my requirement!!
You guys are awesome!! Thanks again!!
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by RudiC; 02-27-2017 at 01:26 PM..
Reason: Added CODE tags.
This is on a Solaris 9 box, but I feel like a noob, so I am posting here. When I echo $PATH I get a lot of duplicate paths and extra stuff I don't need. What I want is just what I set up in my home dir under .profile
My login shell=/bin/bash
I checked the following and there are no path... (1 Reply)
This is what I have:
#include <stdio.h>
int main (void)
{
int integerVar;
int floatingVar;
int doubleVar;
int charVar;
integerVar = 100;
floatingVar = 331.79;
doubleVar = 8.44e+11;
charVar = 'W';
_Bool boolVar;
boolVar = 0;
... (3 Replies)
Hi there all,
I am having a question.
Is it posible to compare elements of 2 different arrays?
For example I got
Array 1 | Array 2
123_abc | 123_bcd
123_bcd | 234_bcd
234_abc | 567_abc
234_bcd | 123_abc
than the match is
123_abc & 234_bcd and non of the others.
So... (3 Replies)
All
i am struggling to raplace some text in a line between two (closest) patterns ,
line="/home/usr/bin/:/home/usr/devuser,n1.9/bin:/home/usr/root/bin"
i want to replace "devuser,n1.9" with "NEWVAL", basically all teh text from "devuser" until nearest '/' with some new text.
i tried teh... (1 Reply)
Hi, I got the following errors during zfs resource pool configuration. Please help. Thanks.
# svcs *pool*
svcs: Pattern 'pooladm.conf' doesn't match any instances
STATE STIME FMRI
# svcadm enable system/pools:default
# svcs *pool*
svcs: Pattern 'pooladm.conf' doesn't match any... (4 Replies)
Its rather confusing, the output of top command is below:
The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image."
But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Hi All,
I have been surfing to get some idea on how to compare same files from two different paths.
one path will have oldfiles directory and another path will have newfiles directory. Each main directories will have sub-directories in them and
each sub-directories inturn will have... (3 Replies)
Hi All,
I have written the shell script which does the following :
a. Reads the *.cnf file content from the specified input folder path
b. Grep's some strings from the *.cnf file and writes the output in result file(*.cnf_result.txt) in output folder
c. Now, if we get new version of... (5 Replies)
Hi guys, looking for some help with a way to compare data in two files but with some conditions.
example,
File 1 consists of
site1,10.1.1.1
site2,20.2.2.2
site3,30.3.3.3
File 2 contains
site1,l0.1.1.1
site2,50.1.1.1
site3,30.3.3.3
site4,40.1.1.1
I want to be able to match the... (1 Reply)
I'm loged on server A as user infa8. I want to login via ssh key on server B as user ussdsc.
destination server (B) is a redHat 6.2.
Permissions for ussdsc@B for home, ssh and authorized_keys:
$ ls -ltr | grep ussdsc
drwxr-xr-x. 29 ussdsc mobifon 4096 Feb 18 11:43 ussdsc
$ getfacl... (8 Replies)