08-14-2008
A related complication is that some variants of echo will do its own backslash interpretation and what not. That's precisely why ksh has print -- use that instead.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
// AIX 5.3
I am trying to use .sh after changing it to .ksh
Obviously, it doesn't like the file extension change.
I am seeing a lot of odd characters (^M) like below:
Init_Part2 ()^M^M
{^M^M
AWTRACE "AW SET"^M^M
set | grep -e CFG_ -e OUTDIR_ENV^M^M
AWTRACE "AW SET"^M^M
^M^M
if ;... (2 Replies)
Discussion started by: Daniel Gate
2 Replies
2. UNIX for Dummies Questions & Answers
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies
3. UNIX for Advanced & Expert Users
Running the find command as: find /abc -follow -ls gives, for some files, the message, which I have never seen before:
find: /abc/def/123.txt: No error
Does it mean that find found the file with out error. If it found it without error then why did it not output the "ls" particulars as with... (2 Replies)
Discussion started by: twk
2 Replies
4. UNIX for Dummies Questions & Answers
My file has
k
s
j
v
l
k
a
s
f
l
k
s
a
d
f
j
l
a
s (3 Replies)
Discussion started by: phoenix_nebula
3 Replies
5. Shell Programming and Scripting
hi,
The following mail cmd executed successfully.
mailx -s 'subject' user@company.com < testfile.dat
However When i include this mail cmd in shell script it behave odd. Getting an error message mailx comand not found. (2 Replies)
Discussion started by: zooby
2 Replies
6. Shell Programming and Scripting
Hi
I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email.
For example
-------
Script ABC
-------
a.ksh
b.ksh
c.ksh
I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies
7. UNIX for Dummies Questions & Answers
Hi!
I'm a complete noob, and I'm trying to write a little script that takes a directory pathname as input from the CL, checks whether it exists, and if not creates it, then shows it worked using ls.
Everything works beautifully except in the first instance, wherein the directory is created, ls... (10 Replies)
Discussion started by: sudon't
10 Replies
8. Shell Programming and Scripting
I have awk command :
awk -F ' ' '{ print $NF }' log filename
And it gives the output as below:
06:00:00
parameters:
SDS
(2)
no
no
no
no
doc=4000000000).
information: (6 Replies)
Discussion started by: ramprabhum
6 Replies
9. Shell Programming and Scripting
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
Discussion started by: jbrass
4 Replies
10. Solaris
We're experiencing some intermittent freezes on one of our systems and I'm trying to figure out what is happening.
We're running Solaris 10 zones mounting shares from netapp through nfs.
On the zone that freezes we have sar running and are getting this output:
SunOS prodserver 5.10... (3 Replies)
Discussion started by: Jyda
3 Replies