10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a scenario where hyphen(-) from file should be ignored
I used the following code
if && ; then
if ; then
pow=$LINE
echo $pow > history.txt
flag=1
fi
fi
I get the following output
./valid.sh: -: 0403-012 A test... (7 Replies)
Discussion started by: Priya Amaresh
7 Replies
2. Shell Programming and Scripting
Hi, im asking for help with the next script:
echo ^;
then
if
then
printf "\033
query1.sh:
export TERM=vt100
export ORACLE_TERM=at386
export ORACLE_HOME=/home_oracle8i/app/oracle/product/8.1.7
export ORACLE_BASE=/home_oracle8i/app/oracle
export... (8 Replies)
Discussion started by: blacksteel1988
8 Replies
3. Shell Programming and Scripting
Hi
I am looking for a unix command or a small shell script which can takes one parameter and then searches for the passed in the parameter in any or all files under say /home/dev/
Can anyone please help me on this? (3 Replies)
Discussion started by: pankaj80
3 Replies
4. Shell Programming and Scripting
Hi all,
I would like to ask if there's something wrong with my if - else condition, i couldn't run the script perfectly due to the error in my if - else condition stating that "test: 0403-004 Specify a parameter with this command."
below is the snippet of my script
if && && ]
then echo... (5 Replies)
Discussion started by: jihmantiquilla
5 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I wrote a script and part of the script, I have a validation to check if the file has <EOF> on the last line of the
file. If it does not have a <EOF>, then a message has to be written to a log file.
the code snippet shown below works fine, but it writes the below message if the... (1 Reply)
Discussion started by: Vijay81
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have written a script to compare 2 string values.. below is the script.. it throws an error - ./compare_str.sh: test: amount1|amount2: unknown operator..
as both are string values, I am using a = operator in the test command.
can some one help me figure out where the issue is?... (11 Replies)
Discussion started by: Vijay81
11 Replies
7. Shell Programming and Scripting
Hello,
Getting error "A test command parameter is not valid" when trying to run the code below under /sbin/sh
AA = "12:00"
CHK=$(date +"%H:%M")
if
then
print "Yes"
fi
Getting 2 errors:
1) "AA: not found"
2) "Specify a parameter with this command"
Thanks,
IS
Please... (5 Replies)
Discussion started by: schureki
5 Replies
8. Shell Programming and Scripting
Trying to run the following awk command :
export com.mics.ara.server.tools.sch_reports.Runner.num_threads=`awk -F= '!/^#/ && /com.mics.ara.server.tools.sch_reports.Runner.num_threads/{print $2}' $BKUPDIR/env.properties`
-bash: export:... (6 Replies)
Discussion started by: venhart
6 Replies
9. AIX
while i try to start the audit i have the below error message .
audit>audit start
** auditing enabled already
A system call received a parameter that is not valid.
please advice (6 Replies)
Discussion started by: thecobra151
6 Replies
10. Shell Programming and Scripting
Hi all,
I have a script where i need to check the format of a string.
finally, i'm waiting a "process name" and 2 numbers separated by a ","
string like : "this_is_a_string.txt,1,10 should be ok"
string ok : "apache.exe,1,10"
string ok : "mysqld,50,0"
string not ok : "ap ache,1,10"... (4 Replies)
Discussion started by: fgilain
4 Replies