• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2480
  • Last Modified:

read command in unix

A file f contains the characters: " a             b"

In a shell script, I do:

exec 3< ./f
read <&3 line
echo $line

The output is

"a b"

So, the question is: where are my spaces?
0
goph9998
Asked:
goph9998
1 Solution
 
TintinCommented:
echo "$line"

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now