* ksh script question
@ 1999-02-23 14:03 SIMEONE, Allan J.
0 siblings, 0 replies; 2+ messages in thread
From: SIMEONE, Allan J. @ 1999-02-23 14:03 UTC (permalink / raw)
To: tru64-unix-managers
Hi All,
Ksh script question.
I have a file with the following (for example:)
ABC123X
DEF123Z
GHI456A
I need to get an output file with the following...
ABC123X abc123x
DEF123Z def123z
GHI456a ghi456a
Basically change the line to lower case but have both in the file.
There would be about 100 lines in the file.
Can anyone send me an example on how to do this?
thanks,
Allan
^ permalink raw reply [flat|nested] 2+ messages in thread
* ksh script question
@ 2008-03-18 22:59 Brehl, Blake
0 siblings, 0 replies; 2+ messages in thread
From: Brehl, Blake @ 2008-03-18 22:59 UTC (permalink / raw)
To: tru64-unix-managers
Hello Admins,
trying to have a script that will write to a NFS mounted drive, but will
write to a local drive if the NFS mounted one is not available. Trying
this with a cd to the local drive 1st, then a cd to the NFS mounted one
2nd.
#!/bin/ksh
LOCALDRV=/home/users/mfg/xxbusint1; export LOCALDRV
NFSDRV=/home/whlzdev/xxbusint1; export NFSDRV
cd $LOCALDRV; sleep 1
cd $NFSDRV
exec /someexecutable
When either the Local or NFS drives aren't there, the 'cd' command
returns an error value of >0 and exits the shell script.
Any suggestions?
Blake Brehl
Sys Admin/DBA
Anritsu Company United States
Morgan Hill, CA
blake.brehl@anritsu.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-18 22:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-23 14:03 ksh script question SIMEONE, Allan J.
-- strict thread matches above, loose matches on Subject: below --
2008-03-18 22:59 Brehl, Blake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox