Search Results

Search: Posts Made By: maxvirrozeito
9,815
Posted By maxvirrozeito
Thank you for your answers ! It fixes my...
Thank you for your answers !
It fixes my problem

Max
9,815
Posted By maxvirrozeito
cut: get either one or two fields
Hello,

I would like to extract one or two fields of a line.

At the moment, I am extracting the first field of a line:
command | cut -f 1 -d '.' > file

The line can have two or three fields...
2,544
Posted By maxvirrozeito
[Problem fixed] Regular expression
I have solved the problem by looking for in only in the second field which works for my purpose.

grep -i " *&.*[.].*in.*[.]"

Max
2,544
Posted By maxvirrozeito
Regular expression
Hello,

I have a string of the form " &x.y.z"
I would like to grep all the lines when "in" can be found in either x or y. How to write the corresponding regular expression ? I have tried the...
6,437
Posted By maxvirrozeito
That's perfect !!!! Thanks a lot Max
That's perfect !!!!

Thanks a lot

Max
6,437
Posted By maxvirrozeito
Multiple search in multiple files
Hello,

I would like to perform a search of several different strings in different files. I have the ouput of a unix command X which is for instance:

aaa
bbb
ccc

and I would like to look...
5,074
Posted By maxvirrozeito
The solution with sed worked fine as well. ...
The solution with sed worked fine as well.

Thanks !!
Max
5,074
Posted By maxvirrozeito
Brilliant, that's working like magic ! ...
Brilliant, that's working like magic !

However, I don't understand at all the syntax of your code so I'll have a look at awk in further details.

Thanks
Max
5,074
Posted By maxvirrozeito
Yes, this is part of the process of updating many...
Yes, this is part of the process of updating many C files which cannot be reasonably made by hand.

by using the following:

sed '/#include/ a\
#include "myHeader.h"' input > ouput

it adds my...
5,074
Posted By maxvirrozeito
Appending a line in a file after a particular line
Hello,

I have got a C file in which I would like to add an include statement of my own.
There are already a few include statements and mine should come right after the last existing one (to be...
Showing results 1 to 10 of 10

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