Search Results

Search: Posts Made By: Vinaykumar1
2,667
Posted By Vinaykumar1
The uunecode did not work out fine. The encoded...
The uunecode did not work out fine. The encoded text is coming as part of the mailer.

The code posted is to send mail with both body and attachment in html format..

Please provide your inputs...
2,667
Posted By Vinaykumar1
Issue with sendmail
Hi Team,

I have a script written to sendmail along with attachment in html format.
The code is

export MAILFROM="abc@abc.com"
export MAILTO="abc@abc.com"
export CONTENT="./GRP_SPI_ERR.html"...
1,432
Posted By Vinaykumar1
Environment variable related
Hi All,

I am writing a script that accesses the Oracle table wherein I have the Oracle statement saved.
The statement is something like this:
select col1,col2 from table_1 where...
7,320
Posted By Vinaykumar1
Hi era, I shall look into that and get back to...
Hi era,
I shall look into that and get back to you.

Thanks and Regards,
Vinay
7,320
Posted By Vinaykumar1
Hi Franklin, Era Shiva, Unix gurus, I...
Hi Franklin, Era Shiva, Unix gurus,

I finally got the answer. The script you suggested works. It goes like this:
/usr/xpg4/bin/awk -F '|' '$1 == "AAA" { print >"/export/home/vinay/AAA.dat";} $1...
7,320
Posted By Vinaykumar1
hi Franklin, awk -v...
hi Franklin,

awk -v path="/export/home/vinay/" -F "|" '$1 == "AAA" {print $0 > path $1}' number.dat

gives an error:
awk: syntax error near line 1
awk: bailing out near line 1

Please help...
7,320
Posted By Vinaykumar1
> uname -a SunOS e2dsavcshrdev01 5.8...
> uname -a
SunOS e2dsavcshrdev01 5.8 Generic_117350-52 sun4u sparc SUNW,Sun-Fire-880

SunOS release 5
How do I find sed and awk versions
7,320
Posted By Vinaykumar1
hi era, shiva,unix gurus, I tried the awk...
hi era, shiva,unix gurus,
I tried the awk present in comment #17.
awk -F '|' '$1 == "AAA" { print >"/path/to/AAA.dat"; next } $1 == "BBB" { print > "/path/to/BBB.dat"; next }' numbers.dat
Its...
7,320
Posted By Vinaykumar1
Hello Shiva, Its giving an error : awk:...
Hello Shiva,

Its giving an error :
awk: syntax error near line 1
awk: bailing out near line 1

Also as you have said,
awk '$1=="AAA" print { $0 ;}' Number.dat > AAA.dat

awk '$1=="BBB"...
7,320
Posted By Vinaykumar1
Hello era / unix gurus, I tried the above...
Hello era / unix gurus,

I tried the above script but its giving me
sed: command garbled: /^AAA \|/w/export/home/cmohanku/vinay/AAA1.dat

"Also does the sed -e '/^AAA/w AAA.dat' -e '/^BBB/w...
7,320
Posted By Vinaykumar1
Hi era, sed -e '/^AAA/w AAA.dat' -e '/^BBB/w...
Hi era,
sed -e '/^AAA/w AAA.dat' -e '/^BBB/w BBB.dat' number.dat works..
Thanks a lot.
Can I specify the path where it should be stored:
sed -e '/^AAA/w /export/home/vinay/AAA1.dat' -e...
7,320
Posted By Vinaykumar1
Hello era, The script u had sent did not...
Hello era,

The script u had sent did not work.
Its giving an error
sed: command garbled: /^AAA/wAAA.dat/^BBB/wBBB.dat

That is why I tried
sed -e "x;/^AAA/b" -e "/^BBB/b" -e d number.dat
I...
7,320
Posted By Vinaykumar1
Hello era / unix gurus, I tried the...
Hello era / unix gurus,

I tried the following:
sed -e "x;/^AAA/b" -e "/^BBB/b" -e d number.dat

It works. But I need to divert it to different files .How do I do it. Kindly assist if possible...
7,320
Posted By Vinaykumar1
hello era /Unix gurus, If you don't mind, can...
hello era /Unix gurus,
If you don't mind, can you assist in which fashion I can make use of sed into my script.

Thanks and Regards,
Vinay
7,320
Posted By Vinaykumar1
Hello Franklin / Unix gurus, My script is as...
Hello Franklin / Unix gurus,

My script is as follows:


#!/bin/ksh
sys=/export/home/vinay/Number.data
mod1=AAA
mod2=BBB

grep -h 'AAA' $sys > /export/home/vinay/AAA_$mod1.data
grep -h...
7,320
Posted By Vinaykumar1
Sorting data and place them in different folders
Hello Unix gurus,
I am new to Unix. I am working on some dummy project which involves unix scripting.

I have a query :

There is a file Number.dat which is of form say

AAA|123|4563|animal...
Showing results 1 to 16 of 16

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