Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UNIX Scripting help Below is the content of the foop.in file /home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_06302017_040041.csv.pgp /home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_06302017_040041.csv.pgp /home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_07142017_040109.csv.pgp /home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_07142017_040109.csv.pgp /home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_07282017_040018.csv.pgp /home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_07282017_040018.csv.pgp /home/benefitexpress-270-sftp/home/benefitexpress-270-sftp/inbound/Hamilton_To_InfoArmor_CON_20170719.csv.pgp /home/benefitwerks-1157-sftp/home/benefitwerks-1157-sftp/inbound/NN_To_InfoArmor_CAD_20170802.csv.GPG /home/bestbuy-1369-sftp/home/bestbuy-1369-sftp/inbound/BestBuy_To_InfoArmor_DeductionRegister_20170725.csv.pgp /home/bestbuy-1369-sftp/home/bestbuy-1369-sftp/inbound/BestBuy_To_InfoArmor_DeductionRegister_20170725.csv.pgp /home/bestbuy-1369-sftp/home/bestbuy-1369-sftp/inbound/BestBuy_To_InfoArmor_DeductionRegister_20170801.csv.pgp /home/bestbuy-1369-sftp/home/bestbuy-1369-sftp/inbound/BestBuy_To_InfoArmor_DeductionRegister_20170801.csv.pgp /home/bfocus-sftp/home/bfocus-sftp/inbound/CME_To_InfoArmor_PhoneNumber_20170718.csv.pgp /home/cmh-667-sftp/home/cmh-667-sftp/inbound/InfoArmorDedReg_20170519_20170615.csv.gpg

UNIX Scripting help

image text in transcribed

Below is the content of the foop.in file

/home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_06302017_040041.csv.pgp

/home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_06302017_040041.csv.pgp

/home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_07142017_040109.csv.pgp

/home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_07142017_040109.csv.pgp

/home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_07282017_040018.csv.pgp

/home/acs-sftp/home/acs-sftp/inbound/DeductionRequest_07282017_040018.csv.pgp

/home/benefitexpress-270-sftp/home/benefitexpress-270-sftp/inbound/Hamilton_To_InfoArmor_CON_20170719.csv.pgp

/home/benefitwerks-1157-sftp/home/benefitwerks-1157-sftp/inbound/NN_To_InfoArmor_CAD_20170802.csv.GPG

/home/bestbuy-1369-sftp/home/bestbuy-1369-sftp/inbound/BestBuy_To_InfoArmor_DeductionRegister_20170725.csv.pgp

/home/bestbuy-1369-sftp/home/bestbuy-1369-sftp/inbound/BestBuy_To_InfoArmor_DeductionRegister_20170725.csv.pgp

/home/bestbuy-1369-sftp/home/bestbuy-1369-sftp/inbound/BestBuy_To_InfoArmor_DeductionRegister_20170801.csv.pgp

/home/bestbuy-1369-sftp/home/bestbuy-1369-sftp/inbound/BestBuy_To_InfoArmor_DeductionRegister_20170801.csv.pgp

/home/bfocus-sftp/home/bfocus-sftp/inbound/CME_To_InfoArmor_PhoneNumber_20170718.csv.pgp

/home/cmh-667-sftp/home/cmh-667-sftp/inbound/InfoArmorDedReg_20170519_20170615.csv.gpg

/home/cmh-667-sftp/home/cmh-667-sftp/inbound/InfoArmorDedReg_20170519_20170615.csv.gpg

/home/cmh-667-sftp/home/cmh-667-sftp/inbound/InfoArmorDedReg_20170616_20170727.csv.gpg

/home/cmh-667-sftp/home/cmh-667-sftp/inbound/InfoArmorDedReg_20170616_20170727.csv.gpg

/home/emory-1410-sftp/home/emory-1410-sftp/inbound/EmoryEligibility_To_InfoArmor_20170731.csv_

/home/harris-1462-sftp/home/harris-1462-sftp/inbound/HarrisCorporation_To_InfoArmor_DeductionReport_201707260806319.csv

/home/harris-1462-sftp/home/harris-1462-sftp/inbound/HarrisCorporation_To_InfoArmor_DeductionReport_201707260806319.csv

/home/harris-1462-sftp/home/harris-1462-sftp/inbound/HarrisCorporation_To_InfoArmor_DeductionReport_201707270600274.csv

/home/harris-1462-sftp/home/harris-1462-sftp/inbound/HarrisCorporation_To_InfoArmor_DeductionReport_201707270600274.csv

/home/hartfiel-1491-sftp/home/hartfiel-1491-sftp/Hartfiel_To_InfoArmor_TEST_CAD_201708020519.csv.pgp

/home/jbssa-sftp/home/jbssa-sftp/jbssa-sftp/inbound/JBS_To_InfoArmor.csv.pgp

/home/jbssa-sftp/home/jbssa-sftp/jbssa-sftp/inbound/JBS_To_InfoArmor.csv.pgp

/home/jbssa-sftp/home/jbssa-sftp/ppride-sftp/inbound/PPC_To_InfoArmor.csv.pgp

/home/jbssa-sftp/home/jbssa-sftp/ppride-sftp/inbound/PPC_To_InfoArmor.csv.pgp

/home/kar-sftp/home/kar-sftp/inbound/InfoArmor_July_2017.xlsx

/home/kar-sftp/home/kar-sftp/inbound/InfoArmor_July_2017.xlsx

/home/kar-sftp/home/kar-sftp/inbound/InfoArmor_June_2017.xlsx

/home/kar-sftp/home/kar-sftp/inbound/InfoArmor_June_2017.xlsx

/home/marsh-sftp/home/marsh-sftp/inbound/Consecutive_Missed_Deductions_20170727.csv.pgp

/home/marsh-sftp/home/marsh-sftp/inbound/Consecutive_Missed_Deductions_20170727.csv.pgp

/home/marsh-sftp/home/marsh-sftp/inbound/Consecutive_Missed_Deductions_20170803.csv.pgp

/homeov-983-sftp/homeov-983-sftp/inbound/Novartis_To_InfoArmor_Eligibility_20170728.csv.pgp

/home/oeb-1165-sftp/home/oeb-1165-sftp/inbound/OEB_To_InfoArmor_Eligibility_20170721.csv.pgp

/home/oeb-1165-sftp/home/oeb-1165-sftp/inbound/OEB_To_InfoArmor_Eligibility_20170728.csv.pgp

/home/opeiu-sftp/home/opeiu-sftp/OPEIU_To_InfoArmor_CAD_20170701.csv.gpg_

/home/opeiu-sftp/home/opeiu-sftp/OPEIU_To_InfoArmor_CAD_20170801.csv.gpg

/home/paylogix-sftp/home/paylogix-sftp/Paylogix_To_InfoArmor_CAD_20170720.csv.pgp

/home/paylogix-sftp/home/paylogix-sftp/Paylogix_To_InfoArmor_CAD_20170721.csv.pgp

/home/salem5-sftp/home/salem5-sftp/inbound/SalemFiveBenefits_To_InfoArmor.20170804.csv.gpg

/home/salem5-sftp/home/salem5-sftp/inbound/SalemFive_To_InfoArmor.20170804.csv.gpg

/home/seanc-sftp/home/seanc-sftp/inbound/SEANC_To_InfoArmor_Eligibility_File_20170630.csv.gpg

/home/seanc-sftp/home/seanc-sftp/inbound/SEANC_To_InfoArmor_Eligibility_File_20170731.csv.gpg

/home/smartb-sftp/home/smartb-sftp/inbound/LRG_To_InfoArmor_CONV_20170607.csv.pgp.pgp

/home/smartb-sftp/home/smartb-sftp/inbound/LRG_To_InfoArmor_CONV_20170607.csv.pgp.pgp

/home/spgi-1490-sftp/home/spgi-1490-sftp/inbound/SPGI_To_InfoArmor_Eligibility_20170728.csv.pgp

/home/telesoft-1828-sftp/home/telesoft-1828-sftp/inbound/test.txt

/home/telesoft-1828-sftp/home/telesoft-1828-sftp/inbound/test.txt

/home/tpadv-sftp/home/tpadv-sftp/inbound/TripAdvisor_To_InfoArmor_Eligibility_20170802.csv.pgp

/home/triad-152-sftp/home/triad-152-sftp/inbound/InfoArmor_Terms_20170701.xls.pgp

/home/triad-152-sftp/home/triad-152-sftp/inbound/InfoArmor_Terms_20170701.xls.pgp

/home/triad-152-sftp/home/triad-152-sftp/inbound/InfoArmor_Terms_20170801.xls.pgp

/home/triad-152-sftp/home/triad-152-sftp/inbound/InfoArmor_Terms_20170801.xls.pgp

/home/Trustmark-1003-sftp/home/Trustmark-1003-sftp/inbound/00000252.FIL.pgp

/home/Trustmark-1003-sftp/home/Trustmark-1003-sftp/inbound/00000252.FIL.pgp

/home/unum-1547-sftp/home/unum-1547-sftp/inbound/CorizonCensus_07172017.txt

/home/unum-1547-sftp/home/unum-1547-sftp/inbound/CorizonCensus_07172017.txt

/home/unum-1547-sftp/home/unum-1547-sftp/inbound/CorizonCensus_07202017.txt

/home/unum-1547-sftp/home/unum-1547-sftp/inbound/CorizonCensus_07202017.txt_

/home/wyle-428-sftp/home/wyle-428-sftp/inbound/Wyle_To_InfoArmor_CONV_20170713.csv.pgp

/home/wyle-428-sftp/home/wyle-428-sftp/inbound/Wyle_To_InfoArmor_CONV_20170713.csv.pgp

Part I: Pre-processing Your first task is to write a script called foop_prep.sh that pre-processes the file foop.in so that: -Each line of the file represents an absolute pathname to a file of interest. For example: (1) the line file found: homejbssa-sftp/home/jbssa-sftp/jbssa-sftp/inbound/JBS_To_InfoArmor.csv.pgp must become home/jbssa-sftp/homejbssa-sftp/jbssa-sftp/inbound/JBS_To_InfoArmor.csv.pgp (2) the line >Checking for unknown file types in inbound must be removed as it does not represent a pathname of a file . Your script should output a filecalled foop.out that is similar to the template foop.out.doxc provided. To run your script, the file foop.in must be provided as argument Your script must first delete, if present, any previous foop out file Part I: Pre-processing Your first task is to write a script called foop_prep.sh that pre-processes the file foop.in so that: -Each line of the file represents an absolute pathname to a file of interest. For example: (1) the line file found: homejbssa-sftp/home/jbssa-sftp/jbssa-sftp/inbound/JBS_To_InfoArmor.csv.pgp must become home/jbssa-sftp/homejbssa-sftp/jbssa-sftp/inbound/JBS_To_InfoArmor.csv.pgp (2) the line >Checking for unknown file types in inbound must be removed as it does not represent a pathname of a file . Your script should output a filecalled foop.out that is similar to the template foop.out.doxc provided. To run your script, the file foop.in must be provided as argument Your script must first delete, if present, any previous foop out file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

What are the role of supervisors ?

Answered: 1 week ago