The UNIX and Linux Forums
>
Special Forums
>
UNIX Desktop for Dummies Questions & Answers
Help with Fixed width File Parsing
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Help with Fixed width File Parsing
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
05-19-2008
era
Herder of Useless Cats
Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
If the result contains spaces, you will need to quote the backticks, too.
Code:
year="$(echo "$zf" | cut -c185-188)" car="$(echo "$zf" | cut -c189-230)"
echo `echo`
as seen above is obviously a redundant, Useless Use of Echo in Backticks.
era
View Public Profile
Visit era's homepage!
Find all posts by era