Search Results

Search: Posts Made By: izuma
2,912
Posted By izuma
grep a certain file using the string file another textfile
THis is my code


echo "Filter1: " $F1 " file/s" >> $FILE
for x in `cat cg.txt`; do
echo $x
z=`grep $x tmp2.txt | wc -l`
if [ $z -eq 0 ]; then
echo "\\t" $x...
4,396
Posted By izuma
could you provide an explanation? :P i was...
could you provide an explanation? :P

i was considering using regex for this but dont know how
4,396
Posted By izuma
simply, i need to match the lines into its...
simply,
i need to match the lines into its corresp0nding prefix (18 prefix), so that i can count how many time each prefix appeared in the textfile.
4,396
Posted By izuma
basically there are 18 patterns all in all. (18...
basically there are 18 patterns all in all. (18 specific length)
So what i want to do is to 'for loop' the file to get each lines, and there will be 18 if,elif,else statements.
But i dont know how...
4,396
Posted By izuma
cut a string in a textfile line per line
i need to cut the string in a textfile but each line has a specific way of cutting it (different lengths)

i have a for loop that gets the string line per line, then each line has to be compared:
...
Forum: IP Networking 05-04-2009
115,445
Posted By izuma
I'm using your code but i have a problem, i...
I'm using your code but i have a problem,
i need the code to be flexible in such a way that it changes the filename it gets everyday. And it should be done automatically.

For example,
1st day:...
3,927
Posted By izuma
is this possible? awk -F '([[]|[|]|:|,)'...
is this possible?

awk -F '([[]|[|]|:|,)' 'NF>=11 && substr($0,$32,$4)=="name" {print $4, $9, $11}' myfile.log

because unfortunately there are two lines that have greater than 11 lines, so the...
3,927
Posted By izuma
10 Apr 2009 0:16:16 [6|1|3|2] * name: Tuna Belly...
10 Apr 2009 0:16:16 [6|1|3|2] * name: Tuna Belly Format: Well done, Price: 999 only
14 Apr 2009 0:00:57 [6|1|3|2] * Order menu: 'D:\resto/menu/etcetc' opened ( 2 of
7 )
14 Apr 2009 0:00:57...
3,927
Posted By izuma
i forgot to mention that the log file contains...
i forgot to mention that the log file contains many data:

ex.
10 Apr 2009 0:16:16 [6|1|3|2] * name: Tuna Belly Format: Well done, Price: 999 only
data data data data etc etc
data data data data...
3,927
Posted By izuma
parsing a log file
I need help in parsing the following log files.

10 Apr 2009 0:16:16 [6|1|3|2] * name: Tuna Belly Format: Well done, Price: 999 only
10 Apr 2009 0:16:16 [4|0|3|2] * name: Roast Beef Format:...
Showing results 1 to 10 of 10

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