thanks, eliminate sub-string with matching pattern will only work when the number of characters are not change. I end up using multiple sed to remove know keyword after the classes since there are more keywords than just LEC and LAB as show in sample. ex: LEC, LAB, ELECTIVE, MAJOR...
Hi, guys. I have one question:
I need to search for a string in a file, and then extract another string from the file and assign it to a variable.
For example:
the contents of the file (group) is below:
...
ftp:x:23:
mail:x:34
...
testing:x:2001
sales:x:2002
development:x:2003
...... (6 Replies)
I want to extract the proper names with awk from a very long string, like: õ(k): </span><br /><a something="pls/pe/person.person?i_pers_id=3694&i_topic_id=2&i_city_id=3372&i_county_id=-1" target="_blank"><b>Gary Oldman</b></a> (George Smiley)<br /><a... (12 Replies)
Hi,
May i ask if someone share some command for extracting a string between 2 ref string in a txt file
My objective: i had a file with multiple lines and wants only to extract the string "watch?v=IbkAXOmEHpY" or "watch?v=<11 random character>", when i used "grep 'watch?=*' i got a results per... (4 Replies)
I'm trying to extract a list of each .cfg file name mentioned in a file. I've made some progress using sed, but I'm still not there. Any help would be appreciated.
My input looks like this:
07:00:00.000 spn redo
08:04:36.200 CMD OBJ_INIT
08:04:37.200 CMD OBJ_INIT ... (8 Replies)
Hi,
I have a list of zipped files. I want to grep for a string in all files and get a list of file names that contain the string. But without unzipping them before that, more like using something like gzcat.
My OS is:
SunOS test 5.10 Generic_142900-13 sun4u sparc SUNW,SPARC-Enterprise (8 Replies)
Hello folks,
would like as for your help. I'm downloading list of files which need to be downloaded later.
Via curl I'm getting this output:
% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left ... (3 Replies)
Hi All,
I have a word and from that word would like to search for certain set of string, is there any command to do so ?
EX :
Components
from the above word, would like to search for strings set and extract the search string and then do if stmt...
pon
nen
ent
Com
say... (2 Replies)
HI Folks -
I have a requirement where I need to scan a text file for a list of files.
The file, we'll called it, files.txt looks like such:
inbox/EBS/Client_GL_Detail_PBCS_112517_SEP2017.txt
inbox/EBS/Client_GL_Detail_PBCS_112617_NOV2017.txt
... (9 Replies)