Search Results

Search: Posts Made By: khestoi
7,923
Posted By khestoi
this is the thing that i need: file1line1...
this is the thing that i need:

file1line1 file2line1
file1line1 file2line2
file1line2 file2line1
file1line2 file2line2

actually there are no errors. in vbe's solution, no output file was...
7,923
Posted By khestoi
ctsgnb i also tried your suggestion but i am...
ctsgnb i also tried your suggestion but i am getting a couple of garbage characters for $b when using the other script or shall we say "yourscript" based on your code.
7,923
Posted By khestoi
i mean argz ---------- Post updated at 01:17...
i mean argz

---------- Post updated at 01:17 AM ---------- Previous update was at 01:08 AM ----------

cant get it to work vbe. i also tried to use the code provided by guru but it didnt work...
7,923
Posted By khestoi
yes that is my problem i cannot get my script...
yes that is my problem
i cannot get my script to work. i wrote it that way for you guys to understand what i am tryng to do

---------- Post updated at 01:02 AM ---------- Previous update was at...
7,923
Posted By khestoi
read the lines of multiple files
I am trying to create a script which will read 2 files and use the lines of file 1 for each line on file 2.

here's my sample code


cat $SBox |
while read line
do
cat $Date...
1,502
Posted By khestoi
forgot that one Thanks! that did it!
forgot that one
Thanks!
that did it!
1,502
Posted By khestoi
aCC exit error
Hi guys
I would just like to know if aCC supports the command exit(0); in c++?
I am always getting the error below:

Error 328: "ac5.C", line 37 # Function 'exit' has not been defined yet;...
3,036
Posted By khestoi
How to take parameters as non case sensitive
Is there a way for me to take a parameter then store it in a variable and use its value as non case sensitive?

Ex.


Lets say i have a parameter which contains "Hey".
Then im gonna store it...
4,189
Posted By khestoi
thanks for all the help guys finally got my...
thanks for all the help guys finally got my script working.
4,189
Posted By khestoi
Both method works. Thanks! I have a...
Both method works.
Thanks!

I have a question regarding DGPickett's suggestion. How do i use that method if i have a text file which doesnt have a "." on it? So if the script encountered a line...
4,189
Posted By khestoi
How to pass the parameter value to a... ?
Hello

I have a simple code like this one:


#!/bin/ksh
VER=$1
cat /usr/text | while read line
do
echo $line
done


Let's say $1=1.0.0 and the contents of text is:
abcd.cfg...
4,076
Posted By khestoi
Making a program compiled on Unix (HPUX) work on Linux
I am trying to make an application which works on unix to work on linux. I already tried copying the binary files and start it up but I am getting an error stating "Cannot execute binary file". Then...
26,552
Posted By khestoi
Ok that did work! Thanks! How about if i want...
Ok that did work!
Thanks!
How about if i want to display the lines above the line where the pattern was found?
26,552
Posted By khestoi
it worked for me. But i just encountered a...
it worked for me.
But i just encountered a problem.
It seems that it doest work if i use the pattern "Received: event [ 313 ]".
26,552
Posted By khestoi
Cool! You're the man! Thanks!
Cool!
You're the man!
Thanks!
26,552
Posted By khestoi
Nope. The -A option is not available. I tried...
Nope. The -A option is not available.
I tried the awk command and it works but it will only yeild one result.
26,552
Posted By khestoi
Using grep and zgrep then display the next few lines
Hello everyone.
I would like to know if I can use grep or zgrep to search for a particular pattern then print the x number of lines after the pattern was found.
Lets say for example a pattern was...
3,116
Posted By khestoi
Wow that works great! Thank you so much for...
Wow that works great!

Thank you so much for your help. This will save me a lot of time!
3,116
Posted By khestoi
Ok looks like i got it to work. The thing is...
Ok looks like i got it to work.
The thing is not all events are being shown in the output file.
3105 is not included but 3000 is included

The contents of my testscript contains exactly what you...
3,116
Posted By khestoi
Thank you for replying to my posts. I tried...
Thank you for replying to my posts.

I tried running the script you recently posted but nothing happened.

I tried this

./testscript2.sh IPLIST > IP

which should direct the output to a file...
3,116
Posted By khestoi
Yes i need the unique IPs per event. I tried to...
Yes i need the unique IPs per event.
I tried to put your code in a .sh file and executed it but it did not work.

How do i execute your script? Havent tried perl codes yet.

---------- Post...
3,116
Posted By khestoi
radoulov I just tried your code and it works. ...
radoulov
I just tried your code and it works.
I have a question though.
Will it omit the duplicate IPs?
3,116
Posted By khestoi
Data Manipulation
Hello

I am currently having problems in mapulating a certain file which contains vaious data.
Belos is a sample content

Event=<3190>
Client IP=<151.111.11.143> DNS=<abc.sbc.com>...
18,833
Posted By khestoi
It worked great! Thanks sysgate
It worked great! Thanks sysgate
18,833
Posted By khestoi
Zgrep equivalent-
Hi guys
I cant use zgrep on a SunOS
Do you know any alternative for it?
i need to use
zgrep -c
grep works fine
but zgrep is not supported
Showing results 1 to 25 of 66

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