Search Results

Search: Posts Made By: DevAakash
2,610
Posted By DevAakash
Replace matches string in each line with the arrayvalue in shell
I have a list of value , and need to replace that in my file.
Eg:

File1
tcname:fail
tcname: Pass
tcname:skipped


File2:

01,02,03


Output:

File 1
01:fail
02: Pass
03:Skipped
2,786
Posted By DevAakash
Thanks nezabudka , but these commands copy the...
Thanks nezabudka , but these commands copy the entire content to my file in <tr> row,but I need to split the content from my base file and iterate through and copy each content into a <tr> tag.
Eg:...
2,786
Posted By DevAakash
When copying the content to another file only...
When copying the content to another file only single words gets copied. Not sure if I need to escape the special characters before copying
2,786
Posted By DevAakash
Copy the content from txt file and create a html file
I have a txt file with a list of error messages in a xml tag format, and each error message is separated with a identifier(endresult).Need to split that and copy and create a new html file.Error...
2,526
Posted By DevAakash
Thanks nezabudka . my <results> has multiple...
Thanks nezabudka . my <results> has multiple lines, only the first line gets displayed when using the command sed -n '/<value>/ {n;h}; /<result>/ {n;H;x;s/\n/ /;p}' file
2,526
Posted By DevAakash
How to fetch the value from a xml using sed, GREP?
I have a simple xml file,need the output with the <value> tag and <result> tag

text.xml
<test-method status="FAIL" duration="45">
<value>
Id=C18
</value>
<result>
wrong paramter
</result>...
Showing results 1 to 6 of 6

 

Featured Tech Videos

All times are GMT -4. The time now is 08:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy