Shell way to get specific text based on condition
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Using shell script I am making a db call on database VM and I am getting and storing the query response into a .txt file. Which looks like below:
X folder Check:
Number of Files on X Outbound
17
Y folder Check:
Number of Files on Y Outbound
17
Z folder Check:
Number of Files on Z Outbound
18
Now for each of the X,Y and Z. I am basically receiving files(counts) on their respective locations. So I am expecting to get "18" files for each X,Y and Z. Now using shell I want to be able to know/store the folders for which I didn't receive 18 files.
Example: here in the above case I should get that I am missing files for X and Y folders.
Any help ?? Thank you.
shell-script cron text
add a comment |Â
up vote
0
down vote
favorite
Using shell script I am making a db call on database VM and I am getting and storing the query response into a .txt file. Which looks like below:
X folder Check:
Number of Files on X Outbound
17
Y folder Check:
Number of Files on Y Outbound
17
Z folder Check:
Number of Files on Z Outbound
18
Now for each of the X,Y and Z. I am basically receiving files(counts) on their respective locations. So I am expecting to get "18" files for each X,Y and Z. Now using shell I want to be able to know/store the folders for which I didn't receive 18 files.
Example: here in the above case I should get that I am missing files for X and Y folders.
Any help ?? Thank you.
shell-script cron text
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Using shell script I am making a db call on database VM and I am getting and storing the query response into a .txt file. Which looks like below:
X folder Check:
Number of Files on X Outbound
17
Y folder Check:
Number of Files on Y Outbound
17
Z folder Check:
Number of Files on Z Outbound
18
Now for each of the X,Y and Z. I am basically receiving files(counts) on their respective locations. So I am expecting to get "18" files for each X,Y and Z. Now using shell I want to be able to know/store the folders for which I didn't receive 18 files.
Example: here in the above case I should get that I am missing files for X and Y folders.
Any help ?? Thank you.
shell-script cron text
Using shell script I am making a db call on database VM and I am getting and storing the query response into a .txt file. Which looks like below:
X folder Check:
Number of Files on X Outbound
17
Y folder Check:
Number of Files on Y Outbound
17
Z folder Check:
Number of Files on Z Outbound
18
Now for each of the X,Y and Z. I am basically receiving files(counts) on their respective locations. So I am expecting to get "18" files for each X,Y and Z. Now using shell I want to be able to know/store the folders for which I didn't receive 18 files.
Example: here in the above case I should get that I am missing files for X and Y folders.
Any help ?? Thank you.
shell-script cron text
shell-script cron text
asked 3 mins ago
harveySp
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478592%2fshell-way-to-get-specific-text-based-on-condition%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password