splitting array
Sorry I havent do this for quite a long while already, I intend to split a text into array
the text roughly looks like: Code:
a Code:
array=(echo $text | cut -d' my intention is to make a new text that looks like: Code:
b Thanks, Ted |
I am a bit lost? Are you saying you want to remove the 'a' line from the file? If so, can you not just use sed to delete the line?
|
Hi, thanks for the reply,
I did this: Code:
echo ${text#* |
Well I have no idea why but if your happy :)
|
use sed
Code:
sed -n '1!p' < text Code:
head -n1 < text |
thanks :) I am happy.
|
All times are GMT -5. The time now is 05:10 PM. |