Hi
On a SunOs 5.10 this awk command does not work.
gives me this error
I don't know the awk version. What i looking for is an sed command that can do the same, or any other way of dooing it.
All i realy want to do is to get the echo everything before "_" out
ex.
Regards
Lars
On a SunOs 5.10 this awk command does not work.
Code:
echo $0|awk -F "_" '{print $1}'
gives me this error
awk: syntax error near line 1
awk: bailing out near line 1
I don't know the awk version. What i looking for is an sed command that can do the same, or any other way of dooing it.
All i realy want to do is to get the echo everything before "_" out
ex.
Code:
>echo Hello_world|awk -F "_" '{print $1}'
Hello
>
Regards
Lars