Search Results

Search: Posts Made By: KCApple
2,690
Posted By KCApple
Thanks a lot! This work like charm :D ...
Thanks a lot! This work like charm :D

[/CODE][akshay@nio tmp]$ grep -oP '(?<=>).*(?=</a>)' file
Linux
Unix
Oracle
Perl


Didn't know that all I have to do is to remove the "a" in the first...
2,690
Posted By KCApple
No, not really. I just want to learn how to use...
No, not really. I just want to learn how to use grep better.
2,690
Posted By KCApple
How to remove the values inside the html tags?
Hi,

I have a txt file which contain this:

<a href="linux">Linux</a>
<a href="unix">Unix</a>
<a href="oracle">Oracle</a>
<a href="perl">Perl</a>

I'm trying to extract the text in between...
3,305
Posted By KCApple
Please ignore my previous post, I should have try...
Please ignore my previous post, I should have try first before I ask. Thanks a lot!

---------- Post updated at 03:51 PM ---------- Previous update was at 03:29 PM ----------



I've a question...
3,305
Posted By KCApple
Do you mean all i have to do is put the FILENAME...
Do you mean all i have to do is put the FILENAME in the BEGIN and it will work?


BEGIN{FILENAME}
{ some script .....}
3,305
Posted By KCApple
awk - how to read multiple files
Hi, is there a ways to read multiple files in a single awk command?

For example:
awk -f awk_script file1 file2 file3

I've google it, most of them suggest using FNR. But I don't understand how...
1,912
Posted By KCApple
This is what I've gotten so far amount =...
This is what I've gotten so far

amount = substr($NF, 1, 2)
total_amount = amount * 2

if( total_amount <= 18 )
{
price = substr($NF,3)
}
else
{
price = substr($NF, 4)
}...
1,912
Posted By KCApple
awk - How to join the string with values
Hi, I'm a beginner in awk script. I've been trying to figure how to concatenate two string in input file using awk after the value is calculated.

I'm trying to get this format

Apple 5.2(10)...
Showing results 1 to 8 of 8

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