05-17-2005
Quote:
Originally Posted by MizzGail
Now, I get the meta characters in the file when I go to view them.
Meta characters in unix are characters that the shell interprets in a special manner such as * or ?. It's incredible that the old platform was stripping these and odd that you wanted it to.
Oh well.... Just first send the file through "tr -d" to strip whatever characters you want to disappear. "tr -d" can remove any character and you will have total control over which characters get stripped.
10 More Discussions You Might Find Interesting
1. Programming
EXE=auto
SRCS=auto.cpp debug.cpp
OBJS=auto.o debug.o
CXX=g++
#HOSTFLAG=-DLinux
HOSTFLAG=-DSunOS
# Do not use compiler optimizer -O as this may break the program
# Use debug flag to enable the debug() function. If DEBUG is not
# defined than the function debug() is set to void(),... (1 Reply)
Discussion started by: laila63
1 Replies
2. UNIX for Dummies Questions & Answers
what do one mean when referring to 'platforms'? (examples of platforms as listed below)
alpha
amd64
i386
ia64
pc98
sparc64
Thanks! (1 Reply)
Discussion started by: ninelives1980
1 Replies
3. UNIX for Dummies Questions & Answers
Hi
In unix i want to zip the files in a directory excluding *.dmp, *.log, *.lst, *.out files in that directory. pls let me know what command to use.
$zip ........ ?
Thanks (1 Reply)
Discussion started by: dreams5617
1 Replies
4. Solaris
Does anyone know how Solaris organises different platforms? (1 Reply)
Discussion started by: gc40
1 Replies
5. UNIX for Dummies Questions & Answers
Hi.
Where can i learn, Which Unix platform specific for what? Properties? (1 Reply)
Discussion started by: Enrgy
1 Replies
6. UNIX and Linux Applications
Hi ;)
Which hardware platforms/machine types use the Operating System Unix?
A list of all would be appreaciated
Thx
Megadrink :cool: (2 Replies)
Discussion started by: Megadrink
2 Replies
7. Solaris
Hi,
Not sure where to post this, I'm sorry and need suggestion if this is wrong section.
we are running NFS Server on Solaris 10 and client box is HP-UX 11.11 (Can't apply latest patches/upgrades as in-house appln. doesn't allow)
I am able to mount NFS shares from this Solaris box onto all... (4 Replies)
Discussion started by: prvnrk
4 Replies
8. Shell Programming and Scripting
Can somebody refer me following multicheck to perform across most of unix platform like AIX, HP-UX, solaris, Linux.
CPU utilization above X%
Check IO above X%
Swap usage check above X%
Memory utilization above X% ... (3 Replies)
Discussion started by: sendtoshailesh
3 Replies
9. Shell Programming and Scripting
I want to have one .bash_profile works on multiple platform, ubuntu, debian, redhat, cygwin, osx. So how should I organize .bash_profile?
It can be multiple files in some subdir
Let me brief you:
what i want is a way to organize bash_profile across platforms so I can use one set of profiles... (2 Replies)
Discussion started by: John_Peter
2 Replies
10. UNIX for Beginners Questions & Answers
Good Morning,
I'd like to archive an old user's files in the home directory on Solaris 9
Will this work?
cd home
tar -zcvf jsmitharchive.tar.gz jsmith/
---------- Post updated at 09:37 AM ---------- Previous update was at 09:33 AM ----------
Also- is the last /necessary (after... (4 Replies)
Discussion started by: Stellaman1977
4 Replies
trbsd(1) General Commands Manual trbsd(1)
NAME
trbsd - Translates characters
SYNOPSIS
trbsd [-Acs] string1 string2
trbsd -d [-Ac] string1
The trbsd command copies characters from the standard input to the standard output with substitution or deletion of selected characters.
OPTIONS
Translates on a byte-by-byte basis. When you specify this option, trbsd does not support extended characters. Complements (inverts) the
set of characters in string1 with respect to the universe of characters whose codes are 001 through 377 octal if you specify -A, and all
characters if you do not specify -A. Deletes all characters in string1 from output. Changes characters that are repeated output charac-
ters in string2 into single characters.
DESCRIPTION
Input characters from string1 are replaced with the corresponding characters in string2. The trbsd command cannot handle an ASCII NUL
( 00) in string1 or string2; it always deletes NUL from the input.
The tr command is a System V compatible version of trbsd.
Abbreviations such as a-z, standing for a string of characters whose ASCII codes run from character a to character z, inclusive, can be
used to introduce ranges of characters. Note that brackets are not special characters.
Use the escape character (backslash) to remove the special meaning from any character in a string. Use the followed by 1, 2, or 3
octal digits for the code of a character.
If a given character appears more than once in string1, the character in string2 corresponding to its last appearance in string1 will be
used in the translation.
EXAMPLES
To translate braces into parentheses, enter: trbsd '{}' '()' <textfile >newfile
This translates each { (left brace) to a ( (left parenthesis) and each } (right brace) to a ) (right parenthesis). All other char-
acters remain unchanged. To translate lowercase ASCII characters to uppercase, enter: trbsd a-z A-Z <textfile >newfile The two
strings can be of different lengths: trbsd 0-9 # <textfile >newfile
This translates each digit to a # (number sign); if string2 is too short, it is padded to the length of string1 by duplicating its
last character. To translate each string of digits to a single # (number sign), enter: trbsd -s 0-9 # <textfile >newfile To trans-
late all ASCII characters that are not specified, enter: trbsd -c ' -~' 'A-_' <textfile >newfile
This translates each nonprinting ASCII character to the corresponding control key letter ( 01 translates to A, 02 to B, and so
on). ASCII DEL (177), the character that follows ~ (tilde), translates to a ? (question mark).
SEE ALSO
Commands: ed(1), sh(1), tr(1)
Files: ascii(5)
trbsd(1)