Sponsored Content
Full Discussion: echo multiple lines
Top Forums UNIX for Dummies Questions & Answers echo multiple lines Post 302407057 by methyl on Wednesday 24th of March 2010 12:18:26 PM
Old 03-24-2010
Or with "ksh":

Code:
(
echo "First Line"
echo "Second Line"
) | mail -s "Lines" abc@gmail.com


Tytalus solution is more portable.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

combine 2 lines (command & echo)

does anyone know how to combine 2 lines? this is what im playing around with. (filename: online, user name: prml0001, real name: primal) #!/bin/sh who | grep $1 > /dev/null if then grep $1 /etc/passwd | cut -f 5, -d : echo is logged on exit 0 else grep $1... (13 Replies)
Discussion started by: primal
13 Replies

2. Shell Programming and Scripting

Nested Loop to Echo Multiple Arrays

I have three arrays which hold three elements each. I have a fourth array which contains the names of those three arrays. I'm having difficulty creating a nested loop that can loop through each array and echo their values. script #!/bin/ksh # array of locations (usa, london, australia)... (1 Reply)
Discussion started by: yongho
1 Replies

3. Shell Programming and Scripting

echo a block of lines

echo "line 1" echo "line 2" echo "..." echo "..." echo "line n-1" echo "line n" How can I echo n number of lines with one 'echo' command? (3 Replies)
Discussion started by: girisha
3 Replies

4. Shell Programming and Scripting

How to write multiple echo statements in unix?

How to write multiple echo statements in unix? echo "************************************************************************************************************"; echo This Script do the following functions echo 1. Point 1 echo 2. Point 2 echo 3. Point 3 echo... (2 Replies)
Discussion started by: Shrutiduggal
2 Replies

5. Shell Programming and Scripting

echo on several lines

Hi there, I managed to write a script that display its progress like this: ~# cat myscript echo -en ' Completed\015' for (( i=0; i<=100; i++ )) do echo -ne $i'%\015' # perform some actions sleep .01 done echo ~# myscript 100% Completed ~#I can't show it on this post, but... (2 Replies)
Discussion started by: chebarbudo
2 Replies

6. Shell Programming and Scripting

Echo - Sending mail to multiple addresses

Hi, If I want my script to send a mail to multiple recipients I can do the following: if then echo $err_string1 | mailx -s "UAT CPU ALERT" 1@email.com echo $err_string1 | mailx -s "UAT CPU ALERT" 2@email.com fi Can this also be done something like: ... (1 Reply)
Discussion started by: runnerpaul
1 Replies

7. Shell Programming and Scripting

echo multiple variable with calculation

$total=500 echo "scale=2; $val1*100/$total" | bc echo "scale=2; $val2*100*100/$total" | bc echo "scale=2; $val3*100/$total" | bc I want to make the above code to be accomplish in a single echo line. For instance output:21.3, 44.2, 51.6 How to achieve that, some one please help, i just... (5 Replies)
Discussion started by: alvin0618
5 Replies

8. Shell Programming and Scripting

multiple echo statements in if condition

Hi , I have a peculiar problem. i have an if block like this if ; then echo " todays date is " ${date} >> log_file echo " file count is " $ count >> log_file mv filename1 filename 2 else echo "no files available ">> log_file fi the echo statement "no files available " is not... (2 Replies)
Discussion started by: wizardofoz
2 Replies

9. Shell Programming and Scripting

Removing multiple lines from input file, if multiple lines match a pattern.

GM, I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed. I am assuming that sed, awk or even perl could do what I need. I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Discussion started by: jxfish2
7 Replies

10. Shell Programming and Scripting

Bash Script: Echo continuation across many lines

I am writing a bash script that automatically generates a macro program. I want to have an echo on multiple lines and getting an error /home/chaos/instru-correct.sh: line 309: command line is: command not found I am using echo "# The general synopsis of the $mfl" \ ... (2 Replies)
Discussion started by: kristinu
2 Replies
Chart::Clicker::Renderer::Line(3pm)			User Contributed Perl Documentation		       Chart::Clicker::Renderer::Line(3pm)

NAME
Chart::Clicker::Renderer::Line - Line renderer VERSION
version 2.83 SYNOPSIS
my $lr = Chart::Clicker::Renderer::Line->new( brush => Graphics::Primitive::Brush->new({ #... }) ); DESCRIPTION
Chart::Clicker::Renderer::Line renders a dataset as lines. ATTRIBUTES
additive If true, the lines are drawn "stacked", each key accumulates based on those drawn below it. brush Set/Get a brush to be used for the lines. shape Set a shape object to draw at each of the data points. Adding a shape results in: shape_brush Set/Get the brush to be used on the shapes at each point. If no shape_brush is provided, then the shapes will be filled. The brush allows you to draw a "halo" around each shape. This sometimes help to separate the points from the lines and make them more distinct. METHODS
draw_point Called for each point encountered on the line. AUTHOR
Cory G Watson <gphat@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Cold Hard Code, LLC. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-22 Chart::Clicker::Renderer::Line(3pm)
All times are GMT -4. The time now is 12:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy