"unix programming" Help and InformationHow do I strip leading zeroes for math in a shell script?
I have a file containing lines of data that are amounts padded with leading zeros, similar to the snip below. 0000000004 0000000016 0000000012 0000000008 Using a shell script, how can I add up a column of numbers contained in lines when BASH interprets the numbers as octal when I do in-line math?...
Continue reading about How do I strip leading zeroes for math in a shell script? |
Search
Auctions & Online Shopping
Building Web site traffic Business & Management Cellphones and Mobile Phones CGI Scripts & Web Site Programming Computer & Internet Basics HTML, XHTML & CSS Mac OS X Advanced Mac OS X Basics Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP & Gadgets Sun's Solaris Unix The Writing Business Unix & Linux Basics Unix & Linux System Administration Weblogs and RSS Feeds Windows Basics d) None of the Above |