ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
im not sure if this is the place for this, but oh well. here is what im trying to do. i have a list that is in this format:
(423) smokeywrz
(407) Wonderbox
(359) Dark Sian
(347) ScorpioNinja
im trying to delete everything in the parentheses (and the parentheses themselves) so im left with just the names. is there a command that i can use to delete the first few characters in every line? i tried tr and sed, but i failed. basically, im just really confused
You can try with cut, but YMMV with your understanding. I believe this might live better in "programming", however I'll leave it up to you whether it gets moved or not (simply reply with your request).
yeah, that would be cool if you moved it. i tried with cut, but it always says this:
cut: invalid byte, character or field list
Try `cut --help' for more information.
im not sure the syntax, even though it says in the man pages. if i wanna remove (423) and stuff like it, i would use (*) right? but im not sure how to do that, and i tried as many combinations of things i could. thanks.
Originally posted by poobeany yeah, that would be cool if you moved it. i tried with cut, but it always says this:
cut: invalid byte, character or field list
Try `cut --help' for more information.
im not sure the syntax, even though it says in the man pages. if i wanna remove (423) and stuff like it, i would use (*) right? but im not sure how to do that, and i tried as many combinations of things i could. thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.