Search Results

Search: Posts Made By: Michael Fitz
8,599
Posted By Michael Fitz
vgersh99, that works! Thanks!
vgersh99, that works! Thanks!
8,599
Posted By Michael Fitz
Ran new "myscript.sh" still shows "-ksh" not...
Ran new "myscript.sh" still shows "-ksh" not "myscript.sh"

$ . myscript.sh
The code in is being run by -ksh with PID 1581
8,599
Posted By Michael Fitz
Ksh: How to get name of script when in same script
To get the script name the variable $0 can normally be used.
Problem happens when the command is started with a "dot space" as in: . myscript.sh.
$0 shows -ksh not myscript.sh
From within the...
29,438
Posted By Michael Fitz
AIX 5.3 (how do you distinguish further? Not...
AIX 5.3 (how do you distinguish further? Not seeing anything more in uname -a )
29,438
Posted By Michael Fitz
Platform gives diff results
Using ksh.
Looks like the problem is the platform.
Tested using
cat /tmp/t.txt |sed "s/old/new/g">/tmp/t.txt; cat /tmp/t.txt
File is empty on AIX (IBM) and SunOS.
It worked on HPUX.
Please...
29,438
Posted By Michael Fitz
The following leaves an empty file. cat $1 |...
The following leaves an empty file.
cat $1 | sed s/'$old'/'$new'/g > $1
Need to direct to a tmp file and then move it back (is there a better way?)
cat $1 | sed s/'$old'/'$new'/g > $1.$$tmp
mv...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 01:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy