How to Delete the First Blank of the First Col?

Hi to all.

In the following example, how can I delete the first blank of the first col? (using shell scripting)

 first second third fourth
 fifth sixth seventh eighth

Thank's for reading.

sed 's/^ //' infile >outfile
1 Like
cut -c2- input > output

Thank you both. Both solutions works.

Or:

awk '$1=$1' file

Actually I prefer don't use AWK. Anyway, thanks for your reply.