Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

news(1) [hpux man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Variable assignment for file names.

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)
Discussion started by: jagannatha
2 Replies

2. UNIX for Dummies Questions & Answers

last 5 files

Hi, Is there a way that we can get the last files (ex, recent 5 files) that came into a directory. Thanks. (8 Replies)
Discussion started by: nguda
8 Replies

3. News, Links, Events and Announcements

Open Group suing Apple over "Unix"

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)
Discussion started by: auswipe
3 Replies

4. News, Links, Events and Announcements

New Tool Searches and Replaces SCO Code

See this article: http://story.news.yahoo.com/news?tmpl=story&cid=74&ncid=738&e=9&u=/cmp/20030809/tc_cmp/13000487 (3 Replies)
Discussion started by: Neo
3 Replies

5. News, Links, Events and Announcements

Microsoft Is Using Linux To Protect Its Own Web Site

Here is a great news story: http://story.news.yahoo.com/news?tmpl=story&cid=74&e=9&u=/cmp/13100775 (3 Replies)
Discussion started by: Neo
3 Replies

6. Shell Programming and Scripting

Comparing items in 2 files

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)
Discussion started by: ReV
12 Replies

7. Shell Programming and Scripting

Finding files older than the current date and time and renaming and moving

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)
Discussion started by: ragavhere
7 Replies

8. Shell Programming and Scripting

Compare 2 files

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)
Discussion started by: PrasannaKS
5 Replies

9. Shell Programming and Scripting

finding missing items in file

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)
Discussion started by: discostu
8 Replies

10. Programming

help with printing file names in current directory for C

How do I print all the file names in current directory in C? (6 Replies)
Discussion started by: omega666
6 Replies

11. Shell Programming and Scripting

Page Break in a file for printing

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)
Discussion started by: koti_rama
5 Replies

12. Red Hat

Two news user accounts in RHEL!

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)
Discussion started by: parth_buch
5 Replies

13. UNIX for Dummies Questions & Answers

[Solved] Delete files with condition

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)
Discussion started by: awadeid
5 Replies

14. Shell Programming and Scripting

Korn Shell manipulating the string into dynamic currency number

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)
Discussion started by: suren.bills
15 Replies

15. Shell Programming and Scripting

Grep a particular string from column eliminating characters at the end.

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)
Discussion started by: nms
4 Replies