I have an input file with contents in the following format:
ABCD XYZAB 1234
PQRSTUV STU SKIP
LMN OPRQM 8966
RSTUV OPM SKIP
TUV ZXU SKIP
I want to parse this file and output it to a new file such that, rows with their last column as "SKIP" do not appear in the final output file, as below:
ABCD XYZAB 1234
LMN OPRQM 8966
To process the above, I wro
Hi All,
I got stuck up with shell script where i use awk. The scenario which i am working on is as below.
more report2.txt
Quote:
col1
col2
col3
col4
.
.
coln
how to modify the AWK to print above out put for given n no of inputs using report2.txt file?
out put should be
Quote:
A.col1=B.col1 and
A.col2 = B.col2 and
A.col3 = B.col3.
..
..
A.coln= B.coln where
Hi All,
i have a CSV file like below,
col1 col2 col3 col4 col5 col6 col7
a1 a2 a3 a4 a5 a6 a7
b1 b2 b3 b4 b5 b6 b7
c1 c2 c3 c4 c5 c6 c7
d1 d2 d3 d4 d5 d6 d7
Col1,col2.. are the column names and a1,a2,b1,b2..
This is a mysql night mare that I cant seem to wrap my head around.
I have a file with this structure:
ma${token}jid-azimi-865131021
javad-ya${token}rip-865132012
and here is my program:
IFS="-"
token="12345678"
cat input.txt | while read col1 col2 col3; do
echo ${col1}
echo ${col2}
echo ${col3}
echo "********************************"
done
I want to insert ${token} while reading file.
Dear Team,
Thanks in Advance !
I want to send the output of simple SELECT query with 5-6 cols in a tabulated form with the use of HTML through mail in a SHELL Script.
What i had completed is -
1. Got connected to SQLPLUS -Done
2. Executed the query. -Done
3. Taken the output of the query in spoolfile. -Done
4. :confused: How to convert output of Spoolfile into HTML table.
Hi all,
I wrote a script to extract the body of an incoming mail but it is not working as expected.
Script:
#!/usr/bin/perl
use Mail::Internet;
my $mail = Mail::Internet->new( \*STDIN );
my $headers = $mail->head->header_hashref;
my $sender = $mail->get('From');
my @sender = @{${$headers}{'From'}};
my $from = $headers->{From}->[0];
my $body = [ @{$mail->body} ];
print $body
I am able to send mail without the user interaction through java mail
the problem is that as mail body it takes a string and i have no idea
how to send text of the body with style big size or color
please help me?
The general question is how to send mail without user interaction that can be set
style to the text of the body of the mail?
Edit:
I'm useing a code i found to send mail without user i