Re: Problem mit cut
Andreas Pakulat wrote:
>> > echo test t | cut -f1 klappt nicht,
>>
>> ,----[ man cut ]
>> | -d, --delimiter=DELIM
>> | use DELIM instead of TAB for field delimiter
>> |
>> `----
>
> Ok, so schlau war ich natuerlich auch (habs nur vergessen zu erwaehnen
> ;-) und ein
>
> echo test t | cut -f1 -d=
>
> ergibt ebenso "test t"
Tja dann solltest du dich nochmal in das Bash manual einlesen;)
echo test t | cut -f1 -d' '
echo test t | cut -f1 -d ' '
echo test t | cut -f1 -d" "
echo test t | cut -f1 -d " "
echo test t | cut -f1 -d\ #man beachte das Leerzeichen hinter \
echo test t | cut -f1 -d \ #man beachte das Leerzeichen hinter \
Christoph
Reply to: