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
LTRIM(3) 1 LTRIM(3)
ltrim - Strip whitespace (or other characters) from the beginning of a string
SYNOPSIS
string ltrim (string $str, [string $character_mask])
DESCRIPTION
Strip whitespace (or other characters) from the beginning of a string.
PARAMETERS
o $str
- The input string.
o $character_mask
- You can also specify the characters you want to strip, by means of the $character_mask parameter. Simply list all characters
that you want to be stripped. With .. you can specify a range of characters.
RETURN VALUES
This function returns a string with whitespace stripped from the beginning of $str. Without the second parameter, ltrim(3) will strip
these characters:
o " " (ASCII
32 ( 0x20)), an ordinary space.
o " " (ASCII
9 ( 0x09)), a tab.
o "
" (ASCII
10 ( 0x0A)), a new line (line feed).
o "
" (ASCII
13 ( 0x0D)), a carriage return.
o "