Search Results

Search: Posts Made By: rekha_sri
1,889
Posted By rekha_sri
How to set postgres process in monit file?
Dear Friends,

I need to add the postgres process in monit file ( Debian machine ). How to add that process in monit?. If anyone know the solution for this, pls let me know.

----------...
1,785
Posted By rekha_sri
Removing Old log files from Linux
Dear Friends,

I want to remove the 10 days old log files from paticular directory. I want to use some other command for removing the old log files other than find command. Because in our...
Forum: AIX 03-16-2010
17,499
Posted By rekha_sri
uname -m - Displays the machine ID number of the...
uname -m - Displays the machine ID number of the hardware running the system.

uname -u - Displays the system ID number. If this attribute is not defined, the output...
2,370
Posted By rekha_sri
Use the following script for getting the line...
Use the following script for getting the line count of the each file in a directory in head of the each file.


for file in `ls .`
do
if [ -f $file ]
then
var=`wc -l $file | cut -d ' ' -f 1`...
3,287
Posted By rekha_sri
Use the following shell script.It will be useful...
Use the following shell script.It will be useful for your requirement.


var=10
echo $var
. job
echo "var=$var"


job file contains

var=5
4,323
Posted By rekha_sri
Advanced Configuration and Power Interface(ACPI) ...
Advanced Configuration and Power Interface(ACPI)
----------------------------------------------------------------------

* ACPI support provide numerous tables of data describing a computer's
...
2,703
Posted By rekha_sri
Using bash script you can get the required output...
Using bash script you can get the required output in simple way.


field1="$field1 `cut -d' ' -f 1 file`"
field2="$field2 `cut -d' ' -f 2 file`"
echo $field1
echo $field2
3,957
Posted By rekha_sri
Use the following script for getting the filename...
Use the following script for getting the filename characters count.


ls -l | tail -n+2 > input
while read line
do
no=`echo $line | wc -c `
echo $line $no
done < input
5,619
Posted By rekha_sri
You try this code sed 's/Build Apache...
You try this code

sed 's/Build Apache module\" off/Build Apache module\" on/g' inp_file


Here the inp_file contains the line as follows


Build Apache module" off


I got the output as...
10,755
Posted By rekha_sri
Hi, What is your requirement? If the file...
Hi,

What is your requirement? If the file contains #include do you want to insert this line, the filename is "$filename" into the given file.
32,104
Posted By rekha_sri
Following line also match the IP address. It...
Following line also match the IP address.
It will match any IP address.

[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
30,403
Posted By rekha_sri
Using following way also you can get the...
Using following way also you can get the getTotalAmount() from test.txt.

cat test.txt | cut -d ' ' -f 3
1,924
Posted By rekha_sri
Try the following line, sed '$d' A > B ; sed...
Try the following line,

sed '$d' A > B ; sed '$!d' A > C

B file contents:
--------------------
first line
second line
third line

C file content:
-------------------
last line
13,112
Posted By rekha_sri
We can do it in php also using number_format()...
We can do it in php also using number_format() function.

Sample code:


<?php
$number = 482477.37;
$value = number_format($number,2);
echo "\$$value";
?>
5,743
Posted By rekha_sri
Hi, Using the following program you can...
Hi,

Using the following program you can display the bold number.

tput clear
echo -n "Enter the number:"
read num
echo "Number with bold"
echo "----------------"
tput bold
echo "$num"...
Forum: Solaris 03-02-2010
9,608
Posted By rekha_sri
Stripping: -------------- It stores the...
Stripping:
--------------
It stores the information on each disk.It is like data is split and stored in
two different hard disk.If one disk crashes you will lose all the data.
It is for improve...
3,156
Posted By rekha_sri
Hi, Following bash script for matched the...
Hi,

Following bash script for matched the ddd in the file1 and get the file contents from the file2.After matching the ddd in the file ,it will append the mmm at the end of the line.

file1...
Forum: Programming 02-26-2010
4,147
Posted By rekha_sri
Hi, Using following program you can get the...
Hi,

Using following program you can get the input from the command line
and print that line in stdout.


#include<stdio.h>
#define BUFSIZE 1024

main()
{
char string[BUFSIZE];
...
4,464
Posted By rekha_sri
Hi, Use the below line for getting the email...
Hi,

Use the below line for getting the email addresses from the MailAddresses.ini file and assigned into the TO.

TO=`eval cat MailAddress.ini`;
7,474
Posted By rekha_sri
Hi, Try the below line .It is working...
Hi,

Try the below line .It is working correctly. It replaced the day string into night for all *.sh files in the current directory.

sed -i "s/day/night/g" *.sh
3,455
Posted By rekha_sri
Hi, tr command also used for replace the ;...
Hi,

tr command also used for replace the ; into newline.

tr ";" "\n" < file


output:
----------
bat_aaj05a03
AGAGTTTGATCCTGGCTCAGGATGAACCCTGGCGGCGTGCCTAAT
bat_aaj05a06...
4,616
Posted By rekha_sri
Hi, !! - It represents, password has expired.
Hi,

!! - It represents, password has expired.
5,826
Posted By rekha_sri
Hi, Using following sdiff command you can...
Hi,

Using following sdiff command you can get the difference between two files.

sdiff -s text1.txt text2.txt

output:
----------
Hola ...
2,312
Posted By rekha_sri
Try the below sed command for deleting the first...
Try the below sed command for deleting the first two lines in the file.

sed '3,$!d' file
Showing results 1 to 24 of 24

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