Search Results

Search: Posts Made By: ahtat99
Forum: Linux 08-29-2011
3,073
Posted By ahtat99
when SCP, does file content change?
Good day to you all,

Just want to check here, i know when scping a file, size might change due to space issue. it might sound silly, but does file content get change too? if so, what kind of...
6,142
Posted By ahtat99
Next time i might try nawk and use some of your...
Next time i might try nawk and use some of your (this means all of you) suggestions. Thank you.
6,142
Posted By ahtat99
Gosh vino, that is cool, shorter than the one I...
Gosh vino, that is cool, shorter than the one I had before. Thank you. I am not too worry about the format though, because I could change as per user demand.
6,142
Posted By ahtat99
sed questions
Good day ya'all,

I had a csv file like below


date|country|ticker
19990101|US|2
20010303|AU|w


I had used the sed as below


sed 's/\/,/g;
...
54,995
Posted By ahtat99
Thank you all for replying, Perderabo, your...
Thank you all for replying,

Perderabo, your way is very close to what I am trying to accomplish, I will try your logic and let you all know the result. Thank you!

:D
54,995
Posted By ahtat99
ops, my fault, I was typing this on the fly while...
ops, my fault, I was typing this on the fly while converting most of my codes, because of the policy issue,

Actually the $array1 would be $sysFile1. I will make an update to the snipplets, thank...
54,995
Posted By ahtat99
Oh btw, I was trying to delete the array elements...
Oh btw, I was trying to delete the array elements if we found it matches. Thank you.
54,995
Posted By ahtat99
Perl delete an element from array
Probably I am not seeing it or I am not using the "delete" correctly I had the following codes but it does not work for me


#!/bin/perl -w
...
@sysFile1 = (a_b, a_c, a_d);
@sysFile2 = (a_c,...
2,221
Posted By ahtat99
Hmmm, really? ok thank you. May be i will just...
Hmmm, really? ok thank you. May be i will just rewrite the function into perl script then.
2,221
Posted By ahtat99
accessing a function in ksh from perl
is it possible? Because I know we could use

open(A, `abc.ksh`);


to access a ksh, but is it possible to access just one (or more) function from the ksh script?
4,060
Posted By ahtat99
Try this, just change yoru "-" to "eCustomerCME"...
Try this, just change yoru "-" to "eCustomerCME" and take away the tail and awk


xyz=$(ls -ltr | grep ^eCustomerCME*)
2,545
Posted By ahtat99
you are passing the "/var/lib/mysql/$IPdb" as a...
you are passing the "/var/lib/mysql/$IPdb" as a String rather than a directory

so your code should be


dbCheck2() {
if [ -d /var/lib/mysql/$IPdb ];
then {
:
# carry on in...
2,032
Posted By ahtat99
Thank you I will try your method.
Thank you I will try your method.
2,032
Posted By ahtat99
sed question (again)
hello there, I have a sed question.

I have a file (temp.srv), in it it has
v1_host1
v2_host2

And I have another file (temp2.srv), in it is has
v1_host3_date
v1_host1
v2_host2...
6,162
Posted By ahtat99
Well, figured it out. There are no push/pop for...
Well, figured it out. There are no push/pop for array in UNIX KSH. What I had done is that I cat the server names to a file and use sed to do my job, and then append those server name back to the...
6,162
Posted By ahtat99
Hopefully the section of the codes below will...
Hopefully the section of the codes below will help me to explain what i am trying to do

--------------------------------------------------------------------------

typeset -i count=0
set -A...
3,920
Posted By ahtat99
I think the website below has what you are...
I think the website below has what you are looking for

http://www.student.northpark.edu/pemente/sed/sed1line.txt
6,162
Posted By ahtat99
Array question
Hi all,
I have a question does anyone know if it is possible to push or pop an array in the ksh environment? Could anyone give me a hint, because I am trying to merge 2 server files together and...
3,573
Posted By ahtat99
Thank you vish, for pointing out my logical...
Thank you vish, for pointing out my logical error. Seems like I am having off day yesterday as well. :cool:
3,573
Posted By ahtat99
how about the following Code: #!/usr/bin/ksh ...
how about the following
Code:
#!/usr/bin/ksh

if [[ $# -le 2 ]] && [[ $2 != "P" || $2 != "Q" || $2 != "D" ]] then
echo "Improper Usage"
exit 1;
else
echo "Success"
...
2,367
Posted By ahtat99
The first "while" is missing. Not quite sure...
The first "while" is missing. Not quite sure where is your first "while" for your loop.
10,465
Posted By ahtat99
If I am not mistaken this is the way that...
If I am not mistaken this is the way that blowtorch was explaining

ls -lrt | sed -n '/^d/{p;q;}' | nawk '{print $NF}'
1,888
Posted By ahtat99
yes that would work, but the thing what if my...
yes that would work, but the thing what if my users forgot to use the options, such as just using it as "abc.ksh some_value". Because I thought I had set the error at the last line, when "abc.ksh" is...
1,888
Posted By ahtat99
question about getopts
hello there I am back with more questions (sorry it is been quite a while since I had done scripting). I had tried the search function to search for the threads that might have an answer to my...
Forum: IP Networking 08-17-2006
3,805
Posted By ahtat99
Personaly I think that since you already had...
Personaly I think that since you already had started to use the pcap lib, it would be a whole lot easier to code it and use it yourself, rather than going online to search for some shrink wrap...
Showing results 1 to 25 of 42

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