Friends,
I have a file with contents like:
interface Serial0/4/0/0/1/1/1/1:0
encapsulation mfr
multilink
group 101
interface Serial0/4/0/0/1/1/1/2:0
encapsulation ppp
multilink
group 101
I just have to repace mfr with ppp and ppp with mfr in a single shot.
I tried using... (4 Replies)
Hi All,
Iam new to unix, I need to find string and replace it in the file name. Like
text_123_0.txt,text_123_1.txt,text_123_2.txt. I need to search 123 and replace it with 234 . Is there any unix command to replace them in single command since i have 5 directories. So i need to go each and every... (0 Replies)
Hi all,
I did not use UNIX for a long time, now i need to make a flat file with extra field, can you help me with the code ?
1. I create a last line of each log from each system and make it in a flat text file (seperate by a pipe |)
mv current.log old
tail -1 sanfrancisco.log > current.log... (5 Replies)
Hello everyone,
ive been trying to replace a string "kw01" in an xml file with the contents of a txt file having multiple lines. im a unix newbie and all the sed combinations i tried resulted to being garbled. Below is the contents of the txt file:
RAISEDATTIME
--------------------... (13 Replies)
I have a .txt contains a lot of lines.
Now I want to write a shell script to find out all the lines which contain the strings I want, and print these lines.
For example:
A.txt
when you post any code
you can easily do this
highlighting your code and then click
you should do a Google... (6 Replies)
Hi i am having XML file with many number of lines,I need to replace between two strings with .txt file using awk.
For ex
<PersonInfoShipTo ------------------------------ />
My requirement is to replace the content between
<PersonInfoShipTo ------------------------------ />
help me.
Thanks... (9 Replies)
Hi,
following Perl code i used for finding multiple strings and replace with single string.
code:
#!/usr/bin/perl
my @files = <*.txt>;
foreach $fileName (@files) {
print "$fileName\n";
my $searchStr = ',rdata\)' | ',,rdata\)' | ', ,rdata\)';
my $replaceStr =... (2 Replies)
so...
Lets assume I have a text file.
The text file contains multiple "#" symbols.
I want to replace all thos "#"s with a STRING using DOS/Batch
I want to add a certain TEXT to the end of each line.
How can I do this WITHOUT aid of sed, grep or anything linux related ? (1 Reply)
I am looking for a sed in which I can recognize all of the text in between two indicators and then replace it with a place holder.
For instance, the 1st indicator is a list of words "no|noone|havent" and the 2nd indicator is a list of punctuation ".|,|!".From a sentence such as
"noone... (3 Replies)
Hi Everyone,
I want to find this 2 strings in a single line a file and replace the second string.
this is the line i need to find
<param name="user" value="CORE_BI"/>
find user and CORE_BI and replace only CORE_BI with admin
so finally the line should look like this.
<param... (5 Replies)
Discussion started by: shajay12
5 Replies
LEARN ABOUT OSF1
news
news(1) General Commands Manual news(1)NAME
news - Writes system news items to standard output
SYNOPSIS
news [-a|-n|-s] | [item...]
The news command keeps you informed of news concerning the system.
OPTIONS
Displays all news items, regardless of the currency time. The currency time does not change. Reports the names of current news items
without displaying their contents. The currency time does not change. Reports the number of current news items without displaying their
names or contents. The currency time does not change.
DESCRIPTION
Each news item is contained in a separate file in the /usr/news directory. Anyone having read/write permission to this directory can cre-
ate a news file.
If you run the news command without any options, it displays the current files in /usr/news, beginning with the most recent. You can also
specify the items you want displayed.
Each file is preceded by an appropriate header. To avoid reporting old news, news stores a currency time. The news command considers your
currency time to be the modification time of the file named $HOME/.news_time. Each time you read the news, the modification time of this
file changes to that of the reading. Only news item files posted after this time are considered current.
Pressing the Interrupt key sequence during the display of a news item stops the display of that item and starts the next. Pressing the
Interrupt key sequence again ends news.
Most users run news each time they log in by including the following line in their $HOME/.profile file or in the system's /etc/profile:
news -n
EXAMPLES
To display the items that were posted since you last read the news, enter: news To display all the news items, enter: news -a | pg
This displays all the news items a page at a time, regardless of whether you have read them yet. To list the names of the news
items that you have not read yet, enter: news -n
Each name is a file in the /usr/news directory. To display specific news items, enter: news newusers services
This displays news about newusers and services, which are names listed by news -n. To display the number of news items that you
have not read yet, enter: news -s To post news for everyone to read, enter: cp schedule /usr/news
This copies the file schedule into the system news directory ( /usr/news) to create the file /usr/news/schedule. To do this, you
must have write permission for /usr/news.
FILES
System profile. News files. Indicates the last time news was read.
SEE ALSO
Commands: pg(1)news(1)