I tried using the variable instead of the text itself like:
This does not change anything in the input file. Also as part of the output I got the whole input file in the terminal which is kind of breaks everything that I am trying to achieve. I need to mask the logon details with NO one seeing any messages of the same!!!
Also when I give the text itself, it does not update the file rather it shows the updated file contents in the terminal.
Please help!
Last edited by bharath.gct; 05-13-2010 at 10:29 PM..
Hi all...
I not a expert unix script programmer, Kindly adjust.
My requirement is that, i have a file which contains the about 10 lines -
say
1
2
3
...
8 war of the worlds: => text in this line
9 9000,80,78,77,334,445 => this line contains some numbers separted by commas
10
... (10 Replies)
Hello All,
Request you to let me know how to do the below urgently..
Requirement
File A Contains:
for i in file A
DEV1
DEV5
STG1
STG5
File B Contains:
for j in file B
DEV1
DEV5
STG1
STG5 (3 Replies)
hello,
I have got the following problem that I am hoping someone can help with please.
1. I have got the following text file (below) , the columns data are
'Test Day', 'Board', 'Betting Number'.
TEXT FILE
============================================
1 3 02-01-27-28-29-30
0 1... (1 Reply)
Hello,
I have a problem which is giving me headache for days, can some please help. Please see code and text fiel below. Please see text in red for the problem I am facing
# Program gets an input x from user
while read line ; do
echo... (4 Replies)
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Hi All,
I am having 100 lines a text file say a.txt. I want read the 'nth' line from that file inside a script. Kindly tell us how to that. (2 Replies)
I have a text file like this:
subject1:LecturerA:10
subject2:LecturerA:40
if I was given string in column 1 and 2 (which are subject 1 and LecturerA) , i need to update 3rd field of that line containing that given string , which is, number 10 need to be updated to 100 ,for example.
The... (6 Replies)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
I am trying to use awk to match the NM_ in file with $1 of id which is tab-delimited. The NM_ will always be in the line of file that starts with > and be after the second _. When there is a match between each NM_ and id, then the value of $2 in id is substituted or used to update the NM_. Each NM_... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT HPUX
ul
ul(1) General Commands Manual ul(1)NAME
ul - do underlining
SYNOPSIS
terminal] [name ...]
DESCRIPTION
reads the named files (or standard input if none are given) and translates occurrences of underscores to the sequence which indicates
underlining for the terminal in use, as specified by the environment variable The option overrides the terminal type specified in the envi-
ronment. The terminfo(4) file corresponding to is read to determine the appropriate sequences for underlining. If the terminal is inca-
pable of underlining, but is capable of a standout mode, the standout mode is used instead. If the terminal can overstrike, or handles
underlining automatically, degenerates to If the terminal cannot underline, underlining is ignored.
The option causes to indicate underlining onto by a separate line containing appropriate dashes this is useful when you want to look at the
underlining present in an output stream on a CRT terminal.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported with the exception that multi-byte-character file names are not supported.
WARNINGS
usually outputs a series of backspaces and underlines intermixed with the text to indicate underlining. No attempt is made to optimize the
backward motion.
AUTHOR
was developed by the University of California, Berkeley.
FILES
terminal capability files
SEE ALSO col(1), man(1), nroff(1).
ul(1)