06-09-2005
The /etc/motd file you can download from my site is an example of adding colour to /etc/motd - /etc/motd is displayed immediately after you login and my example shows how to add colour to this message (if the connecting terminals support it).
Anyway, the purpose of my giving you the link to this wasn't so much for you to replace your existing motd, but so that you could open the file in vi and have a look at the escape sequences used to add colour/boldface to output.
Cheers
ZB
10 More Discussions You Might Find Interesting
1. Solaris
I have a network printer LaserJet 4050N on Sun Solaris Sun-Fire-408R.
When I lp text.lis, it printed out steps like indent lines.
When I unix2dos test.lis, it print out all right.
I tried to print a report from Banner Finance - FGRCTRL, and chose the the same printer with command line:
... (2 Replies)
Discussion started by: simt
2 Replies
2. Shell Programming and Scripting
i have textfiles that contain a series of lines that look like this:
string0 .................................................... column3a column4a
string1**384y0439 ..................................... column3b column4b... (2 Replies)
Discussion started by: Deanne
2 Replies
3. UNIX for Dummies Questions & Answers
Currently whenever i run date command output is shown like
Mon Apr 12 05:17:21 IST 2010
When its 17:17 Here.
How would i change it so that it should show.
Mon Apr 12 17:17:21 IST 2010 (8 Replies)
Discussion started by: pinga123
8 Replies
4. Solaris
How do I set up my solaris 10 machine to display in text mode instead of graphics mode, permanently? (1 Reply)
Discussion started by: jastanle84
1 Replies
5. Shell Programming and Scripting
input file test.csv has following structure.
SCHEM1.TAB1;COL1;DATATYPE;NOTNULL--
SCHEMA1.TAB1;COL2;DATATYPE;NOTNULL;WITH DEFAULT;--
....
SCHEMA1.TABn;COL1;DATATYPE;NOTNULL;WITH DEFAULT;
i started using awk but text is not tab seperated.its just ; seperated.
how to print
output... (4 Replies)
Discussion started by: rocking77
4 Replies
6. Shell Programming and Scripting
Hi all
I need you help to create script get the below output
Thanks in advance.
Ashan
name.txt
Wymouth_MRI_Lun79
PACS DR TEMP R drive
stat.txt
NO Normal
Normal
Out need
Wymouth_MRI_Lun79 NO Normal
PACS DR TEMP R drive Normal (1 Reply)
Discussion started by: ashanabey
1 Replies
7. Shell Programming and Scripting
Hi experts,
I need a help in extracting a set of patterns from the text file.
Below is my scenario.
Input file:
I need to extract the data between
My output should be as
Thanks,
Kalai (7 Replies)
Discussion started by: kalpeer
7 Replies
8. Shell Programming and Scripting
I'd like to format a text in unix before mailing it to users.
I want to change color and font of my plain text in unix.
Thanks.. (1 Reply)
Discussion started by: Sara_84
1 Replies
9. Shell Programming and Scripting
"Help Me" Need script for transferring bulk files from one format to text format in a unix server.
Please suggest (2 Replies)
Discussion started by: Kranthi Kumar
2 Replies
10. Shell Programming and Scripting
Hi,
I have been stuck in this requirement where my file contains the below format.
20150812170500846959990854-25383-8.0.0
"ABC Report" hp96880
"4952"
20150812170501846959990854-25383-8.0.0 End of run
20150812060132846959990854-20495-8.0.0
"XYZ Report" vg76452
"1006962188"... (6 Replies)
Discussion started by: Chinmaya Kabi
6 Replies
LEARN ABOUT LINUX
motd.tail
MOTD.TAIL(5) Debian Administrator's Manual MOTD.TAIL(5)
NAME
motd.tail - Template for building the system message of the day
DESCRIPTION
On Debian systems, the system message of the day is rebuilt at each startup, in order to display an accurate information. /etc/motd.tail is
the file to edit permanent changes to the message of the day.
OVERVIEW
The initiation script /etc/init.d/bootmisc.sh prepends a line containing information about the system to /etc/motd.tail and stores the
resulting file in /var/run/motd. /etc/motd is a symbolic link to /var/run/motd. This is done to prevent changes to /etc as the system can
not assume /etc to be writable.
Changes to /etc/motd effectively end up in a file under /var/run which will be regenerated upon reboot.
A symbolic link to a different file, such as /etc/motd.static disables this behaviour.
FILES
/etc/init.d/bootmisc.sh
The initiation script which builds /var/run/motd
/etc/motd
Symbolic link to the system message of the day at /var/run/motd
/etc/motd.tail
Template for building the system message of the day
/var/run/motd
System message of the day file rebuilt at each computer start
SEE ALSO
login(1), issue(5), motd(5).
Debian 2007-04-28 MOTD.TAIL(5)