Search Results

Search: Posts Made By: guptan
19,501
Posted By guptan
Hi, I am able to acheive it by using the...
Hi,

I am able to acheive it by using the following command

( cat note.txt; uuencode $REPORTFILE $PCFILE ) | mailx -s "hi" xyz@hotmail.com

It is working. Thanks for all your help.
...
19,501
Posted By guptan
Thanks for the reply, I will try with that. ...
Thanks for the reply, I will try with that.

Regards
Narayana Gupta
19,501
Posted By guptan
When I use this command unix2dos -ascii...
When I use this command

unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s "hi" xyz@hotmail.com


it is working fine, it is sending the attachment but no message in the message body. I...
19,501
Posted By guptan
The input for uuencode is 'unix2dos -ascii...
The input for uuencode is 'unix2dos -ascii $REPORTFILE '
and the output is $PCFILE which is $REPORTFILE.xls
19,501
Posted By guptan
sending mails with attachment and also some text in mail body
Hi,

Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together.

When I am using the following syntax it is not sending the...
15,644
Posted By guptan
Thanks Ranj, It worked. Regards Narayana...
Thanks Ranj, It worked.

Regards
Narayana Gupta
15,644
Posted By guptan
Duplicate lines in the file
Hi,

I have a file with duplicate lines in it. I want to keep only the duplicate lines and delete the non duplicates. Can some one please help me?

Regards
Narayana Gupta
5,105
Posted By guptan
Hi, Thanks for the reply, the following...
Hi,

Thanks for the reply, the following command has worked.

ng_dt=`date +%Y%m%d`
awk -F'|' '{if ($5 < '$ng_dt') print $3 " " $5}' ...
5,105
Posted By guptan
Hi Perderabo Thanks for the reply. I...
Hi Perderabo

Thanks for the reply. I searched in the FAQ section but couldn't find the solution any where. Can you please guide me or post me the solution.

Regards
Narayana Gupta
5,105
Posted By guptan
What is wrong with the following statements, why...
What is wrong with the following statements, why is it not working. Can someone please help me.

ng_dt=`date +%Y%m%d`
awk -F'|' '{ if ($5 <...
5,105
Posted By guptan
Comparing two dates
Hi,

Can some one guide me how to compare two dates in unix.

TIA
Gupta
6,162
Posted By guptan
I am not sure my understanding of your...
I am not sure my understanding of your requirement is correct. If you simply wants to delete the files that are found then just use rm command. I still not sure whether it solves your requirement or...
18,931
Posted By guptan
Comparing two files
Hi,

I have a requirement to compare two files and delete the duplicates from the master file.

For eg. two files file1 and file2. Compare each row of file1 with each row file2 and delete the row...
2,084
Posted By guptan
I am getting the syntax error not the execution...
I am getting the syntax error not the execution error.
2,084
Posted By guptan
What am I doing wrong
When I execute following shell script I am getting the following error

syntax error at line 50 : `<<' unmatched

What am I doing wrong :confused:

Script begins here
----------------
...
8,396
Posted By guptan
Connecting to Oracle through unix shell scripts
Hi,

Can some one help me in connecting to oracle through unix shell scripts with examples.

Regards
Narayana Gupta
13,512
Posted By guptan
vino thanks for that. I am able to get it as...
vino thanks for that.

I am able to get it as

sed -n '5,/^81/p' <filename| sed '$d'
13,512
Posted By guptan
Thanks vino, I tried this it is working but a...
Thanks vino, I tried this it is working but a small thing, I want till 81 that means just 4 lines not 5 lines
13,512
Posted By guptan
Reading specific part of file
I have a requirement to go to particular line in the file and from there read the contents till it meets a particular criteria. For eg if the contents of the file is like

81 abcd...
Showing results 1 to 19 of 19

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