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


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 03-23-2011
kristinu kristinu is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 21 April 2017, 6:13 AM EDT
Posts: 893
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.

Quote:
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
    #9  
Old Unix and Linux 04-02-2011
HARJINDER SINGH HARJINDER SINGH is offline
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
    #10  
Old Unix and Linux 04-02-2011
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
Quote:
Originally Posted by HARJINDER SINGH View Post
how to use foreach loop

Don't.

Use a real shell.
Sponsored Links
Closed

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
Background & is considered as Idle david_hu_66 AIX 12 11-22-2010 03:15 AM
C: why decimals considered double by default ? limmer Programming 2 01-04-2010 11:32 AM
C Programming - Hardware Programming nandumishra Programming 3 08-24-2009 04:11 AM
Carreer:Networking Programming in Unix (C programming Language) vibhory2j UNIX for Dummies Questions & Answers 5 09-05-2008 07:57 PM
c programming or unix programming!? moxxx68 Programming 1 03-30-2004 07:53 AM



All times are GMT -4. The time now is 07:31 AM.