hello,
i need to cut a string in unix but not from file ,, from variable, i searched on special line , and i need a specific data from this line , i get it on variable, how can i cut data that i need ??? merci
if:
somevariable="some-string here"
then:
echo $somevariable |cut -d"-" -f1
output will be:
some
merciiiiiiiiiiiiiiiii