Remove from

remove_from
cut

1 Bash[ | ]

Bash
Copy
STR="hello\nworld"
echo -e $STR | cut -f1 -dr
# hello
# wo
Bash
Copy
STR="hello\nworld"
STR2=`echo $STR | cut -f1 -dr`
echo -e $STR2
# hello
# wo

2 See also[ | ]