05-17-2010
Hi webhope!
What do you want exactly? To replace only the first occurrence of either `initrd' or `kernel' in the whole stdin text? Or simply replace `kernel' with `kernelXXX' in this particular variable? And what does NFR mean - may be it should be FNR (record number)?
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have to solve a programming problem for my wife who is engaged in Research in Breast Cancer.
1. She has frequently to search a long single line of alphabetic characters (lower case) for an exact match of a string.
e.g.... (4 Replies)
Discussion started by: nmsinghe
4 Replies
2. UNIX for Dummies Questions & Answers
Can anyone help it out,
My Requirement:
Actually i grep for the items in the atrblist (Result of it will provide the line where the item present and also the next line of where it presents)then it will be stored in $i.txt
From tat result i wil grep 2nd word after getdate() word and store... (2 Replies)
Discussion started by: prsam
2 Replies
3. Shell Programming and Scripting
I am facing below issue with my script. below is one of the test out of 50 test from the tool which i m trying to automate. the test may show up or may not depending upon the previous results and also from the test some inputs may be asked or may not be asked depending upon previous results so you... (1 Reply)
Discussion started by: snehalb
1 Replies
4. Shell Programming and Scripting
This is for PHP preg_match code - which is PCRE therefore looking for a perl compatible suggestion
I have this line returned I want to match and return..
I want to match the two instances of string ending 'ABCXYZ' into an array.
And on second element (ie. RootABCXYZ) only return the word... (4 Replies)
Discussion started by: deadyetagain
4 Replies
5. Shell Programming and Scripting
Hello
My script has following line and output
find path -type d | awk -F "/" 'NF == 4{print $3}'
path/custype=Type1/logdate=20160414
path/custype=Type11122/logdate=20160414
But I need following output that I need custtype information between "" like... (4 Replies)
Discussion started by: msuluhan
4 Replies