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
I have a makefile and I want to print each word of the variable, .VARIABLES on a separate line. This is the content of .VARIABLES: .VARIABLES=wrote: > 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

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 processing tools. I wonder i

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" or "sed" string processing

Re: awk or sed

2011-04-05 Thread ali hagigat
Very nice . It worked. I want to study your book. Thank you. Regards On Wed, Apr 6, 2011 at 7:47 AM, Chris F.A. Johnson wrote: > 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 s

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 processing tools. I wonder if