* Script help
@ 1999-06-16 15:26 Mary J. Aumann
0 siblings, 0 replies; 4+ messages in thread
From: Mary J. Aumann @ 1999-06-16 15:26 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--------------811BEEA77125957297428FDC", Size: 1216 bytes --]
This is a multi-part message in MIME format.
--------------811BEEA77125957297428FDC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi All,
Looking for some of your great advice again. I'm trying to write what I
thought was an easy script to unlock devices with "Terminal is disabled
-- See Account Administrator" message. The line that is giving me
problems is:
/usr/tcb/bin/edauth -g -dt ttyf03s | sed 's/:t_failures#6//' |
/usr/tcb/bin/edauth -s
This statement causes a core dump. The device and number (6) are being
prompted for, but that doesn't seem to be what is causing the problem.
Any tips greatly appreciated as always!
Mary
--------------811BEEA77125957297428FDC
Content-Type: text/x-vcard; charset=us-ascii;
name="mja.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Mary J. Aumann
Content-Disposition: attachment;
filename="mja.vcf"
begin:vcard
n:Aumann;Mary
tel;work:517-790-5678
x-mozilla-html:FALSE
org:Saginaw Valley State University;Computer Services
adr:;;7400 Bay Road;University Center;MI;48710;
version:2.1
email;internet:mja@svsu.edu
title:Lead Operations Specialist
fn:Mary Aumann
end:vcard
--------------811BEEA77125957297428FDC--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Script help
@ 2001-06-05 8:41 Klas.Erlandsson
0 siblings, 0 replies; 4+ messages in thread
From: Klas.Erlandsson @ 2001-06-05 8:41 UTC (permalink / raw)
To: tru64-unix-managers
Hi!
I have a big text file I want to edit.
Everywhere there is 11|XXXXX
I want to remove the last X (X could be any character) .
How do I solve this?
Regards Klas Erlandsson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Script help
@ 2000-03-23 13:01 Mary Aumann
0 siblings, 0 replies; 4+ messages in thread
From: Mary Aumann @ 2000-03-23 13:01 UTC (permalink / raw)
To: tru64-unix-managers
Hi All,
Does anyone know the shell variable to check for the login name in a =
script? I thought it was $USER, but that keeps giving me an error - $USER =
is not an identifier.
TIA
Mary J. Aumann
Lead Operations Specialist
Saginaw Valley State University
^ permalink raw reply [flat|nested] 4+ messages in thread
* Script Help
@ 1997-03-21 19:52 Alan Simon
0 siblings, 0 replies; 4+ messages in thread
From: Alan Simon @ 1997-03-21 19:52 UTC (permalink / raw)
To: tru64-unix-managers
I am trying to come up with some shell script code that does the following:
1) Reads each line in a text data file Each line is one record, and there are
multiple fields in each record, separated by semicolons.
2) Checks for a specified string within one of the fields.
3) If the string is present, then extract the contents of another field within
that line.
4) Concatenate each occurrence of the secondary field to an environment
varable.
For example, suppose I want to create the environment variable CARS that
contain all the cars that belong to a user (in this case, "bob"). The data
file looks like this:
camaro:red:bob
corvette:white:tom
miata:blue:bob
camry:gold:bill
The shell script would look for the string "bob" in the first line, third
piece. Finding it, the script would set CARS=camaro. It would then read the
second line and skip it, since it would not find the string "bob." It would
read the third line and set CARS=camaro,miata. It would then read the fourth
line, skip it, and quit, since it reached the end of the file.
Since my knowledge of shell scripting is limited, I have not been able to
figure out how to read each line of a file and act only on that line. Any and
all help is greatly appreciated.
-------------------------------------------------------------------------------
Alan Simon simon@hslc.org
Associate Director simon@shrsys.hslc.org
Health Sciences Libraries Consortium VOICE: (215) 222-1532
3600 Market Street, Suite 550 FAX: (215) 222-0416
Philadelphia, PA 19104
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-06-05 8:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-16 15:26 Script help Mary J. Aumann
-- strict thread matches above, loose matches on Subject: below --
2001-06-05 8:41 Klas.Erlandsson
2000-03-23 13:01 Mary Aumann
1997-03-21 19:52 Script Help Alan Simon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox