Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Linux only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Linux
need help doing a egrep and replace
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
3
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
1
2
3
template
Next
gpraghuram
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
1275
#31
Apr 2 '09, 04:01 AM
This shuld be answered by administrators.
Admins,
can u look into this issue.
Raghu
Comment
Post
Cancel
coaxfiber
New Member
Join Date:
Mar 2007
Posts:
60
#32
Apr 2 '09, 08:58 AM
how to skip in a loop
the contents of my scripts:
#!/usr/bin/ksh
integer x=1
while ((x<=20));
do
print $x;
if [ $x = 5 ]
then
x=10
fi
((x=x+1));
done
_____________
output:
1
2
3
4
5
11
12
13
14
15
16
17
18
19
20
-------------------------------
how can i make another skip: so my output would be:
1
2
3
4
5
11
12
13
14
18 ---> i skip from 15 to 17
19
20
tyvm.
Comment
Post
Cancel
coaxfiber
New Member
Join Date:
Mar 2007
Posts:
60
#33
Apr 2 '09, 09:07 AM
oopsss. so sorry..
got the answers already..
tyvm..
Comment
Post
Cancel
Previous
1
2
3
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment