Search Results

Search: Posts Made By: PRKS
3,975
Posted By PRKS
Thanks Franklin, Can you please explain the...
Thanks Franklin,

Can you please explain the awk one..

thanks..
3,975
Posted By PRKS
Limit output in awk
Hi All,

I want to delimit the output using awk.
For eg::

a,b,c,d,e,f
abc,def,ghi


should change to

a|b|c|d|e|f
abc|def|ghi


Or to put in another way..

OFS will work in the...
10,470
Posted By PRKS
Hi fpmurphy, I m using HP-UX. All I want...
Hi fpmurphy,
I m using HP-UX.

All I want to do is to make a function that will store the list of files of a given directory (in an array perhaps) and return that array..

something like
...
10,470
Posted By PRKS
Hi... ksh version in "Version 11/16/88" ...
Hi...
ksh version in "Version 11/16/88"

Its giving this error...
try: Syntax error at line 11 : `(' is not expected.
10,470
Posted By PRKS
Original script... ---------- Post updated...
Original script...

---------- Post updated at 06:22 AM ---------- Previous update was at 06:19 AM ----------

fileLimit=5
func(){
dir="$1"
format="$2"
array="$3"
...
10,470
Posted By PRKS
Array copy in ksh
Hi all,
Following code in ksh is giving error:


fileLimit=5
func(){
dir="$1"
format="$2"
array="$3"
i=0
ls -lrt $format | tail -${fileLimit} | while read f_det; do
...
8,498
Posted By PRKS
calling jar file from ksh
Hi,

I have a below command in ksh ....


$JAVA_HOME/bin/java -cp...
Forum: Programming 12-24-2009
9,008
Posted By PRKS
regarding classpath java
Hi,

I have a below command....

$JAVA_HOME/bin/java -cp...
4,354
Posted By PRKS
Hi ! I am using ksh and its giving this...
Hi !
I am using ksh and its giving this error::

date: bad format character - s



Please help...
2,082
Posted By PRKS
Superb !!!!
Superb !!!!
4,354
Posted By PRKS
Time Difference
Hi Experts...

I want to calculate the time difference between two date-time values (using ksh). It can return the difference in hours (or whatever..)

For eg: time_diff "09/12/2009 12:30"...
2,485
Posted By PRKS
I apologize for the late reply... The rule here...
I apologize for the late reply...
The rule here is :: every data lie between the tags <start> and </start>. Ignore all the other data...

For eg::
If we consider the following data::
<start>
ad...
2,485
Posted By PRKS
It wont work... It'll giv the foll. output. ...
It wont work... It'll giv the foll. output.

<start>
ad
bd
</start>
<start>
d
e
f
mb<start>mu
g
h
i
</start>
<start>
a
f
g
</start>
2,485
Posted By PRKS
Deleting words between tags
Hi !!!

I need to write a script(ksh) that deletes any character outside <start> tag and </start> from a file.

For eg:

$cat file.txt
<start>
ad
bd
</start>
as</start>
<start>
d
e
f...
7,781
Posted By PRKS
script to read mail on a mail server
Hi All,

Is there any way Unix shell script can directly read a mail on a mail server
(for eg. abc@xyz.com (abc@xyz.com)) and save it as a text file in a unix directory ?


Thanks
PRKS
...
11,149
Posted By PRKS
operating system: unix HP shell: ksh Dont...
operating system: unix HP
shell: ksh

Dont know anything bout mail program....

Thanks,

---------- Post updated at 08:06 AM ---------- Previous update was at 12:58 AM ----------

Can anyone...
11,149
Posted By PRKS
seen procmail. but i cannot install procmail to...
seen procmail. but i cannot install procmail to the sysatem....
can anyone give me some code to accomplish this..

Thanks
11,149
Posted By PRKS
script to read mail
Hi,

I want to write a script that will read mail ( for eg: from abc.def@yahoomail.com ). And if it finds a particular subject then do something..

Is it possible....

Please help...
Thanks...
3,196
Posted By PRKS
thanks a lot scottn... it worked...
thanks a lot scottn... it worked...
3,196
Posted By PRKS
Prefix integer with zeros
I want an integer to be prefix with some zeros so that it makes the integer 5 digit always:

For eg: if the digit is 8 i need 00008
if the digit is 8976 ans sud be 08976.

Could anyone say...
4,341
Posted By PRKS
Lets c a simple eg: function1() { ...
Lets c a simple eg:

function1()
{
echo "Hi there"
str="This is the string"
echo $str
}

now if I do ::
result=$(function1)
echo "Result is: ${result}"

It shows::
Result is:...
4,341
Posted By PRKS
Thanks.. but it works for simple programs where...
Thanks..
but it works for simple programs where there is only one echo. it wont work if i want to echo some other string..

For eg :

myfunc()
{
echo "Inside myfunc()"
# Do all the...
4,341
Posted By PRKS
return in function
I am using ksh. I want to know how can we make any function to return string or double value.
I dont want to use the global variables.
7,527
Posted By PRKS
yippppiiiiiiii........ It worked. Thank...
yippppiiiiiiii........
It worked.

Thank you very much....
7,527
Posted By PRKS
I tried doing:: awk 1 filename.txt > file1 ...
I tried doing::

awk 1 filename.txt > file1
mv file1 filename.txt

Its working fine but its touching all the other files which are correct. I have 100s of files. And this problem is in very...
Showing results 1 to 25 of 27

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