Search Results

Search: Posts Made By: NARESH1302
1,558
Posted By NARESH1302
Great. Thank you very muchhhhhhhhhhhh. :-)
Great. Thank you very muchhhhhhhhhhhh. :-)
1,558
Posted By NARESH1302
Thanks for the reply. Yes, this code is...
Thanks for the reply. Yes, this code is working... But isn't there any other way without using this option- python ? Simply using unix shell script, for/while loop or sed/awk ?

Thanks,
Naresh
1,558
Posted By NARESH1302
How to add each entry in an unix file?
Hi,

I've a data file having entries like this-
$ cat BDWL.out
19571
349484
18963
349568
20180
351389
20372
350253

Now I want to add each entry and produce the final sum =1479780 as...
35,892
Posted By NARESH1302
How to use awk with while read line
Hi All,

Content of mydatafile-


Name Age
-------------- ---------------
Raju P 20 years
Hari 25 years
Priya S 30 years

I need...
11,952
Posted By NARESH1302
grep -ip command in Linux
Hi,

As you know we can capture paragraph information using -ip command with grep option in AIX and other OS. Is there anything similar to this command in linux to capture paragraph infroamtion?
...
2,267
Posted By NARESH1302
Hi, Even after giving full rah path, it's...
Hi,

Even after giving full rah path, it's not working. How to invoke environmental path from a script?
21,726
Posted By NARESH1302
Thank you very much, it worked fine. :-)
Thank you very much, it worked fine. :-)
21,726
Posted By NARESH1302
How to get decimal values ?
Hi All,

In my script I've written like this-


c=$( expr 100 / 3);echo $c


The output coming is 33. but I want to see 33.33, decimal values too. How to get that?

Thanks,
Naresh
2,267
Posted By NARESH1302
Issue while running from crontab
Hi All,

Here is my command which I've scheduled to be run from crontab, but it's giving error message: rah: rahhost executable needed but not in PATH

My cmd is-


36 10 * * *...
1,380
Posted By NARESH1302
Issue with redirecting output from crontab
Hello All,

I've scheduled one simple command to be run from crontab, but the command is failing to append the output to a file. Any issue in my syntax ? This rah cmd is working fine from command...
1,608
Posted By NARESH1302
Yes got the path. I gave path like this, still no...
Yes got the path. I gave path like this, still no use.:-(

/db2home/bculinux/sqllib/bin/rah "df -m"

It's not being able to run rah command from crontab.
1,608
Posted By NARESH1302
How to find out full path of rah?
How to find out full path of rah?
1,608
Posted By NARESH1302
rah issue when running from crontab
Hi All,

I've prepared a script, content is-

#!/bin/bash
echo "HI" > /tmp1
rah ";\ df -m" | sort -u >> /tmp1
echo "BYE" >> /tmp1

I've scheduled this script to be run thorugh crontab,...
1,566
Posted By NARESH1302
Thanks a lot, the first two solutions are...
Thanks a lot, the first two solutions are prefectly working fine. just wanted to know-

{prnit x} {x=$3} how it works, what it means...?

awk '$1=="State" && $3!~"0x0000"{print x}{x=$3}'
...
1,566
Posted By NARESH1302
How to extract previous value
Hi All,

I am just trying to write a small script which will take the following output as input, and then search for the 'State' value which is not equal to 0x0000, and then will give me output of...
2,449
Posted By NARESH1302
How to extract one part from whole output
Hi All,

I am trying to write a small shell programming to get db2 database size info. The command I am going to use is- db2 "CALL GET_DBSIZE_INFO(?, ?, ?, -1)"

and the output of above command...
5,052
Posted By NARESH1302
Hi, The code is working if thereis no gap...
Hi,

The code is working if thereis no gap betwen the two words of a dir.

e.g., /home/Dir1/Dir2/Word1 Word2/ -- > this is not working.

It is treates as 2 directories.
How to avoid this?
...
5,052
Posted By NARESH1302
Any response please?
Any response please?
5,052
Posted By NARESH1302
Hi Friends, The following code is working. ...
Hi Friends,

The following code is working.

find $top_dir -type d | while read d
do
echo $d: $( ls -A $d|wc -l )
done

But, in our environment there is a space between the two words of...
1,139
Posted By NARESH1302
Firewall installed
Hi Friends,

I have installed Web App Server(WAS) on Linux box, but unable to launch webinterface from IE.

I have a doubt that there is a firewall installed on the Linux box.

How can I...
5,052
Posted By NARESH1302
Hi, Thanks for the information. The first...
Hi,

Thanks for the information. The first code (below code) which is used to find across all the directories is working.

find $top_dir -type d | while read d
do
echo $d: $( ls -A $d|wc -l )...
5,052
Posted By NARESH1302
Using Find command
Hi Friends,

I need to find out the number of files available in each directory.
It should list no of files and directory name.

For ex. if there are directories like : /home/Dir1/Dir2/Dir3

I...
1,230
Posted By NARESH1302
Many many thanks, it worked fine now.:-)
Many many thanks, it worked fine now.:-)
1,230
Posted By NARESH1302
Issue in echo
Hi Friends,

I am trying a very simple thing to print through bash shell scripting using echo but failing. My script is-

A=Abha
B=Biha
C=2011
D=5
echo " The name is $A_$B$C0$D"
It should...
13,660
Posted By NARESH1302
How to edit /etc/passwd file to change the comment
Hi All,

I need to change the comment field in /etc/passwd file for one userid in my RHEL linux m/cs. I tried to open the file in vi editor and changed the comment, but next day it's getting...
Showing results 1 to 25 of 59

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