10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Not sure where the problem is. I can run the script without any issue using the following command.
But it fails with the below error when I try it this way
/opt/app/scripts/cdc_migration.sh: line 65: return: can only... (1 Reply)
Discussion started by: svajhala
2. Shell Programming and Scripting
I have a basic buzz program written in python with return function. If i change return with print,it works fine but i want to know whats wrong with return statement.Can anyone help me whats wrong with this
for i in range(s,e+1):
if... (5 Replies)
Discussion started by: oky
3. UNIX for Advanced & Expert Users
I am trying to get the FileType using the File command. I have one file, which holds Group separator along with ASCII character.
It's a Text file.
But when I ran the File command the FileType is coming as "data".
It should be "ASCII, Text file".
Is the latest version of File... (6 Replies)
Discussion started by: Arpitak29
4. Shell Programming and Scripting
I need a shell script, which would search the result values from another files.
1)execute " select column1 from table_name" query on the table.
2)Based on the result, need to be grep from .wft files.
could please explain about this.Below is the way i am using.
#!/bin/sh... (4 Replies)
Discussion started by: Rami Reddy
5. Shell Programming and Scripting
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
6. Shell Programming and Scripting
echo "Return code from Sub_script.sh : $rc"
if ; then
echo "$rc = 991"
elif ; then
echo "$rc = 992"
elif ; then
echo "$rc = 0"
fi (2 Replies)
Discussion started by: duddukuri
7. Shell Programming and Scripting
I have a problem that I am sure someone will know the answer to. Currently I have a script which returns a binary output if it finds a certain search string (in this case relating to a DRBD cluster) as follows:
searchstring="cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate"
&& echo... (3 Replies)
Discussion started by: almightybunghol
I have a sun4u system running Solaris 8. I tried running the df command but it returns a blank result. Also I'm unable to collect an explorer from this system as the OS complains that the disk is full. What could be going on here? (10 Replies)
Discussion started by: dperry1973
9. UNIX for Dummies Questions & Answers
What Im basically trying to do is this:
I have a small script that can grep any parameter entered into a search string, then print to the screen the name of each file the parameter appears in as well as the file path, ie the directory.
The code Im using just for this is....
Directory... (3 Replies)
Discussion started by: Eddeh
10. Shell Programming and Scripting
I amlearning UNIX scripting. I have a small query. I would be thankful if any one helps me out.
I have a below piece of code which delets the files. If file dosent have the permissions to delete a particular file I have used 2>>operator to track the error code.
But my objective is... (1 Reply)
Discussion started by: manas6