9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I have data in the below format in two columns in excel which i will copy to notepad.
test as rec1, string
test as rec2, byteint
test as rec3, string
update date as test, datetime
name as tes2 string
I need to add trim function on all the string columns and keep the remaining... (10 Replies)
Discussion started by: pisikar
10 Replies
2. Shell Programming and Scripting
i have one function block in the beginning of my script and there are some commands inside that function which will perform some operations.
And i am invoking that function from my main script by passing some values. Sometimes it is hanging in the middle for some value.
For example:
For 1st... (3 Replies)
Discussion started by: thomasraj87
3 Replies
3. Shell Programming and Scripting
Currently I have awk command to do linear interpolation
awk '
{
P=$2
I=$1
}
END {
j=0; s=I; t=I
for(i=m;i<=n;i++) {
if(I && i>t) {
j++; s=I; t=I
}
print i, P+(i-s)*(P-P)/(t-s)
}
} ' m=1 n=8 infile
FILE CONTENT... (8 Replies)
Discussion started by: Tzeronone
8 Replies
4. Shell Programming and Scripting
Ok, so I have a bash script with an embedded expect statement.
Inside of the expect statement, i'm trying to pull all of the non-comment lines from the /etc/oratab file one at a time.
Here's my command:
cat /etc/oratab |sed /^s*#/d\ | awk 'NR==1'|awk -F: '{print \"$1\"}'|. oraenv
Now,... (0 Replies)
Discussion started by: alexdglover
0 Replies
5. Shell Programming and Scripting
Hi everybody!
I have written some awk scripts that return me some results I need to process. At the moment I use openOffice to process them, but I am trying to find a more efficient solution using possibly a bash or awk script.
I have two files, file1 is in the format:
time position
... (3 Replies)
Discussion started by: Alice236
3 Replies
6. UNIX for Advanced & Expert Users
Hello everybody!
I have no experience with shell Programmer, but I need to compare 02 files. Txt and generate an output or a new file, after the comparisons. see:
If the column 1 of file1 is equal to column 1 of file2, and column 3 of file2 contains the column 4 of file1, output: column1... (4 Replies)
Discussion started by: He2
4 Replies
7. Shell Programming and Scripting
Factorial calculation
Example output:
Please enter a non-negative number: 3
3! = 3 X 2 X 1
= 6
Please enter a non-negative number: 10
10! = 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1
= 3628800
Please enter a non-negative number: -1
... (1 Reply)
Discussion started by: cenco
1 Replies
8. Shell Programming and Scripting
Factorial calculation
Example output:
Please enter a non-negative number: 3
3! = 3 X 2 X 1
= 6
Please enter a non-negative number: 10
10! = 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1
= 3628800
Please enter a non-negative number:... (1 Reply)
Discussion started by: cenco
1 Replies
9. Shell Programming and Scripting
I have wrriten a script to call sql script to do some work in database. However, the script couldn't be executed. The only information was: ksh: ./updt_attrib.ksh cannot execute. Please help me to identify where the problem is. I post script here for your reference. Thanks a lot.
#!/bin/ksh
... (8 Replies)
Discussion started by: duke0001
8 Replies