Sponsored Content
Full Discussion: What -f can do?
Top Forums UNIX for Dummies Questions & Answers What -f can do? Post 302922914 by cmarzan on Wednesday 29th of October 2014 05:52:19 AM
Old 10-29-2014
What -f can do?

Just want to ask if -f can also use to check if a directory is existing. Below is my code



Code:
oap_find_patch_fnc()  {
echo "        Enter patch number you want to retract or 99 to exit \c"
read patch_number

	if [ $patch_number == 99 ] 
	then
		exit 0
	else
		if [ -f "directory_$patch_number" ]

 
All times are GMT -4. The time now is 09:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy