Search Results

Search: Posts Made By: prashu_g
3,629
Posted By prashu_g
That works fine, but there are multiple names...
That works fine, but there are multiple names coming which i want to avoid.

Current output of the code:

Cena, John; Norris, Chuck; Carey, Jim; Sen, Tim; Cena, John; Lee, Bruce; Rock, Dwayne; ...
3,629
Posted By prashu_g
does not return anything.. :(
does not return anything.. :(
3,629
Posted By prashu_g
awk -F"; " '{for (i=1;i<=NF;i++) a[$i]=1}END{for...
awk -F"; " '{for (i=1;i<=NF;i++) a[$i]=1}END{for (i in a) print i}' file
This is throwing an errror:


awk: syntax error near line 1
awk: bailing out near line 1


---------- Post updated at...
3,629
Posted By prashu_g
awk to search similar strings and arrange in a specified pattern
Hi,

I'm running a DB query which returns names of people and writes it in a text file as shown below:


Carey, Jim; Cena, John
Cena, John
Sen, Tim; Burt, Terrence
Lock, Jessey; Carey, Jim...
2,006
Posted By prashu_g
that worked fine.. could you kindly explain what...
that worked fine.. could you kindly explain what "OFS" does and why that "END" is used and what is happening in all.. i'm actually new to scripting so please forgive my lack of knowledge..
...
2,006
Posted By prashu_g
awk to search similar strings and add their values
Hi,

I have a text file with the following content:


monday,20
tuesday,10
wednesday,29
monday,10
friday,12
wednesday,14
monday,15
thursday,34
i want the following output:


monday,45...
10,768
Posted By prashu_g
this throws error.. awk: syntax error near...
this throws error..

awk: syntax error near line 1
awk: bailing out near line 1
10,768
Posted By prashu_g
that worked fine.. one last question (i know i...
that worked fine.. one last question (i know i should have asked this earlier), how do i avoid the last line in that file..? sorry for bothering..
10,768
Posted By prashu_g
is there any way to skip the first two lines and...
is there any way to skip the first two lines and display values from the 3rd line..??

the text file starts with:

Application
-------------------------------------------------- -----------
...
10,768
Posted By prashu_g
awk to print value from txt file to csv
Hi,

I want to print two columns from a .txt file to a .csv file using awk.

data in text file:

Application
-------------------------------------------------- -----------
OS Related...
Showing results 1 to 10 of 10

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