Search Results

Search: Posts Made By: phandy
203,882
Posted By phandy
Thanks a lot! perl works!:b: I used a very...
Thanks a lot! perl works!:b:

I used a very stupid method:
# echo "123 456 789 abc 111 abc 222 abc 333" | sed -e 's/abc/19345719374538/' -e 's/^.*19345719374538/abc/'
#abc 111 abc 222 abc 333ha...
203,882
Posted By phandy
Any idea?:o
Any idea?:o
203,882
Posted By phandy
Oh! I found that this command will delete until...
Oh! I found that this command will delete until the last occurance instead of first, meaning if

$ echo "123 456 789 abc 111 abc 222 333" | sed 's/^.*abc/abc/'

will return "abc 222 333".

Is...
203,882
Posted By phandy
Yes, it works! Many thanks Corona688:D
Yes, it works! Many thanks Corona688:D
203,882
Posted By phandy
How to delete all character before certain word
Hi,

For example, i have a string

"123 456 789 abc 111 222 333"

and I would like to delete all the characters before abc so that it becomes

"abc 111 222 333"

how can i do that in unix?...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 05:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy