06-24-2009
Thanks all.
---------- Post updated at 08:36 PM ---------- Previous update was at 09:01 AM ----------
Last edited by mycoy; 06-25-2009 at 06:46 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a question. Take the following statement
awk -F\| '{print $21}' testfile | sed 's/\//\\/g' > newfile
This will grab the 21st column of a | delimited text file, replace the forward slashes "/" , with back slashes "\", and redirect the output newfile. Now, how do I get the output... (4 Replies)
Discussion started by: shimb0
4 Replies
2. Shell Programming and Scripting
Hi,
Below is a small piece of my Korn shell script - what i am trying to do is substitute all occurrences of the word given by the ${src} parameter with the word given by the ${dest} parameter in that particular textfile. But i get the errors below...
for i in `ls... (19 Replies)
Discussion started by: n8575
19 Replies
3. Shell Programming and Scripting
Hi,
$ echo 1 titi | sed -e "s/1/$(echo \&)/"
1 titi
but
$ echo 1 titi | sed -e "s/1/$(date \&)/"
date: invalid date `&'
titi
how can i do for handle '\&' with date ?
Thx (7 Replies)
Discussion started by: sncr24
7 Replies
4. Shell Programming and Scripting
How do I grab the first 10 characters of a line and append it to another empty file? (7 Replies)
Discussion started by: xgringo
7 Replies
5. Shell Programming and Scripting
Hi.
I'm going to learn scripting and i have the following topics on the list: sed, awk, shell scripting, perl.
My question is, whehter i should learn sed and awk? Aren't this tools outdated?
Although i see that GNU upgrade it's versions of these tools from time to time.
And, the next... (9 Replies)
Discussion started by: kukuruku
9 Replies
6. Shell Programming and Scripting
Hello everyone,
i wonder if someone could give me an advice regarding the following problem using sed.
Given ist a structure as shown below:
<aaa>text1<b>text2</b>text3<c>text4</c>text5</aaa>
Now I want to change the outer tag from "aaa" to "new" and replace all tags inside the outer tags... (4 Replies)
Discussion started by: Donaldinho
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Can anyone let me know the difference between awk and sed utilities in Unix?
Many thanks. (2 Replies)
Discussion started by: venkatesht
2 Replies
8. Shell Programming and Scripting
I am searching for a specific pattern and replacing with ( ) for matched pattern .I am not getting the expected result .....
Here is the file
cat test
cool
change
Frinto Francis
Frinto cool
change Attitude
/usr/bin
sed 's/*/( & )/' test
( cool )
( change )
( )Frinto Francis... (2 Replies)
Discussion started by: frintocf
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
I can't seem to understand what the sed and & do.. Why is the set of numbers appear twice ? how the command really work ?
echo "123 abc" | sed 's/*/& www &/'
Output:
123 www 123 abc (3 Replies)
Discussion started by: uniran
3 Replies
10. UNIX for Beginners Questions & Answers
I want to know the working of & here step by step using sed command. (1 Reply)
Discussion started by: Preeti07
1 Replies
LEARN ABOUT NETBSD
set_color
set_color(1) fish set_color(1)
NAME
set_color - set_color - set the terminal color
set_color - set the terminal color
Synopsis
set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
Description
Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple,
cyan, white and normal.
o -b, --background Set the background color
o -c, --print-colors Prints a list of all valid color names
o -h, --help Display help message and exit
o -o, --bold Set bold or extra bright mode
o -u, --underline Set underlined mode
o -v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey
font color, while set_color --bold white will result in a white font color.
Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator.
set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and
incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of
ncurses and recompile fish against it in order to fix this issue.
Version 1.23.1 Sun Jan 8 2012 set_color(1)