$ var=’123456789′; echo ${var::}

substrings a variable starting at position.

If no offset given prints rest of the line

View this command to comment, vote or add to favourites
View all commands by totti

commandlinefu.com

by David Winterbottom (codeinthehole.com)

Tags: