Search Results

Search: Posts Made By: m4rty
2,359
Posted By m4rty
ohhh man, IT WORKS :-). THANKS MAN
ohhh man, IT WORKS :-). THANKS MAN
2,359
Posted By m4rty
I used input first.txt car mama ...
I used

input
first.txt
car
mama
flash
monitor

second.txt
cocacola
car
busstop

while read pattern; do grep '$pattern' first.txt; done < second.txt

I dont get any output :-(
2,359
Posted By m4rty
No its not, its just for my personal use :-).
No its not, its just for my personal use :-).
2,359
Posted By m4rty
I would like to use more than one command, or...
I would like to use more than one command, or something else (like grep). So I would use first one, the loop.But Idk why it doesnt work.

A agrep was just an example.

---------- Post updated at...
2,359
Posted By m4rty
UNIX commands in AWK
Hi, I have 2 lists of words and I need to take every line in first_list.txt and use agrep command to find similar words in whole second_list.txt.

I tried to use AWK, but I dont know how to take...
6,102
Posted By m4rty
Input: cat list.txt output: ...
Input:


cat list.txt

output:
computer
mobile
users

cat list2.txt

output:
computers
mobil
dogs


What want is to take words one by one from the list.txt, let search each word in...
6,102
Posted By m4rty
Hi, thank you all for ur responses. Im not sure...
Hi, thank you all for ur responses. Im not sure if i get.

I need to get a line (from list.txt) in the variable var, that AWK processes and use agrap on it. The first line is represented as $0.
6,102
Posted By m4rty
Pls could you give me an example how to get the...
Pls could you give me an example how to get the var in some unix command in nawk or gawk?
6,102
Posted By m4rty
Using current line in a command in AWK
Hi, Im trying to get current line in the AGREP command I use in AWK. My script looks like this:


list.txt
car
bus

checklist.txt
cer
buss

cat list.txt | awk -v mycmd="$(agrep -2 -i $0...
Showing results 1 to 9 of 9

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