sed - regex usage to find a pattern -


I have to work in my bass script to read me through a file and all the words custom must be stored in the array. I mean that my array will be included in the {"Custom_KEHJEO" "Custom_TTT_LEJEB_Adaptor" "ustom_SDE_Universal_Adaptor_EEEEEE"}

I started the SED command from line 9 but Unable to read the 'custom *' wire, read through the contents of the file and below the contents of the array With folders.txt store

There is a file that lets say ~, starting from the line 9 which is always the case, I have the text ... ... the following and the last 3 lines, in addition to date changes under the same

  Custom_KEHJEO Custom_TTT_LEJEB_Adaptor Custom_SDE_Universal_Adaptor_EEEEEE Custom_SIL_XXXXXXX Custom_SIL_UUUUUUU SDE_PSFT_89_Adaptor SDE_SBL_78_Adaptor UA_SDE SILOS SDE_SBL_Vert_811_Adaptor SDE_JDEE1_90_Adaptor SDE_Universal_Adaptor Custom_SIL_XJGADWG Custom_SIL_UUUUUUAAFE SDE_ORAR12_Adaptor SDE_JDEE1_811SP1_Adaptor SDE_ORAR1212_Adaptor SDE_ORA11510_Adaptor SDE_SBL_80_Adaptor Custom_SIL_MKEIHE Custom_SDE_GAHWYWB .listobjects completed successfully. Thursday, January 22 12:46:39 2015  

What the sanest way to accomplish on it GREP = :

  arrival = ($ (the name of the grep ^ custom file)) # Arrival Now a Bash array containing all the tokens that start with custom resonance You can also do this with sed: $ {arrival [@]} " 

  arrival = ($ (sed!! / ^ Custom) / D 'file name))  

... but grep is actually built for it. Note that this hinges on a file structure with a token per line.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -