Re: awk or sed

2011-04-25 Thread Greg Wooledge
On Sat, Apr 23, 2011 at 11:07:06AM +0430, ali hagigat wrote: > I have a makefile and I want to print each word of the variable, .VARIABLES > on a separate line. > It seems that the previous simple solution of Mr. Johnson here does not > work, means: printf "%s\n" $var make(1) is a separate progra

Re: awk or sed

2011-04-22 Thread ali hagigat
g src/arch/i386/Makefile.inc >> means some words separated by spaces. I want to print each word on a >> separate line. I think I have to use "awk" or "sed" string processing >> tools. I wonder if anybody have experience with them or any other >> means to do it. >

Re: awk or sed

2011-04-06 Thread Steven W. Orr
On 4/5/2011 11:09 PM, ali hagigat wrote: I have a variable like this: var1=Makefile .xcompile /root/build/.config src/arch/i386/Makefile.inc means some words separated by spaces. I want to print each word on a separate line. I think I have to use "awk" or "sed" string proces

Re: awk or sed

2011-04-05 Thread Andres Perera
On Tue, Apr 5, 2011 at 10:39 PM, ali hagigat wrote: > I have a variable like this: > var1=Makefile .xcompile /root/build/.config src/arch/i386/Makefile.inc > means some words separated by spaces. I want to print each word on a > separate line. I think I have to use "awk

Re: awk or sed

2011-04-05 Thread ali hagigat
gt;> means some words separated by spaces. I want to print each word on a >> separate line. I think I have to use "awk" or "sed" string processing >> tools. I wonder if anybody have experience with them or any other >> means to do it. > > p

Re: awk or sed

2011-04-05 Thread Chris F.A. Johnson
On Wed, 6 Apr 2011, ali hagigat wrote: I have a variable like this: var1=Makefile .xcompile /root/build/.config src/arch/i386/Makefile.inc means some words separated by spaces. I want to print each word on a separate line. I think I have to use "awk" or "sed" string proces

awk or sed

2011-04-05 Thread ali hagigat
I have a variable like this: var1=Makefile .xcompile /root/build/.config src/arch/i386/Makefile.inc means some words separated by spaces. I want to print each word on a separate line. I think I have to use "awk" or "sed" string processing tools. I wonder if anybody have experie