Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Extra Space in output - remove

$
0
0
Hi All

I am trying to perform the below operation -
Code:

count=`cat abc.txt | wc -l`
 
echo$count
 
5
 
Head=Start"$DATE"00000"$count"File
 
echo $HEAD
 
START15020300000 5File

There is a space coming before 5 which is not needed . How to ignore that .

Viewing all articles
Browse latest Browse all 16232

Trending Articles