LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   echo out put (https://www.linuxquestions.org/questions/linux-newbie-8/echo-out-put-786653/)

kiran kumar nallana 02-03-2010 07:00 AM

echo out put
 
Hi

I am new to Shell scripting.I have one specific requirement.I want to redirect echo ouput to a file.

But I want to redirect with bigger font size than the default size of editor.

Could anyone help me on this?
Actually it is very urgent requirement....

Web31337 02-03-2010 07:08 AM

what do you mean "bigger font size" there are no font sizes in shell AFAIK.
what are you trying to do?

Aquarius_Girl 02-03-2010 07:10 AM

Quote:

Originally Posted by kiran kumar nallana
I am new to Shell scripting.I have one specific requirement.I want to redirect echo ouput to a file.

But I want to redirect with bigger font size than the default size of editor.

Look at the following thread :

https://www.linuxquestions.org/quest...t-size-695314/

Web31337 02-03-2010 07:16 AM

wew that's interesting I didn't know. thanks anishakaul!
works in xterm.

Aquarius_Girl 02-03-2010 07:21 AM

Quote:

Originally Posted by Web31337
wew that's interesting I didn't know. thanks anishakaul!
works in xterm.

You are welcome ! :)

I was myself not aware not such things, I searched Google and it brought me to that link.

kiran kumar nallana 02-03-2010 07:22 AM

i mean if i give like this
echo "Hello welcome " > sample.txt

it will re direct with default font size....

now i want to redirect with larger font size (customised) to the file....

catkin 02-03-2010 07:42 AM

Quote:

Originally Posted by kiran kumar nallana (Post 3850732)
i mean if i give like this
echo "Hello welcome " > sample.txt

it will re direct with default font size....

now i want to redirect with larger font size (customised) to the file....

Simple text files (as would be created by your example) do not have any font size. You can set the font size in some of the editors you might use to view such files, though.

MTK358 02-03-2010 07:45 AM

1. Plain ASCII text does NOT store fonts or font sizes, it is just a string of bytes (numbers), each number representing a certain character. The font size you see when viewing it is just the size set in your viewing program, it isn't stored in the file.

2. The terminal is NOT like a word processor: it is just a matrix of preset-sized, evenly-spaced cells, each of which can display a character.

If you want bigger fonts, change the settings of your terminal.

kiran kumar nallana 02-03-2010 07:59 AM

i want to use that echo statement in one of my shell script ... I want that particular text ( echo output) in required font size.


Thanks in Advance

MTK358 02-03-2010 08:14 AM

Quote:

Originally Posted by kiran kumar nallana (Post 3850761)
i want to use that echo statement in one of my shell script ... I want that particular text ( echo output) in required font size.


Thanks in Advance

?????????????????????????????????????????????????????

We all told you, it's IMPOSSIBLE.

On second thought, are you outputting to a plain text file or a word processor format?

MTK358 02-03-2010 07:54 PM

If you are still interested, it is possible to set the text color and even make it bold in the terminal by sending the terminal special codes. (but remember, the characters are represented as a fixed-cell-size grid, so it is physically impossible to change the size).

http://en.wikipedia.org/wiki/Ansi_escape_codes


All times are GMT -5. The time now is 06:45 AM.