10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have this code
for i in `cat sql_output.txt`
-- some script commands
sql_output.txt has 1 column with employee_ids
If the sql_output.txt is null then the do loop should not execute.
How can i implement this.
for i in `cat sql_output.txt`
If i is null or empty
then ... (5 Replies)
Discussion started by: rafa_fed2
2. Shell Programming and Scripting
i have a script where i have to find the age of a file,
echo "dnb file is present for the monthly load" >> $RUNLOG
echo "dnb file has not arrived yet" > $ERRLOG
i know the file is available so... (3 Replies)
Discussion started by: lovelysethii
3. Shell Programming and Scripting
Hi am trying to write a script which find the existence of a file from a find command output and perform a task if the file exists. Help me out with the correct syntax . Am trying with the following one but unable to get the output.
then <some tasks>
echo "file not exists"
fi (5 Replies)
Discussion started by: rogerben
4. Shell Programming and Scripting
I am trying to check if two variables have value assigned to it.
i am doing it like
echo "Please specify either single hostname or host file for the report"
But its not working for it.Even i specify values for both variables it dont go... (6 Replies)
Discussion started by: kailash19
5. Shell Programming and Scripting
I want to create a separate file for country list if condition is true. Please help.
SV-INCR-1077-855045741-201104040805.sqllog... (4 Replies)
Discussion started by: humaemo
6. Shell Programming and Scripting
testfile.csv looks like above format
if the second column is null then get 23rd column and store in a different varible .. add all the... (1 Reply)
Discussion started by: mgant
7. Shell Programming and Scripting
I Have a list of .zip files in a directory. I want to check whether each .zip file having some particular file or not (say .jsp) if it's having .Jsp file then create a directory as per the .zip file and extract the content to that directory except the .jsp file, If .zip not having... (3 Replies)
Discussion started by: posix
8. Shell Programming and Scripting
Hi all ,
Recently i came across this in FAQ's.
I have a file
I have to replace sreedhar with "Sridhar" if the second parameter is > 18.
I need to do it in "sed" only. I am wondering how this... (4 Replies)
Discussion started by: panyam
9. Shell Programming and Scripting
I have one clarification i am using the loop which will process for each record .suppose there is f ailure in the first record it need to send mail and process the next .my code:
defcount=`cat <filename>|wc -l`
if <some condiotion>
so... (1 Reply)
Discussion started by: ithirak17
10. Shell Programming and Scripting
That's another problem from me, i wanna do a lot of if statement checking for correct input by user, will be prompt input again if the input not meet the requirement defined by If or while statement...
like this one ....
I know it's less effiency write the program... (14 Replies)
Discussion started by: trynew