03-04-2020
Hello teefa14,
On UNIX.com we encourage users to do add their efforts which they have put in order to solve their own problems, so kindly do add the same(in form of code in CODE TAGS) in your question and let us know then.
Thanks,
R. Singh
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone,
Having trouble with sed. I searched the board and found some stuff, but still unclear.
I have a file named "userfile" which stores the users info in this form: email:username:password:
I want the user to be able to change their password.
i tried with sed s/oldpass/newpass/g... (2 Replies)
Discussion started by: primal
2 Replies
2. Shell Programming and Scripting
Hi. Does anyone know how to use the sed command to change the special border characters on this .per file. I have to edit about 80 .per files. I need a sed script to change the below 3 and A characters.
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Test Islands, Office of Public Health -- WIC... (4 Replies)
Discussion started by: cstovall
4 Replies
3. UNIX for Dummies Questions & Answers
I have a text
"abc def ghi"
and I want to get it as
"def abc ghi"
I am using this
echo "abc def ghi" | sed 's/\(*\)\(*\)/\2\1/'
But I am not able to get the output, could anyone help me.
Thanks (9 Replies)
Discussion started by: venu_nbk
9 Replies
4. Shell Programming and Scripting
hello
I have this:
sed -e "s/install_location=....../g" -e "s/hostname=....../g" -e "s/server_name=....../y" input.txt
it will display on the screen what have changed. however I want to change file input.txt. Any idea other than doing redirection (>)
thx (2 Replies)
Discussion started by: melanie_pfefer
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a file whose structure is like this
7
7
1 2 3 4 5
1 3 4 8 6
1 4 5 6 0
2 6 8 3 8
2 5 7 8 0
5 7 9 4 1
3 8 0 2 2
3 5 6 8
basically first two row tell the number of rows and column but the data following them are not arranged in that format. now i want to create another... (1 Reply)
Discussion started by: g0600014
1 Replies
6. Shell Programming and Scripting
Hi everyone,
I've got a problem with converting C comments ( /* */ ) into C++ style ( // ) in some source file with sed. So far I've dealt with comments on one line, but I don't know how to convert when it is over multiple lines ...
So I already have something like this:
comments.sed
... (8 Replies)
Discussion started by: kolage
8 Replies
7. UNIX for Dummies Questions & Answers
I'm changing some html code on multiple web pages and I need to match particular phrases but keep some text within each phrase.
E.G. I need to change this line:
<DIV id="heading">Description:</DIV>
into
<span class="hlred">Description:</span><br />
The text "Description:" may... (2 Replies)
Discussion started by: hal8000
2 Replies
8. Shell Programming and Scripting
Can somebody help me out and provide me with a SED or AWK solution that converts TO_DATE CLAUSE -> TIMESTAMP
I need to keep the PARTION value (HISTORY_20110417) and DATE/TIME value (2011-04-18 00:00:00) the same for every line
PARTITION HISTORY_20110417 VALUES LESS THAN (TO_DATE('... (3 Replies)
Discussion started by: BeefStu
3 Replies
9. UNIX for Dummies Questions & Answers
I have a file containing numbers in a column like:
10.5
16.3
15.7
2.3
46.8
3.3
.
.
.
and I was wondering if there was a way to make it show up in an array form like:
10.5 2.3
16.3 46.8
15.7 3.3
Let's say I want to make a new column every 100 values. How can I do... (8 Replies)
Discussion started by: ShiGua
8 Replies
10. Shell Programming and Scripting
Hi !
I try to change a time-stamp hh:mm:ss allways to full ten-minutes.
example: 12:51:03 to 12:50:03
sed 's/::/:{0-5}0:/g' file.txt
but it will not work propperly, because the minute-decade will be replaced with the bracket-term {0-5}. Can someone please give me a hint?
Thanks in... (6 Replies)
Discussion started by: IMPe
6 Replies
tcl(1) General Commands Manual tcl(1)
NAME
tcl, tk, tcl-tk - Tool Command Language
DESCRIPTION
The tcl software is unsupported software that is provided as part of Tru64 UNIX. Compaq will fix problems in this unsupported software
only if they are specific to Tru64 UNIX. Compaq will not fix problems that are integral to the software itself or that occur when the com-
ponent is used on UNIX systems other than Tru64 UNIX. Compaq will not add functionality to this software.
Except for this reference page, other reference pages that Tru64 UNIX supplies for tcl are passed through without changes. The reference
pages distributed as part of this software are available in the directories /usr/share/doclib/annex/man/man[1-9]. You should use this
directory stem in the man command or add it to the MANPATH environment variable to make these files available to the man command.
Note
Compaq is not responsible for the content or quality of reference pages and other documents installed under the /usr/share/doclib/annex
directory and does not revise this material in response to customer problem reports. Reference pages installed under the
/usr/share/doclib/annex/man directory are not available from Compaq in book form; for example, they are not included in the reference manu-
als that you receive when you order the Tru64 UNIX documentation set as hard copy books.
Problems related to the content or quality of any documentation installed in the /usr/share/doclib/annex directory tree should be sent to
the developers of the documentation.
The format for changing the search path with the man command is: man -P /usr/share/doclib/annex/man [section] title...
If you are using the Bourne, Korn, or POSIX shells, use the following command sequence to modify your environment: MANPATH=$MAN-
PATH:/usr/share/doclib/annex/man export MANPATH
If you are using the C shell, enter the command: setenv MANPATH `echo $MANPATH`:/usr/share/doclib/annex/man
See the reference pages for the man(1) command for additional information on the search path used to locate files.
The reference pages associated with this product are not included in the whatis data base created by the catman command. Therefore, the
man -k and apropos commands will not locate reference pages included with this product.
SEE ALSO
Commands: apropos(1), catman(8), man(1)
tcl(1)