Search Results

Search: Posts Made By: smiley76112
1,883
Posted By frank_rizzo
the first line should be #!/bin/bash and...
the first line should be #!/bin/bash


and your read statment should look like this -- no $ in the variable name
read -p "Enter week you would like to delete files: " num
4,453
Posted By ygemici
try ;) #!/bin/bash read -p "Enter week...
try ;)

#!/bin/bash
read -p "Enter week number or q to quit: " num
while [ $num != "q" ] ;
do
if [ $num -lt 4 ]
then
echo "The files submitted in week $num...
4,453
Posted By agama
After fixing the bad test on the while statement,...
After fixing the bad test on the while statement, it worked for me in both bash and kshell.


#!/usr/bin/env ksh
echo "Enter week number or q to quit: "
read num
set -x #...
Showing results 1 to 3 of 3

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