Search Results

Search: Posts Made By: sakthi.abdullah
12,270
Posted By sakthi.abdullah
echo ${PWD#${PWD%/*/*}/}
Can anyone explain this in detail ...

echo ${PWD#${PWD%/*/*}/}

[PWD is the present working directory]


Thanks in Advance
1,540
Posted By sakthi.abdullah
Ok,if it is of multiple values,which value it'll...
Ok,if it is of multiple values,which value it'll take by default??
1,540
Posted By sakthi.abdullah
Values in $PATH
Hi

When I type echo $PATH ,the output is

/usr/java/bin:/claims/cocoon/bin:/opt/cobol400/bin:
/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:...
2,247
Posted By sakthi.abdullah
knowing progress while reading a file
Hi,
I am parsing a very big file say 10 MB. It 'll take more than an hour ..I want to know the progress say in % .Is there any way to do that???
or
(Is there any way to know which line of the...
7,685
Posted By sakthi.abdullah
Nice Reply!!! _spare_ribs [ i m learning from...
Nice Reply!!! _spare_ribs [ i m learning from errors ]
Thanks really....
7,685
Posted By sakthi.abdullah
rm $(filename)*
hi ,

rm -f $(filename)*

removes ,not only $filename* but all the files in the directory .Why??
Imagine I have scripted for some one and a half hour and all the files are removed. F :D...
4,248
Posted By sakthi.abdullah
Can you please mention those ..
Can you please mention those ..
4,248
Posted By sakthi.abdullah
Again, echo "a/b/d" | sed 's#/#\\/#g' ll work...
Again, echo "a/b/d" | sed 's#/#\\/#g' ll work fine.... But What I need is something like this ..how can I store that value on to a variable
like abc=`echo "a/b/d" | sed 's#/#\\/#g'`
4,248
Posted By sakthi.abdullah
Can you explain this further because Usually...
Can you explain this further because
Usually it's of the form s/old/new/g but sed 's#/#\\/#g' contains only s/.../g
4,248
Posted By sakthi.abdullah
sed converting / to \/
Hi all,
I am using sed for converting a string of type /abc/def/gh by \/abc\/def\/gh

[trainee@LINUX ~]$ edu="/home/abc/dec"

When I echo that variable and pass it to sed ,it works fine......
14,312
Posted By sakthi.abdullah
I got it ... --- $1 $password already there.....
I got it ...
--- $1 $password already there..
sqlplus -s -L $dbausername/$dbapwd <<EOF
create user $1 identified by $password;
grant create session to $1;
exit;
EOF

Simple Naaa...Some ...
14,312
Posted By sakthi.abdullah
Some errors are coming
I tried that &&;
sqlplus -s -L $dbausername/$dbapwd $1 $password <<EOF
create user &&1 identified by &&2;
grant create session to &&1;
exit;...
14,312
Posted By sakthi.abdullah
passing unix variable to sqlplus without a file name
Hi,
I want to input unix variable to sqlplus.The following is working fine
sqlplus username/password @dummy.sql param1 param2 << EOF
create user $1 identified by $2;
EOF

But I dont...
6,251
Posted By sakthi.abdullah
got it
Got it!
i=40
while [ $i -ge 0 ]
do
echo "#\c"
sleep 0.004
i=`expr $i - 1`
done

Thnx for all
6,251
Posted By sakthi.abdullah
progress bar
Hi all,
I want to print # like that in a progress bar..
For e.g We can notice that during installation ... but,how to do that?


Thnx,
sakthi.
36,833
Posted By sakthi.abdullah
tput rmso ll not remove bold
tput bold ll do..
but `tput rmso` ll not remove that
However `tput reset` ll clear altogether
6,686
Posted By sakthi.abdullah
yes.. working on modifications
yes.. working on modifications
6,686
Posted By sakthi.abdullah
By default, in our calendar ..
By default, in our calendar every 4 years leap year ll occur. Right!
6,686
Posted By sakthi.abdullah
given a date,find the next date
Hi,
There are already some scripts posted in this forum reg date manipulations.This one is a addition to that.Go thro this script..
I didn't do any error checking (assuming that could be done...
36,833
Posted By sakthi.abdullah
Got it
I got it accidentally from a script in internet.

What they use is...
tput smso //for enabling the highlighting
tput rmso //return to normal mode
36,833
Posted By sakthi.abdullah
"highlighting the text in ur output"
Hi,
Can anyone tell me..how to highlight a particular part of ur output text in shell programming..say,if all the o/p is against black bground,i need some text to be against white bground.....
Forum: Programming 11-17-2006
5,993
Posted By sakthi.abdullah
Here as told .. the function is of type ...
Here as told .. the function is of type
signal(int sig,<func-name>)

Here func-name(int sig){ }
Here the signal handler function, takes the signal number as argument ...
...
Showing results 1 to 22 of 22

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