10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Below script is throwing an error:
repos=root
filename=/home/admin/Desktop/authz
case $repos in
root)
root_folder="\"
do
sed "/$root_folder/a $username = $access" $filename
done
;;
esac
exit 0
Error:
./new1.sh: line 77: syntax error near unexpected token `do' (1 Reply)
Discussion started by: ankur328
1 Replies
2. Shell Programming and Scripting
Hello,
I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time.
My script:
returned=`tail -50 SapLogs.log | grep -i "Error"`
echo $returned
if ; then
echo "There is no errors in the logs"
fi
And after... (10 Replies)
Discussion started by: jedzio
10 Replies
3. UNIX for Dummies Questions & Answers
Hi guys here i'm again with more question
The code below try to find an user and write everything about him if exist, so my problem appear on line of test, where the program test if the user has secondary groups related. The rest it's clear
# usugrup.sh lista todas las caracteristicas de un... (3 Replies)
Discussion started by: Newer
3 Replies
4. Shell Programming and Scripting
Hi All,
I am getting below error message while executing memory utilization script.
$ ./mem1.sh
syntax error on line 1, teletype
syntax error on line 1, teletype
$
$ uname -a
SunOS 5.9 XXX Generic_122300-60 sun4u sparc SUNW,Sun-Fire-V440
$
But i can execute same script in... (3 Replies)
Discussion started by: susindram
3 Replies
5. Shell Programming and Scripting
Input file:
703
1192
720
1162
316
380
1810
439
1969
874
Desired output file:
3
3
awk code that I tried: (1 Reply)
Discussion started by: perl_beginner
1 Replies
6. Programming
Hello everyone.
I'm stuck with an error message that neither I nor any of my computer science peeps can understand. The program I wrote is meant to be a simple decimal to binary converter, but with this message it's more complicated than I thought.
Here's the code:
#include <iostream>... (3 Replies)
Discussion started by: qf_woodfox
3 Replies
7. Programming
Hello everyone.
I'm stuck with an error message that neither I nor any of my computer science peeps can understand. The program I wrote is meant to be a simple decimal to binary converter, but with this message it's more complicated than I thought.
Here's the code:
#include <iostream>... (2 Replies)
Discussion started by: qf_woodfox
2 Replies
8. Shell Programming and Scripting
Hi,
I have following K script, that is in rc0.d directory to be run on shutdown. It's linked using the 'ln' command to init.d.Can anyone tell me as to why it's not running, or if i have incorrect syntax?I get:
"test: argument expected
type=uname -p
+ "
When running it with sh -x
... (8 Replies)
Discussion started by: darrlaw
8 Replies
9. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
10. Shell Programming and Scripting
I am trying to run the script bellow but its given me "syntax error at line 20 :'done' unexpected." error message"
can someone check to see if the script is ok? and correct me pls.
Today is my first day with scripting.
Gurus should pls help out
#!/bin/ksh
# Purpose: Check to see if file... (3 Replies)
Discussion started by: ibroxy
3 Replies