I have a file with function signatures like this:
void something(float a, int b, char c);
Using shell scripts or similar how would you process this, so as to end up with:
float int char
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Would this work? I had to do a bit of gymnastics with the IFS variable and some for loops, but it seems to work fine for me. If some of the “void” lines have leading spaces or tabs, you’ll have to adjust the sed expression however…
test.txt
test.sh
Result: