11-12-2006
ultra simple question
hey,
i want to use tr to remove all the lowercase characters from a string and replace them with a '.', i can't seem to get it to work, heres an example of what im trying, someone please correct me
: tr [a-z] .
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Friends,
I did following exercise
$ echo '' > test
$ od -b test
$ echo "">test
$ od -b test
$echo > test
$od -b test
Every time I got the following output
0000000 012
0000001
But 012 is octal value for new line character .
Even though there is no apperent new line character... (6 Replies)
Discussion started by: j1yant
6 Replies
2. UNIX for Advanced & Expert Users
I have a problem, why should root access only be provided from a login on the console, and why should a user be forced to use "su" command to perform system maintenance, rather than logging in? (2 Replies)
Discussion started by: pnxi
2 Replies
3. UNIX for Dummies Questions & Answers
Can anyone tell me if there is a way to remove the encryption from Data CDs by UNIX? Or does anyone know of a program that can remove the encryption?
I would much appreciate it!
Thanks,
-Peaves (2 Replies)
Discussion started by: Peaves
2 Replies
4. UNIX for Dummies Questions & Answers
Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies
5. UNIX for Dummies Questions & Answers
I'm new to unix commands and am wondering how you could create a page with html tags in it. echo "<b>Test</b>" > test.html doesn't work because of the tags. How would I do this. (4 Replies)
Discussion started by: roger19
4 Replies
6. Programming
Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
Discussion started by: Xeed
6 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
I've been learning UNIX for the past couple of days and I came across this exercise, I can't get my head around it, so I would be ever so grateful if I could receive some sort of help or direction with this.
Create a file with x amount of lines in it, the content of your choice. ... (3 Replies)
Discussion started by: aforball
3 Replies
8. Shell Programming and Scripting
i am doing ls -la
in the out put , first line is as
total 41621
What is this total? (2 Replies)
Discussion started by: Saurabh78
2 Replies
9. UNIX for Dummies Questions & Answers
I had a script in solaris wich i read data, for example:
Number 1: _
and the cursor use to be in '_' place because in the code of the script i write:
echo "Number 1:\c"
but i copy the script to a linux and the cursor 'jump' to the begining of the next line like:
Number 1:... (2 Replies)
Discussion started by: lestat_ecuador
2 Replies
10. Red Hat
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies
LEARN ABOUT PHP
mb_eregi_replace
MB_EREGI_REPLACE(3) 1 MB_EREGI_REPLACE(3)
mb_eregi_replace - Replace regular expression with multibyte support ignoring case
SYNOPSIS
string mb_eregi_replace (string $pattern, string $replace, string $string, [string $option = "msri"])
DESCRIPTION
Scans $string for matches to $pattern, then replaces the matched text with $replacement.
PARAMETERS
o $pattern
- The regular expression pattern. Multibyte characters may be used. The case will be ignored.
o $replace
- The replacement text.
o $string
- The searched string.
o $option
-$option has the same meaning as in mb_ereg_replace(3).
RETURN VALUES
The resultant string or FALSE on error.
NOTES
Note
The internal encoding or the character encoding specified by mb_regex_encoding(3) will be used as the character encoding for this
function.
Warning
Never use the e modifier when working on untrusted input. No automatic escaping will happen (as known from preg_replace(3)). Not
taking care of this will most likely create remote code execution vulnerabilities in your application.
SEE ALSO
mb_regex_encoding(3), mb_ereg_replace(3).
PHP Documentation Group MB_EREGI_REPLACE(3)