MynameisVineetandthisisparttwooffgrabtutorialandinthisvideowilldo a livedemocoveringalltheoptionsthatwerediscussedinpartone.
Soforthoseofyouhavenotseenmypreviousvideo, I highlyrecommendyoutofirstgoandwatchmypreviousvideoandgrab, wherein I havecoveredalltheTuriaspectrelatedtograbcommandinthisvideowilldoalivethemoreoffallthoseoptionsthatwerediscussedinpartone.
Allright, solet's begintoday's video.
Allright, sohere I amonmyelementaryLennoxmachine.
Letmeopenup a terminalandletmeincreasethephonesize.
Soif I wanttofindoutthenamesofallthecountriesthatstartswiththealphabet, J, I canjustusethecatturdsymboland G andgivecountriesdor t x t fileasyoucanseewehavetheoutputoffallthelinesthatstartswiththealphabet G.
Similarly, youcanusethedollarsigntofindoutallthelinesthatendswith a particularalphabet.
Solet's findoutallthelinesthatendswiththeIt's a bit E Thereyougo.
Now, tofindoutallthelinesthatstartswiththealphabet A, B or C, youcanusethesquarebracketsandtype A, B, C andthesinglecourtandgivecountriesDon't t x t.
Use a carrothere, dash C andthesquarebracketandandthesinglecourtandprovidethefile.
Nowwehavetheoutputoffallthoselinesthatdonotstartwith a B or C.
Allright.
Next, let's findoutallthecountriesthatstartswiththealphabet F andhasfourthcharacterasthealphabet.
AndtodothattypeGrampDash, I ignorecase, thenstartswiththeletter F andthenfourthcharacter, asin.
Soforthat, wecanusetheperiodsymbolonetothefourthcharactertobeendandprovidethecountry's or t x t.
So, asyoucansee, wehavetheoutput.
France, whichstartswiththealphabet F andthefourthcharacter, isthealphabet, andnowyoucanalsousethestarsymbol, whichtellgripstousetheprecedingcorrectorzeroormoretimes.
If I usedyourstar, itwillmatchallthoselinesthatstartswith F andhasthecorrectorandinnit?
Nextyouhavethecapital F optionthatistotellGrabthat.
Thesourcestringdoesnotcontainanyspecialcharacter.
Andit's a fixedstring.
Forexample, if I do 192 dotnodartwillnotbereplacedasanycharacterif I usethedash F option.
Allright, I haveoven t X t file, whichcontainsthe I P address.
No, if I donotusethecapital F optionatreprintthefallingoutputbecauseitretakethedarkcharacterasespeciallycorrect, whichisusedtoreplaceanycharacterinit's place.