news(1) General Commands Manual news(1)NAME
news - print news items
SYNOPSIS
[items]
DESCRIPTION
is used to keep the user informed of current events. By convention, these events are described by files in the directory
When invoked without arguments, prints the contents of all current files in most recent first, with each preceded by an appropriate header.
stores the ``currency'' time as the modification date of a file named in the user's home directory (the identity of this directory is
determined by the environment variable only files more recent than this currency time are considered ``current.''
Options
recognizes the following options:
Print all items, regardless of currency.
The stored time is not changed.
Report the names of the current items without printing their contents,
and without changing the stored time.
Report how many current items exist without printing
their names or contents, and without changing the stored time. It is useful to include such an invocation of news in
one's file, or in the system's
All other arguments are assumed to be specific news items that are to be printed.
If an interrupt is typed during the printing of a news item, printing stops and the next item is started. Another interrupt within one
second of the first causes the program to terminate.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
FILES SEE ALSO mail(1), profile(4), environ(5).
STANDARDS CONFORMANCE news(1)
Check Out this Related Man Page
news(1) User Commands news(1)NAME
news - print news items
SYNOPSIS
news [-a] [-n] [-s] [items]
DESCRIPTION
news is used to keep the user informed of current events. By convention, these events are described by files in the directory /var/news.
When invoked without arguments, news prints the contents of all current files in /var/news, most recent first, with each preceded by an
appropriate header. news stores the ``currency'' time as the modification date of a file named .news_time in the user's home directory (the
identity of this directory is determined by the environment variable $HOME ); only files more recent than this currency time are considered
``current.''
OPTIONS -a Print all items, regardless of currency. In this case, the stored time is not changed.
-n Report the names of the current items without printing their contents, and without changing the stored time.
-s report how many current items exist, without printing their names or contents, and without changing the stored time. It is useful
to include such an invocation of news in one's .profile file, or in the system's /etc/profile.
All other arguments are assumed to be specific news items that are to be printed.
If a delete is typed during the printing of a news item, printing stops and the next item is started. Another delete within one second of
the first causes the program to terminate.
ENVIRONMENT VARIABLES
See environ(5) for a description of the LC_CTYPE environment variable that affects the execution of news.
FILES
/etc/profile
/var/news/*
$HOME/.news_time
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWesu |
|CSI |Enabled |
+-----------------------------+-----------------------------+
SEE ALSO profile(4), attributes(5), environ(5)SunOS 5.10 20 Dec 1996 news(1)
I am trying to process error files in selected directories. I can count the files that are there and export the contents to a file for either emailing or printing. The next step is to move the files to a processed directory with the name changed to .fixed as the last extension.
for file in... (2 Replies)
Our Admin, Neo, has some experience with the subject of this news item:
http://news.com.com/2100-1016-1015814.html
It appears that The Open Group is suing Apple for using the term Unix without licensing from The Open Group. (3 Replies)
Hi,
I have 2 files with contents in them and I need to compare each item in each file.
File1:
item4
item5
File2:
item2
item3
item5
item6
The items names can be of different lengths.
If the items in the File1 are not in File2,
delete the missing item in File1.
The resulting... (12 Replies)
Hi,
I have a very urgent requirement here. I have to find all files in the specified directory but not in the sub directories(The directory name is stored in a variable) which are older than the current date as well as current time and rename it as filename_yyyymmddhhmmss.ext and move it into a... (7 Replies)
HI
I have a list of items in 2 files. Some items are present in both the files in any order. Say for example item name is 'apple', it may be present in line 2 of file 1 and line 10 of file 2.
I want to see the missing items only. In simple terms, Items present in file1 if not in file2 then... (5 Replies)
I have a need to compare 2 files, then print results to file. Need to find items from file2 that are not found in file 1. thanks in advance!
example:
file 1:
abcde=12
fffff=6
bbbb=35
file2:
abcde=12
fffff=6
bbbb=35
ccccc=10
kkkkk=45 (8 Replies)
Hi,
We have 1lac records in source file and unix script will genarate around 1000 files.
From target location the files are taking for printing on physical papers.
the page size limitation : 256 Lines
Can you please tell me how to insert the page break in a flat file for printer. (5 Replies)
I have a server Red Hat Enterprise Linux ES release 4 (Nahant Update 4) on which I have two news accounts!!
news:x:9:13:news:/etc/news:
news:x:9:13:news:/var/spool/news:
I don't know who added this extra account but it exists; none of this directories actually exist because rpm's are not... (5 Replies)
I have a directory containing thousands of items “video files”, these items were generated by an application, which generates two items with the same name but with different extensions “.avi and .mp4”. There was a tool in my application to remove one item @ a time. Later I found this tool removes... (5 Replies)
Conversion of string into currency value..
ex1:
number_of_positions=2
input_string=345987
Output= 345,987.00
ex2:
number_of_positions=4
input_string=1345987
Output= 1,345,987.0000
Please respond as soon as possible
edit by bakunin: we will gladly respond as soon as... (15 Replies)
Hi,
So basically I have this file containing query output in seperated columns.
In particular column I have the below strings:
news
news-prio
I am trying to grep the string news without listing news-prio aswell.
I tried
grep "$MSG_TYPE" ,
grep -w "$MSG_TYPE" ,
grep... (4 Replies)