10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I am a newbie here. I have this requirement to find a file based on a pattern then return the filename if found.
I created a script based on online tutorials. Though, I am stuck & really appreciate if anyone can have a quick look & point me to the right direction?
#Script starts... (10 Replies)
Discussion started by: buster_t
10 Replies
2. Shell Programming and Scripting
I have a script like this:
echo "enter filername in lowercase"
read -e filername exec 2>&1
echo "type the start date in format MM/DD/YYYY"
read -e startdate exec 2>&1
echo "enter the end date in format MM/DD/YYYY"
... (2 Replies)
Discussion started by: newbie2010
2 Replies
3. Shell Programming and Scripting
Hi All,
I need to get the count of records in the file, if the passing parameter matches with the list of records in the file. Below is my example
source file: Test1.dat
20120913
20120913
20120912
20120912
20120912
20120912
20120912
20120913
20120913
20120912
In my script I am... (5 Replies)
Discussion started by: bbc17484
5 Replies
4. Shell Programming and Scripting
I am trying to execute a script called tfile.sh in a bash shell in solaris and it throws up the following message
I am getting the required output after this message. How do i get the message to disappear. Can someone please point out my mistake in the script? Thanks in advance
... (13 Replies)
Discussion started by: goddevil
13 Replies
5. Shell Programming and Scripting
I am executing the following script in a bash shell in solaris and it throws up the following message :
But i get the output that i require nevertheless. Can anyone please spot what is causing the warning and how do i get it go away?
VAR1="e6842w2334f76figtl5.systems.grp"
if 76fig`... (2 Replies)
Discussion started by: goddevil
2 Replies
6. Shell Programming and Scripting
Hi,
I am a newbie for shell programming and met some question about redirect output to a file. See the details.
#!/usr/bin/sh
...
./doSomething.pl >> RAW_DATA
echo "testing is done !" >> RAW_DATA
Descirption:
doSomething.pl do a bit complex things and output some message. I append... (3 Replies)
Discussion started by: programmerBegin
3 Replies
7. Shell Programming and Scripting
I have shell script as below:
#!/bin/ksh
#set -xv
function set_variable
{
VARIABLE_NAME=$1
CURRENT_PATH=`pwd`
if ; then
echo "\nconfiguration_file.lst file not found in $CURRENT_PATH/common/common_scripts"
exit 1;
fi
VARIABLE_COUNT=`cat... (2 Replies)
Discussion started by: findprakash
2 Replies
8. Shell Programming and Scripting
when the file is not found i want it to return to the menu, however it carries out the next line when i hit a key
I know its probably something simple can anyone help?
here is my pause function:
function pause(){
read -s -n 1 -p "Press any key to return to Menu . . ."
echo
}
SCRIPT... (2 Replies)
Discussion started by: Alendrin
2 Replies
9. UNIX for Dummies Questions & Answers
Hi I would like to know how interpret line by line a return mail message sent by unix mailer-daemon (2 Replies)
Discussion started by: alcvrjo
2 Replies
10. Shell Programming and Scripting
How can i scan a file in a UNIX script and look for a particular keyword?
For example if i wanted to scan the file "lpcmp165.out" and see if it contains the term "error" or "ERROR" and then return a 0 or 1 or some indicator as such?
Detail example:
sqlplus -s xx/yyyyyyy#@zzz <<EOF >... (11 Replies)
Discussion started by: bobk544
11 Replies