Can someone tell me how to print a dollar amount (i.e. 1140.95) as 114095?
spowel4
0
Newbie Poster
Recommended Answers
Jump to Posthello,
Via awk I presume...
echo 1140.95 | awk -F. '{ print $1 $2 }'
-F tells it the field delimiter. But I have a feeling you are looking for something a little different. Can you post the actual line you are trying to parse and what …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.