Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Csh Programming Considered Harmful

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-23-2011   -   Original Discussion by ilikecows
kristinu's Unix or Linux Image
kristinu kristinu is offline
Registered User
Join Date: Dec 2009
Last Activity: 19 January 2018, 6:36 AM EST
Posts: 903
Thanks: 68
Thanked 8 Times in 8 Posts
I agree with you as you say. I do need to do floating point calculations and use relational operators on floating point numbers. Playing with bc or awk gets scripts a bit lengthy even to do simple things.

Originally Posted by LivinFree View Post
I like scripting in bash. It's close to POSIX, and a contender for ksh, which I haven't used a lot in the last few years, since I work almost exclusively on GNU/Linux kit.

My gripes about bash are a lack of floating-point arithmetic and a lack of ksh-style coprocesses (bash4 has a retarded coprocess implementation, IMNSHO). Other than that, it's grand, and available on a lot of platforms, if not already preinstalled.
Sponsored Links
Old Unix and Linux 04-02-2011   -   Original Discussion by ilikecows
HARJINDER SINGH's Unix or Linux Image
Registered User
Join Date: Apr 2011
Last Activity: 2 April 2011, 3:03 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
how to use foreach loop
Sponsored Links
Old Unix and Linux 04-02-2011   -   Original Discussion by ilikecows
cfajohnson's Unix or Linux Image
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
Join Date: Mar 2007
Last Activity: 11 July 2016, 2:55 PM EDT
Location: Toronto, Canada
Posts: 2,898
Thanks: 0
Thanked 134 Times in 118 Posts
Originally Posted by HARJINDER SINGH View Post
how to use foreach loop


Use a real shell.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Time command issuing all zeroes (is now considered homework help) lamentofking Homework & Coursework Questions 5 07-18-2013 09:50 PM
Google reporting UNIX.com as harmful site Unregistered Forum Support Area for Unregistered Users & Account Problems 6 12-29-2012 11:52 PM
Why is C/C++ considered low-level languages??? gabam Programming 5 06-14-2012 10:12 AM
Background & is considered as Idle david_hu_66 AIX 12 11-22-2010 04:15 AM
C: why decimals considered double by default ? limmer Programming 2 01-04-2010 12:32 PM

All times are GMT -4. The time now is 09:53 AM.