Search Results

Search: Posts Made By: Himanshu_soni
1,863
Posted By Himanshu_soni
Attach file in mailx command
Hi
I want ot send a mail with aatach a file for this i have tried

mailx -s "COMPLETED: deal.sh" -a /usr/local/bin/test.out me@nowhere

uuencode /usr/local/bin/test.out...
61,119
Posted By Himanshu_soni
Attach file in mailx command
Hi
I want ot send a mail with aatach a file for this i have tried

mailx -s "COMPLETED: deal.sh" -a root/usr/local/bin/sched/nightly_Cronjob/test.out me@nowhere

uuencode...
130,345
Posted By Himanshu_soni
Thanks guys :)
Thanks guys :)
130,345
Posted By Himanshu_soni
How to store the sql query output into txt file?
Hi
I want ot save SQL query result in one txt file. for that i have written one code line

sqlplus -s $dbstring @/usr/local/bin/sched/nightly_Cronjob/exec_123.sql >>...
1,299
Posted By Himanshu_soni
One doubt regarding chmod command
which one is correct

chmod 777 file.txt or chmod 777 / file.txt

what is difference in these two commands?

thanx in advance
1,654
Posted By Himanshu_soni
sorry i did not get you. now what should i...
sorry i did not get you.

now what should i do for unmask the command?
1,654
Posted By Himanshu_soni
it is not working showed error msg sed...
it is not working

showed error msg sed :illegal option --i is not valid
1,654
Posted By Himanshu_soni
delete lines form file
Hi

i am writing a cron job. in this script i need to delete some line which is match with some pattern.
following code i written for deletion
sed '1,'$Max_LIneNo' d' myfile.txt >tempfile.tmp...
4,050
Posted By Himanshu_soni
thanx buddy you helped me alot:)
thanx buddy
you helped me alot:)
4,050
Posted By Himanshu_soni
there is problem pravin Hi my code...
there is problem pravin

Hi

my code type is this in var3 i calulate date

var3=$Month1" "$day # var3=Dec 3

Max_LIneNo=`awk -v var="$var3" '$1FS$2 ==$var {i=NR} END {print i}' input...
4,050
Posted By Himanshu_soni
one more doubt buddy if i run this ...
one more doubt buddy

if i run this
var5=`awk '$1FS$2 =="Dec 2" {i=NR} END {print i}' input file` then it working fine

but if i run in this way

var="Dec 3"
var5=`awk '$1FS$2 =="$var"...
4,050
Posted By Himanshu_soni
Hi pravin Thanx a lot buddy can you...
Hi pravin

Thanx a lot buddy

can you plz explain this portion of command

$1FS$2 =="Nov 3"

it is working :)
4,050
Posted By Himanshu_soni
Hi guys there is problem again ...
Hi guys there is problem again

Max_LIneNo=`grep -wn "^Dec 3" purge_exp1.txt | cut -f1 -d: | tail -1`

then it is not give any output
-------------------------------
Max_LIneNo=`grep -wn...
4,050
Posted By Himanshu_soni
hay guys thanx a lot all script run properly ...
hay guys thanx a lot
all script run properly
@ yinyuemi - why you use -wn ? if we use -n it also working.


one more question
: which is fast awk or grep?
4,050
Posted By Himanshu_soni
fetch last line no form file which is match with specific pattern by grep command
Hi

i have a file which have a pattern like this
Nov 10 session closed
Nov 10 Nov 9 08:14:27 EST5EDT 2010 on tty .
Nov 10 Oct 19 02:14:21 EST5EDT 2010 on pts/tk .
Nov 10 afrtetryytr
Nov...
8,648
Posted By Himanshu_soni
Hi Frds thanx for your Rply grt ...
Hi Frds

thanx for your Rply

grt thanx to Perderabo for his datecalc function

my next question to Perderabo

can you plz explain me date2jd and jd2date,lastday Function.

waiting...
8,648
Posted By Himanshu_soni
How to Get 60 days Old date from current date in KSH script
Hi i am writing a cron job.
so for it i need the 60 days old date form current date in variable.

Like today date is 27 jan 2011 then output value will be stote in variable in formet Nov 27.
i...
Showing results 1 to 17 of 17

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