Search Results

Search: Posts Made By: mk1216
Forum: Solaris 03-14-2012
86,864
Posted By mk1216
Hi, I have logged in with my user name and my...
Hi,
I have logged in with my user name and my Oracle DBA is running the command.

ps aux | less -+S too didn't work :(
Forum: Solaris 03-13-2012
86,864
Posted By mk1216
$ echo $TERM xterm I do not have root...
$ echo $TERM
xterm

I do not have root privileges.

$ /usr/ucb/ps auxwww | grep imp | grep -v grep
oracle 6884 0.0 5.5 ? ? ? S Mar 09 43:11 imp ***/** file=imp_pipe...
Forum: Solaris 03-12-2012
86,864
Posted By mk1216
Thanks for replying unfortunately this too hasn't...
Thanks for replying unfortunately this too hasn't helped..
Any other suggestions ?
Forum: Solaris 03-12-2012
86,864
Posted By mk1216
Show complete command on command line when we use 'ps'
Hi,
When I query using ps -ef, the complete command is not displayed and is truncated.
Can you please tell me a method to resolve this ?
I have tried the below.
ps -ef | cat
ps -ef | grep imp...
4,298
Posted By mk1216
Thanks for this, ...
Thanks for this,

100,100,"X",1234,"12A",,,"abc"

but what I am trying is to replace the field seperator comma alone with character like pipe or \001.


Original data...
4,298
Posted By mk1216
Yes, only the field seperators. If there is a...
Yes, only the field seperators. If there is a comma within double quotes, then leave it as it is.
4,298
Posted By mk1216
Problem with changing field separators in a file
I have a file with content as shown below.

cat t2 :
100,100,"X",1234,"12A",,,"ab,c"

Comma is the field seperator, however string fields will be within double quotes and comma within double...
Forum: HP-UX 11-23-2010
17,507
Posted By mk1216
Thanks very much for the quick post. I...
Thanks very much for the quick post.

I tried this option -> $(date +\%Y\%m\%d) and it worked fine.

On the same lines I tried escaping the % in my original command and that worked as well..
...
Forum: HP-UX 11-23-2010
17,507
Posted By mk1216
Problem with script arguments in crontab
I have a script scheduled in cron as shown below.

16 12 * * * /users/mydir/bin/process_master.ksh `date '+%Y%m%d'` >> /users/mydir/process_master.out

This script executes correctly when...
1,396
Posted By mk1216
All these are basically syntax errors ....missing...
All these are basically syntax errors ....missing double quotes `"` , loop ending incorrectly .etc ..Please go through the error messages and debug based on line number shown in the error .
5,208
Posted By mk1216
for i in `ls -trc |tail -10` do mv $i...
for i in `ls -trc |tail -10`
do
mv $i <new_dir>
done
5,469
Posted By mk1216
you can intialize the variable in ".profile" file...
you can intialize the variable in ".profile" file of your user directory .

eg:
export custom_path="<absolute path>"

Once this line is added to profile ,
Schedule you script in cron like...
2,092
Posted By mk1216
go to directory in which you want to rename files...
go to directory in which you want to rename files and try this:

for i in `ls `
do
mv $i newname_$i
done

newname-can be replaced with any text.

This is to rename all files in that...
5,235
Posted By mk1216
You could also use -s option in the IF construct....
You could also use -s option in the IF construct. "-s" will result true if file is non zero. So i have used negate operator.

if [ ! -s $DD_INDD ]
then
echo "file empty"
else
echo "file has...
27,553
Posted By mk1216
Thanks a lot, this command worked.
Thanks a lot, this command worked.
27,553
Posted By mk1216
Hi Zaxxon, I have tried the commands you...
Hi Zaxxon,

I have tried the commands you have listed . The output i am looking at is something mentioned on this link .

...
27,553
Posted By mk1216
File modification history
Can anyone please suggest an alternate command for "stat" . I am trying this on Solaris 5.9 , but the command doesn't exist.

Basically i need to see one particalar file modification history. Any...
4,082
Posted By mk1216
Anything more specific will help to work on this...
Anything more specific will help to work on this post.
6,022
Posted By mk1216
Hi Vgresh99, Thanks for the instant post,...
Hi Vgresh99,

Thanks for the instant post, can you breakup the command and let us know please .
7,633
Posted By mk1216
You could try without double codes , however the...
You could try without double codes , however the command you have shown worked for me .
6,022
Posted By mk1216
I think we first need to see data in csv , then...
I think we first need to see data in csv , then can think of using shell.
2,981
Posted By mk1216
Try this: phonenum=+`tail -1 number.txt |...
Try this:

phonenum=+`tail -1 number.txt | cut -d"+" -f2`
2,981
Posted By mk1216
Previous code holds good only if your data file's...
Previous code holds good only if your data file's last line is always in this format :

"Firsname Lastname:KEN:+254456789"
2,981
Posted By mk1216
new code
for i in `ls textfiles*`
do
phonenum=`tail -1 $i | cut -d":" -f3`
echo $phonenum
done

Try this , now $phonenum should have + as well !
5,285
Posted By mk1216
Then whats the o/p you are seeing ?
Then whats the o/p you are seeing ?
Showing results 1 to 25 of 47

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