Search Results

Search: Posts Made By: ahfze
2,713
Posted By ahfze
sorry i meant awk awk -f script.awk file1 ...
sorry
i meant awk
awk -f script.awk file1 file2>output

can i mention the file1 and file2 using above command.
could you modify the script you gave me?
thanks
2,713
Posted By ahfze
Thanks, i think this works.testing it for a big...
Thanks,
i think this works.testing it for a big file.
just one thing.
i am trying to put the codes in a .awk file and then run it.
i would like to run it like
perl script.awk input1 input2...
2,713
Posted By ahfze
Debian bash
Debian bash
2,713
Posted By ahfze
Using awk instead of grep -f
Hi Guys.
I am trying to count occurances of patterns(occurance can be anywhere in file2) from file1 in file2.
file1 is
god
god
pod
rod
file2 is
iamgod
iamgod
podrod
123rod456

output...
4,027
Posted By ahfze
yes that works. thank you
yes that works.
thank you
4,027
Posted By ahfze
Extract content between strings
Hello
i am stuck with this.
i have input which is as follows
/type/work /works/OL10627594W 3 2019-04-24T16:46:21.351549 {"created": {"type": "/type/datetime", "value":...
602
Posted By ahfze
Thank you. brilliant work.
Thank you.
brilliant work.
602
Posted By ahfze
Grep expression
im trying to find the best way to match an expression using grep.

input file is
<html>word word word word.</a>
<html>word word word word word word .</a>
<html>word word word word word word...
8,853
Posted By ahfze
hi guys. ok so im working with a huge pattern...
hi guys.
ok so im working with a huge pattern file Q.
i am trying to split the pattern file Q into 50 files and saving output of grep in file1,file2...etc
the problem is that the output keeps...
8,853
Posted By ahfze
im trying to grep -f patternfile file both...
im trying to grep -f patternfile file

both patternfile and file are huge so grep doesnt work here.
ive been reading up that awk is the way out here.

Can someone help me with an awk which does...
8,853
Posted By ahfze
im trying to grep -f patternfile file both...
im trying to grep -f patternfile file
both patternfile and file are huge so grep doesnt work here.
ive been reading up that awk is the way out here.

i need a solution for this.
thanks
8,853
Posted By ahfze
Grep -f for big files
ok guys.
this isnt homework or anything.
i have been using grep -f all my life but i am trying this for a huge file and it doesnt work.

can someone give me a replacement for grep -f pattern file...
2,361
Posted By ahfze
ok.got it. thanks guys.
ok.got it.
thanks guys.
2,361
Posted By ahfze
Hmm i am not a student so this isnt...
Hmm i am not a student so this isnt homework/coursework.
im learning these commands as i need to analyze some big project files.
kinda work for me.
is this ok?
2,361
Posted By ahfze
zeros$ zest$ zests$ zilla$ zillas$ ...
zeros$
zest$
zests$
zilla$
zillas$
zimbabwe$
zinc$
zine$
zines$
zing$
zings$
zion$
zip$
zippy$
zips$
zodiac$
zombie$


should i use the same ah.awk code you posted above or do i...
Forum: What is on Your Mind? 02-13-2018
6,354
Posted By ahfze
certification is ok but practical knowledge is...
certification is ok but practical knowledge is better.
2,361
Posted By ahfze
Rudi thanks. your command works fine but as...
Rudi thanks.
your command works fine but as both files are huge grep fails i think.
can you give me something equivalent in awk?

---------- Post updated at 10:04 PM ---------- Previous update...
2,361
Posted By ahfze
Grep pattern file and count occurances
Guys
I am trying grep to read from pattern file and count occurances of each word.
input is

firstplace
secondplace
secondpot
patternfile is
place
first
second
i want the following....
1,274
Posted By ahfze
thanks abdulbadii the grep code you provided...
thanks abdulbadii
the grep code you provided works better.
much appreciated
1,274
Posted By ahfze
yes this is exactly what i want. sorry about...
yes this is exactly what i want.
sorry about the confusion and thanks for helping again.

---------- Post updated at 12:26 PM ---------- Previous update was at 12:22 PM ----------

ok checking ...
1,274
Posted By ahfze
yes this perfect. sorry im not changing my mind...
yes this perfect.
sorry im not changing my mind but just trying to get the correct command.
im new here so apologies for any inconvenience caused.
1,274
Posted By ahfze
guys i tried all the commands you gave me but it...
guys i tried all the commands you gave me but it fails if the input file is a bit long and complex(longer sentences).

i am trying for this input A circumferential abdominoplasty is an extended...
1,274
Posted By ahfze
thanks. ok ill be a bit more specific. input...
thanks.
ok ill be a bit more specific.
input is a huge text file with lots of sentences.

fish map.this is (Kubernetes, Mesos DC/OS, and Docker Swarm) and Azure Service Fabric are indispensable...
1,274
Posted By ahfze
Grep for multiple string
im learning grep and i need some help.



i have input word file like this

fish map.this is
go to.that is

i want sed,awk or grep command to
extract the following in this format
...
1,013
Posted By ahfze
Linux command needed
guys im new here and i need help with some linux commands.

filea has keyword on each line

identity
aaa
bbb
ccc


i have following commands.

egrep 'www.identity' ~/home/m3 >~/home/lopo2...
Showing results 1 to 25 of 25

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