10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have two files(file1.txt and file2.txt)
and also file names which are presented in the files also present in the directory gdir/db/files.
/db/day_files/data_feed20161125... (1 Reply)
Discussion started by: PAPAS
2. Shell Programming and Scripting
I'm having two fields in the file
Now, I need to compare this with current date & time and need to return the difference value in hours. Already, I checked with datecalc from the forum. So, need hints from Shell Gurus.
Thanks (10 Replies)
Discussion started by: buzzusa
3. Shell Programming and Scripting
I have a scenario to implement in Korn shell script. Here it is..
I need to compare two values to see whether they are same or not. The issue is that the values coming in for comparison can be a string or an integer which can be determined during run time only.
Which korn shell comparison... (1 Reply)
Discussion started by: vani123
4. Shell Programming and Scripting
I have a script which uses SQL to take the contents of a DB table and saves the contents to two text files one contains the headers of the DB and the other contains the contents of the DB. These files are stored in directorys that are named dependent upon the current date i.e. 20110305.
... (1 Reply)
Discussion started by: snow1
I Have a script which gets the status of oracle database and if the status is READ WRITE ..it should echo "db is up " else "db is down"
Here is the code
echo "db up"
echo "db down"
The script is giving me out put "db down" even thoug the value of... (6 Replies)
Discussion started by: njafri
6. Shell Programming and Scripting
I need help on doing the below thing in shell script.
I have a file with millions of rows called "abc.txt". i have another file with millions of rows called "xyz.txt".
I would like to do the below operation.
Open the abc.txt, read the first line, do some operations on the column... (2 Replies)
Discussion started by: informsrini
7. Shell Programming and Scripting
I have a folder a1 with the following files
In another folder there is a file b with the value 5
My script should take the value 5 ( file b), compare it with the files in folder a1, if file name contains... (1 Reply)
Discussion started by: Nagesh1
8. Shell Programming and Scripting
I want to remove a line that has empty string at second field when I use cut with delimeter , like below
while read line
# remove the current line command goes here
done < "demo"
i got an error message for above... (4 Replies)
Discussion started by: bonosungho
9. Shell Programming and Scripting
I need to write a script that can check files in a folder one by one and compare against a fixed file.
I have some files in folder_a
and a fixed file in folder_b
Inside the fixed.txt, I have
Inside the... (1 Reply)
Discussion started by: tiger99
10. Shell Programming and Scripting
I am using Korne Shell in HP-Ux. Can someone give me and idea on how I can write a shellscript on how to do this please:-
On our HP-UX server, a batch file is run every evening at about 6:30pm. The first step of this batch file will touch an empty "flag" file to indicate that the batch has... (6 Replies)
Discussion started by: gummysweets