Search Results

Search: Posts Made By: LiorAmitai
19,967
Posted By LiorAmitai
Carriage return ksh
Hello,

How do i usecarriage return in ksh....
10,851
Posted By LiorAmitai
Thanks!!!!!! it works!!
Thanks!!!!!!
it works!!
10,851
Posted By LiorAmitai
Thank for the quick reply. The correct output...
Thank for the quick reply.
The correct output should be 1 not 1f since 31 in hex = 1
Maby I wasnt clear before:
I want to convert from hex to char (ascii table) - and 31 (hex)= 1(char).
10,851
Posted By LiorAmitai
Convert Hex - KSH
Hello,

I woild like to convert hex on KSH not BASH:

I tried to use:

tmp=31
printf "\x"${tmp}""

it works on bash - Output is '1' but not on ksh.

please advice on the right syntax.
...
20,753
Posted By LiorAmitai
THANK!!!!!
THANK!!!!!
20,753
Posted By LiorAmitai
Yes i am sure. I need it for a specific client...
Yes i am sure.
I need it for a specific client and i am aware of it beeing irritating.
still the requierment is the same:
I need an echo "hit enter" running every 3 seconds till user hit enter key.
1,281
Posted By LiorAmitai
ksh loop
I need an echo "hit enter" running every 3 seconds till user hit enter key.


10x
20,753
Posted By LiorAmitai
Thank for your reply. this is not what is...
Thank for your reply.
this is not what is need...
I need an echo "hit enter" running every 3 seconds till user hit enter key.
20,753
Posted By LiorAmitai
KSH - type ENTER to continue
Hello,

Is ther any way to run a loop which promt an echo"waiting for user to hit ENTER"
sleeps for an iterval and once user hit the ENTER key the loop exit and the script continue to the next...
8,098
Posted By LiorAmitai
release fre swap memory on AIX
Hello,
How is it possible to free swap memory on AIX.

when i do vmstat on machine i can see less than 1 Gb "fre" when usually I have around 5 GB.

I dont wont to reboot the server.

any...
Forum: AIX 08-14-2011
2,647
Posted By LiorAmitai
Scan Rate
Hello,

How can i tell ifthe ratio between fr and sr is ok?

is fr/sr ratio of 0.9 acceptable?

thanks.
2,401
Posted By LiorAmitai
Math action in ksh
Hello,
I want to do div action in ksh and get the full result(with leftover).

i.e.
4/3=1.33
and not
4/3=1
36,146
Posted By LiorAmitai
I get the follwoing error: awk: syntax error...
I get the follwoing error:

awk: syntax error near line 1
awk: bailing out near line 1

---------- Post updated at 09:11 AM ---------- Previous update was at 09:11 AM ----------

I am using...
36,146
Posted By LiorAmitai
How to find character position in file?
how to find character positionin file?
i.e
string = "123X568"

i want to find the position of character "X".

Thanks
2,662
Posted By LiorAmitai
Validate xml agaist xsd is ksh
how do i validate xml agaist xsd is ksh?
1,246
Posted By LiorAmitai
Unique string
Hello,

Is ther a way to create a uniq string in ksh and to be able to define exactly how many characters will it be?
1,231
Posted By LiorAmitai
When using double cthe new file is created with 0...
When using double cthe new file is created with 0 kb size.
when using singal double quotes the file is created the same as the orig file.

---------- Post updated at 05:15 PM ---------- Previous...
1,231
Posted By LiorAmitai
Thanks for the reply but the file is being copied...
Thanks for the reply but the file is being copied to the new file without changing the required field.
meaning file is the same.
I used :
sed 's/$old/$new/' $file_name > new_file
1,231
Posted By LiorAmitai
Replace in KSH
Hello,

i want to replace a string AAAA to BBB in a file using script.
File:
1
2
AAAA
3
4
5


old=AAAA
new=BBB
cat $file_name | while read line;
do
if [ "$line" = "AAAA" ];then
...
1,590
Posted By LiorAmitai
this prints the all valus and not only the first...
this prints the all valus and not only the first one.
1,590
Posted By LiorAmitai
`grep 'ORA-'...
`grep 'ORA-' /opt/gppeup/gpp/log/paypluserrors.log | awk '{print $2}' | awk -F';' '{print $2}'`


Output:
MPB851 MPB874 MPB875 MPB874 MPB874 MPB874 MPB874 MPB872 MPB875

requested output:...
1,590
Posted By LiorAmitai
`grep 'ORA-'...
`grep 'ORA-' /opt/gppeup/gpp/log/paypluserrors.log | awk '{print $2}' | awk -F';' '{print $2}'`


output:


MPB851 MPB874 MPB875 MPB874 MPB874 MPB874 MPB874 MPB872 MPB875 MPB850 MPB875 MPB874...
1,590
Posted By LiorAmitai
Print first output
Hello,
II did a grep and got a lot of values
i.e
aa bb cc dd ee

and i want to print first only aa and afterward only bb etc...

help!
7,120
Posted By LiorAmitai
I used the below you provided: <Code> awk...
I used the below you provided:
<Code>
awk 'NR==200{print}' fix_UMR_500K.txt | awk '{print $2}'
</code>
is ther any way to substitute NR==200 with NR==$i
It doesnt recognise $i....
7,120
Posted By LiorAmitai
can you check the syntax of your reply i am...
can you check the syntax of your reply i am missing "`"
Showing results 1 to 25 of 43

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