Search Results

Search: Posts Made By: owwow14
9,613
Posted By owwow14
Sorry @RudiC when I was writing the question, I...
Sorry @RudiC when I was writing the question, I forgot to include it when copying and pasting.

I was not aware that this could be done with awk . How would you suggest attacking this problem...
9,613
Posted By owwow14
sed Find and Replace Text Between Two Strings or Words
I am looking for a sed in which I can recognize all of the text in between two indicators and then replace it with a place holder.

For instance, the 1st indicator is a list of words...
815
Posted By owwow14
Tranforming unformatted text to 1-column with awk
Hello, I have an input that is unformatted text, such as below.

INPUT:
Hola. Me llamo Davíd y soy de Andalucía. Mi color favorito es rojo. ¿Como te llamas? ¿Cuál es tu color favorito?
I want to take...
2,850
Posted By owwow14
I know this is a zombie thread, I just wanted to...
I know this is a zombie thread, I just wanted to mention that setting the LC variable to UTF-8 completely solved the problem. Thank you!
2,500
Posted By owwow14
Hi again, R. Singh, It seems to be working...
Hi again, R. Singh,

It seems to be working better, except I keep getting the error "awk: cannot open "file1021.pp" for output (Too many open files)
"

I tried to modify the one-liner as follows...
2,500
Posted By owwow14
Dear R. Singh, I have tried and...
Dear R. Singh,

I have tried and unfortunately it does not help - it seems to outut all of the files into one files called *.pp, rather than individual files with the suffix .pp
Let me preface a...
2,500
Posted By owwow14
Applying the same awk over a directory of files with individual file output
I am trying to apply an awk action over multiple files in a directory. It is a simple action, I want to print out the 1st 2 columns (i.e. $1 and $2) in each tab-separated document and output the...
2,850
Posted By owwow14
This solution words great for ascii characters....
This solution words great for ascii characters. However, I have some characters that are non-ascii and they do not convert correctly when using tolower. For instance, this is what happened:

<s>...
2,850
Posted By owwow14
How to lowercase the values in a column in awk and include a dynamic counter?
Hi,
I am trying to incorporate 2 functions into my `awk` command.
I want to lower case Column 2 (which is essentially the same information in Col1, except in Col1 I want to maintain the...
1,342
Posted By owwow14
Following your suggestion and closing the file...
Following your suggestion and closing the file according to that post, I get the same result:

awk '
FNR==1 {
if (seen[FILENAME]++) {
firstPass = 0
...
1,342
Posted By owwow14
awk error when increasing number of files in folder
I have a folder with several files of which I want to eliminate all of the terms that they have in common using `awk`.
Here is the script that I have been using:

awk '
...
1,566
Posted By owwow14
Create new rows for each column value with awk
Hi,
I have the following type of data that is separated by tabs:

-2 abandonar abandono abandonas abandona abandonamos abandonáis abandonan
-4 abandonado abandonada abandonados abandonadas ...
4,341
Posted By owwow14
Count words/lines between two tags using awk
Is there an efficient awk that can count the number of lines that occur in between two tags.
For instance, consider the following text:

<s>
Hi PP -
my VBD -
name DT -
is NN -
. SENT .
</s>...
1,170
Posted By owwow14
Hi, I updated the code snippet so that I hope...
Hi,
I updated the code snippet so that I hope the desired output is clearer.
@RavinderSingh13 your code gives me the following error: awk: invalid -v option
@RudiC and @Scrutinizer I hope that...
1,170
Posted By owwow14
Adding tags in between sentences with awk
Hi,
I need an awk to modify the following file. It is 2-column tab-separated.


Hi PP
my VBD
name DT
is NN
. SENT

Her PP
name VBD
is DT
the NN
same WRT
. SENT


<s>
Hi PP -
4,292
Posted By owwow14
awk to filter out lines containing unique values in a specified column
Hi,

I have multiple files that each contain four columns of strings:

File1:

Code:
123 abc gfh 273
456 ddff jfh 837
789 ghi u4u 395

File2:

Code:
123 abc dd fu
456 def 457 nd...
1,801
Posted By owwow14
Great R. Singh! Thanks. As usual, you provided a...
Great R. Singh! Thanks. As usual, you provided a great solution. It successfully removed all of the unwanted characters.
1,801
Posted By owwow14
Grepping non-alpa-numerics from first column only
I have data in the following tab-separated format (consists of 200 columns all together, this is just a sampling)

</s> 0.001701 0.002025 0.002264 0.001430 -0.001300
. -0.205240 0.177341...
1,471
Posted By owwow14
worked great! thanks !
worked great! thanks !
1,471
Posted By owwow14
Iterating awk over a directory of files?
I need to run the same awk function over an entire directly of files.
This is the awk:
awk '{$(NF+1)=1}1'

Is there a way that I can run this command once over all of the files, along the lines...
1,217
Posted By owwow14
Thank you Akshay, However, there are 2 input...
Thank you Akshay, However, there are 2 input files.
Is there a specific order I should put the List file and the Data file?
1,217
Posted By owwow14
Search replace with awk using 2 files
I have a bit of a complex problem that I would like to solve with awk. It is essentially a 2-part problem.

I have a large directory of files with the same format, each with 266 lines.
The first...
2,918
Posted By owwow14
Grep the lines in one file that are also in another
Hi all,
I have two files.
File A looks like this:

abkhasian com|hum
accent com|com|com|com|sta
acceptation act|com|sta
adventures com|hum
adversity com|hum|hum

and File B looks like...
965
Posted By owwow14
Hi, Sorry for being cryptic, I have been...
Hi, Sorry for being cryptic, I have been struggling with this for some hours now.
To answer your questions.

I am have been using python and awk. The first approach was challenging for me, as...
965
Posted By owwow14
Changing format of file with awk
Hi all,
I have a file that looks like this:

Closest words to: manifesto >>>>
[(0.99999999999999978, 'manifesto'), (0.72008211381623111, 'communiqu\xe9'), (0.6942217252661308, 'manifestos'),...
Showing results 1 to 25 of 74

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