##Given#Giventhis#Giventhisexample#Giventhisexamplefileccacatcatecatexcatexacatexamcatexampcatexamplcatexamplebanana,apple,strawberryred,white,yellow,pink,black,greencar,boat,bycicle,airplanesmall,medium,large#Say#Sayyou#Sayyouwant#Sayyouwantto#Sayyouwanttokeep#Sayyouwanttokeeponly#Sayyouwanttokeeponlythe#Sayyouwanttokeeponlythe2nd#Sayyouwanttokeeponlythe2ndelement#Sayyouwanttokeeponlythe2ndelementin#Sayyouwanttokeeponlythe2ndelementineach#Sayyouwanttokeeponlythe2ndelementineachlinecatexample|catexample|tcatexample|tucatexample|tuccatexample|tuc-catexample|tuc-dcatexample|tuc-d,catexample|tuc-d,-catexample|tuc-d,-fcatexample|tuc-d,-f2applewhiteboatmedium#L#Le#Let#Let'#Let's#Let'skeep#Let'skeepjust#Let'skeepjustthe#Let'skeepjustthelast#Let'skeepjustthelastelement#Let'skeepjustthelastelementof#Let'skeepjustthelastelementofeach#Let'skeepjustthelastelementofeachlinecatexample|tuc-d,-f-1strawberrygreenairplanelarge#W#What#Whatif#WhatifI#WhatifIwanted#WhatifIwantedto#WhatifIwantedtoskip#WhatifIwantedtoskipfirst#WhatifIwantedtoskipfirstand#WhatifIwantedtoskipfirstandlast#WhatifIwantedtoskipfirstandlastline?catexample|tuc-lcatexample|tuc-l2:-2#Let'smake#Let'smakeit#Let'smakeitjsoncatexample|tuc-d,--json["banana","apple","strawberry"]["red","white","yellow","pink","black","green"]["car","boat","bycicle","airplane"]["small","medium","large"]#We#Wecan#Wecanalso#Wecanalsoformatthe#Wecanalsoformattheoutputto#Wecanalsoformattheoutputtodo#Wecanalsoformattheoutputtodoniftythings#Imagine#Imagineyou#Imagineyouhave#Imagineyouhave.bak#Imagineyouhave.bakfiles#Imagineyouhave.bakfilesand#Imagineyouhave.bakfilesandyou#Imagineyouhave.bakfilesandyouwant#Imagineyouhave.bakfilesandyouwantto#Imagineyouhave.bakfilesandyouwanttorename#Imagineyouhave.bakfilesandyouwanttorenamethem#(the#(thefile#(thefilenames#(thefilenameswould#(thefilenameswouldcome#(thefilenameswouldcomefrom#(thefilenameswouldcomefrom'find'#(thefilenameswouldcomefrom'find'orsimilar#(thefilenameswouldcomefrom'find'orsimilartools)echosomefile.bak|echosomefile.bak|tuc-dechosomefile.bak|tuc-d'.bak'echosomefile.bak|tuc-d'.bak'-fechosomefile.bak|tuc-d'.bak'-f'mv{1}.bakechosomefile.bak|tuc-d'.bak'-f'mv{1}.bak{1}'mvsomefile.baksomefile#You#Youcan#Youcando#Youcandomuch#Youcandomuchmore#Youcandomuchmorethan#Youcandomuchmorethanthis.#Youcandomuchmorethanthis.Check#Youcandomuchmorethanthis.Checkthe#Youcandomuchmorethanthis.Checkthedocumentation!#G#Gi#Give#Givent#Giventh#Giventhise#Giventhisex#Giventhisexa#Giventhisexamp#Giventhisexampl#Giventhisexamplef#Giventhisexamplefil#S#Sa#Sayy#Sayyo#Sayyouw#Sayyouwa#Sayyouwan#Sayyouwantt#Sayyouwanttok#Sayyouwanttoke#Sayyouwanttokee#Sayyouwanttokeepo#Sayyouwanttokeepon#Sayyouwanttokeeponl#Sayyouwanttokeeponlyt#Sayyouwanttokeeponlyth#Sayyouwanttokeeponlythe2#Sayyouwanttokeeponlythe2n#Sayyouwanttokeeponlythe2nde#Sayyouwanttokeeponlythe2ndel#Sayyouwanttokeeponlythe2ndele#Sayyouwanttokeeponlythe2ndelem#Sayyouwanttokeeponlythe2ndeleme#Sayyouwanttokeeponlythe2ndelemen#Sayyouwanttokeeponlythe2ndelementi#Sayyouwanttokeeponlythe2ndelementine#Sayyouwanttokeeponlythe2ndelementinea#Sayyouwanttokeeponlythe2ndelementineac#Sayyouwanttokeeponlythe2ndelementineachl#Sayyouwanttokeeponlythe2ndelementineachli#Sayyouwanttokeeponlythe2ndelementineachlin#Let'sk#Let'ske#Let'skee#Let'skeepj#Let'skeepju#Let'skeepjus#Let'skeepjustt#Let'skeepjustth#Let'skeepjustthel#Let'skeepjustthela#Let'skeepjustthelas#Let'skeepjustthelaste#Let'skeepjustthelastel#Let'skeepjustthelastele#Let'skeepjustthelastelem#Let'skeepjustthelasteleme#Let'skeepjustthelastelemen#Let'skeepjustthelastelemento#Let'skeepjustthelastelementofe#Let'skeepjustthelastelementofea#Let'skeepjustthelastelementofeac#Let'skeepjustthelastelementofeachl#Let'skeepjustthelastelementofeachli#Let'skeepjustthelastelementofeachlincatexample|tuc-d,-f-#Wh#Wha#Whati#WhatifIw#WhatifIwa#WhatifIwan#WhatifIwant#WhatifIwante#WhatifIwantedt#WhatifIwantedtos#WhatifIwantedtosk#WhatifIwantedtoski#WhatifIwantedtoskipf#WhatifIwantedtoskipfi#WhatifIwantedtoskipfir#WhatifIwantedtoskipfirs#WhatifIwantedtoskipfirsta#WhatifIwantedtoskipfirstan#WhatifIwantedtoskipfirstandl#WhatifIwantedtoskipfirstandla#WhatifIwantedtoskipfirstandlas#WhatifIwantedtoskipfirstandlastl#WhatifIwantedtoskipfirstandlastli#WhatifIwantedtoskipfirstandlastlin#WhatifIwantedtoskipfirstandlastlinecatexample|tuc-l2catexample|tuc-l2:catexample|tuc-l2:-#Let'sm#Let'smak#Let'smakei#Let'smakeitj#Let'smakeitjs#Let'smakeitjsocatexample|tuc-d,--catexample|tuc-d,--jcatexample|tuc-d,--jscatexample|tuc-d,--jso#Wec#Weca#Wecanal#Wecanals#Wecanalsof#Wecanalsofo#Wecanalsofor#Wecanalsoform#Wecanalsoforma#Wecanalsoformat#Wecanalsoformatt#Wecanalsoformatth#Wecanalsoformattheo#Wecanalsoformattheou#Wecanalsoformattheout#Wecanalsoformattheoutp#Wecanalsoformattheoutpu#Wecanalsoformattheoutput#Wecanalsoformattheoutputt#Wecanalsoformattheoutputtod#Wecanalsoformattheoutputtodon#Wecanalsoformattheoutputtodoni#Wecanalsoformattheoutputtodonif#Wecanalsoformattheoutputtodonift#Wecanalsoformattheoutputtodonifty#Wecanalsoformattheoutputtodoniftyt#Wecanalsoformattheoutputtodoniftyth#Wecanalsoformattheoutputtodoniftythi#Wecanalsoformattheoutputtodoniftythin#Wecanalsoformattheoutputtodoniftything#I#Im#Ima#Imag#Imagi#Imagin#Imaginey#Imagineyo#Imagineyouh#Imagineyouha#Imagineyouhav#Imagineyouhave.#Imagineyouhave.b#Imagineyouhave.ba#Imagineyouhave.bakf#Imagineyouhave.bakfi#Imagineyouhave.bakfil#Imagineyouhave.bakfile#Imagineyouhave.bakfilesa#Imagineyouhave.bakfilesan#Imagineyouhave.bakfilesandy#Imagineyouhave.bakfilesandyo#Imagineyouhave.bakfilesandyouw#Imagineyouhave.bakfilesandyouwa#Imagineyouhave.bakfilesandyouwan#Imagineyouhave.bakfilesandyouwantt#Imagineyouhave.bakfilesandyouwanttor#Imagineyouhave.bakfilesandyouwanttore#Imagineyouhave.bakfilesandyouwanttoren#Imagineyouhave.bakfilesandyouwanttorena#Imagineyouhave.bakfilesandyouwanttorenam#Imagineyouhave.bakfilesandyouwanttorenamet#Imagineyouhave.bakfilesandyouwanttorenameth#Imagineyouhave.bakfilesandyouwanttorenamethe#(#(t#(th#(thef#(thefi#(thefilen#(thefilena#(thefilenam#(thefilename#(thefilenamesw#(thefilenameswo#(thefilenameswoul#(thefilenameswouldc#(thefilenameswouldco#(thefilenameswouldcom#(thefilenameswouldcomef#(thefilenameswouldcomefr#(thefilenameswouldcomefrom'#(thefilenameswouldcomefrom'f#(thefilenameswouldcomefrom'fi#(thefilenameswouldcomefrom'fin#(thefilenameswouldcomefrom'find#(thefilenameswouldcomefrom'find'o#(thefilenameswouldcomefrom'find'or#(thefilenameswouldcomefrom'find'ors#(thefilenameswouldcomefrom'find'orsi#(thefilenameswouldcomefrom'find'orsim#(thefilenameswouldcomefrom'find'orsimi#(thefilenameswouldcomefrom'find'orsimil#(thefilenameswouldcomefrom'find'orsimila#(thefilenameswouldcomefrom'find'orsimilart#(thefilenameswouldcomefrom'find'orsimilartoo#(thefilenameswouldcomefrom'find'orsimilartool#(thefilenameswouldcomefrom'find'orsimilartoolseecechechoechosechosoechosomechosomeechosomefechosomefilechosomefileechosomefile.echosomefile.bechosomefile.baechosomefile.bakechosomefile.bak|techosomefile.bak|tuechosomefile.bak|tucechosomefile.bak|tuc-echosomefile.bak|tuc-d'echosomefile.bak|tuc-d'.bechosomefile.bak|tuc-d'.baechosomefile.bak|tuc-d'.bakechosomefile.bak|tuc-d'.bak'-f'echosomefile.bak|tuc-d'.bak'-f'mechosomefile.bak|tuc-d'.bak'-f'mvechosomefile.bak|tuc-d'.bak'-f'mv{echosomefile.bak|tuc-d'.bak'-f'mv{1echosomefile.bak|tuc-d'.bak'-f'mv{1}echosomefile.bak|tuc-d'.bak'-f'mv{1}.echosomefile.bak|tuc-d'.bak'-f'mv{1}.bechosomefile.bak|tuc-d'.bak'-f'mv{1}.bak{echosomefile.bak|tuc-d'.bak'-f'mv{1}.bak{1echosomefile.bak|tuc-d'.bak'-f'mv{1}.bak{1}#Y#Yo#Youc#Youca#Youcand#Youcandom#Youcandomu#Youcandomuc#Youcandomuchm#Youcandomuchmo#Youcandomuchmor#Youcandomuchmoret#Youcandomuchmoreth#Youcandomuchmoretha#Youcandomuchmorethant#Youcandomuchmorethanth#Youcandomuchmorethanthi#Youcandomuchmorethanthis#Youcandomuchmorethanthis.C#Youcandomuchmorethanthis.Ch#Youcandomuchmorethanthis.Che#Youcandomuchmorethanthis.Chec#Youcandomuchmorethanthis.Checkt#Youcandomuchmorethanthis.Checkth#Youcandomuchmorethanthis.Checkthed#Youcandomuchmorethanthis.Checkthedo#Youcandomuchmorethanthis.Checkthedoc#Youcandomuchmorethanthis.Checkthedocu#Youcandomuchmorethanthis.Checkthedocum#Youcandomuchmorethanthis.Checkthedocume#Youcandomuchmorethanthis.Checkthedocumen#Youcandomuchmorethanthis.Checkthedocument#Youcandomuchmorethanthis.Checkthedocumenta#Youcandomuchmorethanthis.Checkthedocumentat#Youcandomuchmorethanthis.Checkthedocumentati#Youcandomuchmorethanthis.Checkthedocumentatio#Youcandomuchmorethanthis.Checkthedocumentation