Search Results

Search: Posts Made By: muruganksk
11,292
Posted By muruganksk
Hi, Thanks a lot for the valuable help.. ...
Hi,
Thanks a lot for the valuable help..

The command that you gave last worked fine, but then the issue am facing now is i need to print some values before the execution of script.
...
11,292
Posted By muruganksk
Thanks for your help, but quiet unfortunately...
Thanks for your help, but quiet unfortunately doesn't work. Is there any other help.
11,292
Posted By muruganksk
Hide status value from awk system command
Hi,
When i use the system( ) function inside a awk, i am getting the ouput with a 0 appended in a new line.

Can someone guide me to eliminate the extra line containing 0.

Ex :

awk -F"|"...
4,074
Posted By muruganksk
Hello Magesh, diff tells you which lines...
Hello Magesh,

diff tells you which lines must be changed in the first file to make both files agree.


When looking at diff output, lines starting with < show lines which are in the first...
19,782
Posted By muruganksk
Try this.. ${MAIL} -s "health check" -a...
Try this..

${MAIL} -s "health check" -a ${Mail_file} ${Mail_addr}


If you want to send the attachment with the mail body..

${MAIL} -s "health check" -a ${Mail_file} ${Mail_addr} <...
3,362
Posted By muruganksk
Need some variable values
Can you get me the value for two variables in your server. So that it's easier to identify the issue.

cat /usr/include/sys/limits.h

and get me the value for

BC_BASE_MAX

BC_SCALE_MAX
3,362
Posted By muruganksk
You can try it in Ksh and sh. It will work...
You can try it in Ksh and sh.

It will work when adding "then" in your first post script.

Try this
1,451
Posted By muruganksk
Can you please provide us more details. So that...
Can you please provide us more details. So that we can help you in a better way.

From where you are comparing??
If you any input files??
42,127
Posted By muruganksk
Check the process after Reboot
Check the Process of cron. You will end up like this.

ps -eaf | grep cron.

root 12357 1 71 sep 02 - 3123:27 /usr/sbin/cron
root 561644 598403 0 10:03:59 pts/0 0:00 grep cron...
42,127
Posted By muruganksk
Many a times after reboot, machines have a problem with cron job.
Machine : Linux

Solutions:

This problem can be solved by editing, or removing then "reentering" the cronjobs again after Reboot using crontab -e.

or

I suppose you will be using crontab...
3,912
Posted By muruganksk
To get alphanumeric using sed command.. $...
To get alphanumeric using sed command..

$ echo fdsdsklf#@^%$#hf0124 |sed 's/[^a-zA-Z0-9]//g'

try this also..
3,093
Posted By muruganksk
Try this..
User can trigger this sample.sh ( consider the user is going to use this script).

When user trigger this script they will be asked to enter the directory name after that only operation will take...
4,343
Posted By muruganksk
can you post your scriplet over here.. So that I...
can you post your scriplet over here.. So that I can have a look.
4,343
Posted By muruganksk
can you post your scripplet over here.. So that I...
can you post your scripplet over here.. So that I can have a look.
5,042
Posted By muruganksk
Don't use double codes(" "), use back quote(` `)...
Don't use double codes(" "), use back quote(` `) to execute any..
Store that in a variable.

$ countBcp=`ls -l -d | wc -l`#
$ echo "# of bcpFiles folder: $countBcp" #
# of bcpFiles folder: ...
4,343
Posted By muruganksk
Remove the brace..
Remove a brace from if loop..

Same code with modification...

while read num domain
do
if [ $num -ge 200 ] ; then
echo "postmaster@"$domain
fi
done < inputfilename


Try...
11,395
Posted By muruganksk
Try this..
I am not having any problem in using this..

I created one txt file with two lines.

$ cat checking.txt
Date operation
Nov 02

Then executed the below commands

$ td=$(date '+%b %d')
$ $...
1,880
Posted By muruganksk
Use the for loop like this. Remember use back...
Use the for loop like this.
Remember use back tick inspite of single Quote in for syntax.
Consider the script name as sample.sh.


for i in `cat inputfilename`
do
echo $i
# you can use grep...
2,025
Posted By muruganksk
Links:
Follow the below link to know about the complier.

C++ Home : Articles (http://www.cpp-home.com/index/tiki-view_faq.php?faqId=1).

You can get the free complier software in the below link.
...
4,554
Posted By muruganksk
crontab
To use the crontab command, users must be listed in the file /etc/cron.allow. If that file doesn't exist, the users must not be listed in /etc/cron.deny. If neither file exists, all users can use the...
3,093
Posted By muruganksk
Try these..
Consider your script name is "testing.sh".

Inside the Script you are calculating some information about the current directory..

$ ls -lrt /home
$ # do some operation with the directory
...
8,198
Posted By muruganksk
code : two approaches results differntly
See the below two examples:

e.g.1

$str=",,,checking,"
$echo $str | sed 's/,//g'
$checking

This will eliminate all the commas in the string (before, after & in-between).

e.g.2...
8,198
Posted By muruganksk
code:
You can use the sed ( stream editor) to do this.. Please see the below example so that you can eliminate the starting commas.

$echo ",,,checking" | sed 's/,/ /g'
$ checking

The output will...
Showing results 1 to 23 of 23

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