help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] first part


From: Val Krem
Subject: [Help-bash] first part
Date: Sat, 21 May 2016 12:44:48 +0000 (UTC)


Hi all,
I  have field  that look like the following
124-20-25
014-2012-26
1024-212-27
1-001-29

I want extract the first part of the string,  prior to the first "-"
124
014
1024

1

How do I do I that?
Thank you in advance


reply via email to

[Prev in Thread] Current Thread [Next in Thread]