Search Results

Search: Posts Made By: skcvasanth
3,837
Posted By skcvasanth
Any other option without using uuencode/uudecode...
Any other option without using uuencode/uudecode with all these parameters ?

Can you please suggest ?

---------- Post updated 06-01-11 at 01:01 AM ---------- Previous update was 05-31-11 at...
3,837
Posted By skcvasanth
EMAIL_MSG="Attachment contains the report" I...
EMAIL_MSG="Attachment contains the report"

I had harcoded the EMAIL_MSG as above.
3,837
Posted By skcvasanth
Thanks for the reply! I tried using...
Thanks for the reply!



I tried using the above command and it gives the same result.

Still I'm getting them in one row.

any other suggestions please ?


Thank you!
3,837
Posted By skcvasanth
uuencode sends output all in 1 line
Hi, I need to send a email as a txt file and i used the commands,


Code:
(echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID"

I received email...
2,781
Posted By skcvasanth
Problem in Sending mail as an attachment
Hi, I need to send a email as a txt file and i used the commands,

(echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID"

I received email with a...
15,165
Posted By skcvasanth
SCP command end with Host Key not found in database
Hi,
I'm trying to copy a file from one server to remote server using SCP command. Below is the command i tried and got host key not found in database errror.

scp sendfile.txt...
3,780
Posted By skcvasanth
HI Scrutinizer, I'm little new to...
HI Scrutinizer,



I'm little new to unix. It would be great if you can explain the above in detail ?

Thanks,
Vasanth.
3,780
Posted By skcvasanth
Hi Scrutinzer, Great! Your code works as...
Hi Scrutinzer,

Great!
Your code works as per my requirement. Thanks a lot for everyone!

Vasanth.
3,780
Posted By skcvasanth
Hi Rohon. Thanks for you reply! Below is my...
Hi Rohon. Thanks for you reply!
Below is my sample code,


read a
grep -w " $a " file


Below is my file,

cat file
aaa abbb ccc
xxx aaa ccc.c
bbb aaa ccc_list

if my search is...
3,780
Posted By skcvasanth
Grep word search
Hi,

I have grep command to search for a word "SUB" as below,


grep -w "SUB" file1


But this is taking a word like SUB.XXY or SUB.BBB etc which is not required.. I need only if it is a...
19,557
Posted By skcvasanth
Rohon, That works great! Thanks a lot :) ...
Rohon,

That works great! Thanks a lot :)

Methyl,

I got few so i redirected them. Anyways now i was able to get the output as expected.

Thanks a lot guys for your reply!
19,557
Posted By skcvasanth
Thanks of your reply guys! But, here I...
Thanks of your reply guys!

But, here I don't know the exact path. So i'm finding under /abcd/efgh instead of checking with if condition. It can be present in any of its sub directories. So now i...
19,557
Posted By skcvasanth
Find: return code check
Hi,

I've a find command like,


find /abcd/efgh -name "xxxx" 2> /dev/null > file1


what would be the condition to check if this returns none(means if the file "xxxx" is not present)...
1,282
Posted By skcvasanth
Thanks Rohon.:)
Thanks Rohon.:)
1,282
Posted By skcvasanth
Hi Rohon, My question is Will...
Hi Rohon,

My question is



Will the above code will search in both the directories given where 1st directory is "./AAA*/abcd/efgh" and the second is "./??/xxxx "

Thanks in advance!...
1,282
Posted By skcvasanth
Find command
Hi,

I've a code like below,


find ./AAA*/abcd/efgh ./??/xxxx -name "*.txt" 2>/dev/null


I know this will do find for the given target.

But I don't know the second one in the above...
2,078
Posted By skcvasanth
Hi Scrutinizer, I little new to UNIX.. Could...
Hi Scrutinizer,

I little new to UNIX.. Could you please explain the below awk command posted by you in detail ???


Thanks in advance!
Vasanth.
8,294
Posted By skcvasanth
Hi Radoulov, Exactly what you guessed below is...
Hi Radoulov,
Exactly what you guessed below is right!
Thanks for your help Radoulov!




I used 2 separate find command for source and copybook :/home/apps/**/source where it always searches...
23,997
Posted By skcvasanth
Thank You All for your guidance which was most...
Thank You All for your guidance which was most helpful for me.
-Vasanth.
23,997
Posted By skcvasanth
Hi rdcwayx, Thanks for you reply! It...
Hi rdcwayx,

Thanks for you reply!
It works in both the way. But the 2nd one suits my situation well becuase somtime i can have only one .(dot) in my input or 2 or 3 .(dots) somtime. I'm little...
23,997
Posted By skcvasanth
CUT command delimiter in reverse
Hi,
I've a situation where,


a=xxx.yyy.zzz.txt
EXTN=`echo $a | cut -d . -f2`


Using the above code it delimites and will return "yyy.zzz.txt" to EXTN. But i need to get only the...
1,227
Posted By skcvasanth
Hey.. Sorry! Even i didn't try it earlier....
Hey.. Sorry!

Even i didn't try it earlier. It works...

Thanks Neo! In future, I will always try myself before posting.

-Vasanth.
1,227
Posted By skcvasanth
Find command possibilities
Using find command is the below possible ?

find /home/abcd/****/efgh

where the "****" can be any name/character.

Thanks,
Vasanth.
8,294
Posted By skcvasanth
Hi, It work fine.. But it's not excluding...
Hi,

It work fine.. But it's not excluding when i use the entire path for example(/home/cccc) and it works when i give only the directory as cccc. I just wanted to exclude the entire directory path...
1,966
Posted By skcvasanth
At the same time answer should be used as $answer...
At the same time answer should be used as $answer as below,

if [ $answer='y' ]; then

Hope this should work now!
Vasanth.
Showing results 1 to 25 of 29

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