Oma2
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 23 articles for 0.302 sec
Stephane CHAZELAS wrote: > 2008-05-29, 20:12(+02), Dave B: >> Stephane CHAZELAS wrote: >> >>>> sed '3{/^ || $/d}' file >>> sed '3{/^ || $/d;}' file >>> >>> is the standard syntax. >> Uhm. GNU sed --posix happily accepts the version without semicolon.I cannot find >> where the standard states that the semicolon is mandatory (but I may just have >> missed that, of course). Can you provide     

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 29, 2008 17:25

Stephane CHAZELAS wrote: sed '3{/^ || $/d}' file sed '3{/^ || $/d;}' file is the standard syntax. Uhm. GNU sed --posix happily accepts the version without semicolon.I cannot find where the standard states that the semicolon is mandatory (but I may just have missed that, of course). Can you provide a pointer? Thanks. -- echo '0'|sed 's909=?1[9;s0?0oOo{)o0;st{to}ut;s*
Show full article (3.46Kb) · Show article thread
vakhariam@gmail.com wrote: > can we serch/replace by sed the following cases: > > if line no 3 is having the only text in it is " || " ( the double > quote is to make the text more readable ) but otherwise the blank > line's length is same as others. > > That should be removed by which combination of sed ?? sed '3{/^ || $/d}' file (if I understand correctly) > Can we use it for     

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 29, 2008 11:12

vakhariam@gmail.com wrote: can we serch/replace by sed the following cases: if line no 3 is having the only text in it is " || " ( the double quote is to make the text more readable ) but otherwise the blank line's length is same as others. That should be removed by which combination of sed ?? sed '3{/^ || $/d}' file (if I understand correctly) Can we use it for
Show full article (0.60Kb) · Show article thread
vakhariam@gmail.com wrote: > can we serch/replace by sed the following cases: > > if line no 3 is having the only text in it is " || " ( the double > quote is to make the text more readable ) but otherwise the blank > line's length is same as others. > > That should be removed by which combination of sed ?? sed '3{/^ || $/d}' file (if I understand correctly) > Can we use it for     

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 29, 2008 09:10

vakhariam@gmail.com wrote: can we serch/replace by sed the following cases: if line no 3 is having the only text in it is " || " ( the double quote is to make the text more readable ) but otherwise the blank line's length is same as others. That should be removed by which combination of sed ?? sed '3{/^ || $/d}' file (if I understand correctly) Can we use it for
Show full article (0.36Kb) · Show article thread
On Wednesday 28 May 2008 16:10, Ed Morton wrote: >> So it seems you just want to keep only lines common to both files, then >> >> awk 'NR==FNR{a[$0];next}; $0 in a && 1' file1 file2 > > Why "&& 1"? Ah! I messed up when pasting, thanks for pointing that out. > I think he actually wants to get every line from both files but with no > duplicates in which case he just needs: > > sort     

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 29, 2008 09:06

On Wednesday 28 May 2008 15:50, Dave B wrote: i could do something DIRTY like : for line in $(cat file1) do cat file2 | grep $line if [ $? -eq 0 ] then echo $line is in file2 /dev/null # do nothing else echo $line is not in file2 /dev/null # do nothing echo $line >/tmp/new_merged_file fi So it
Show full article (0.99Kb) · Show article thread
On Wednesday 28 May 2008 15:32, bull.titan@gmail.com wrote: > in fact, i wanna merge two files that can contain similar data, for > example : > > #shell# cat file1 > marie > paul > philippe > eric > keith > maman > papa > > #shell# cat file2 > marie > maurice > daniel > papa > paul > denis > olivier > dalibor > > > i could do something DIRTY like : > > for line in $     

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 29, 2008 09:04

Show full article (0.99Kb) · Show article thread
    

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 29, 2008 09:00

Show full article (0.99Kb) · Show article thread
    

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 29, 2008 08:59

Show full article (0.99Kb) · Show article thread
    

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 28, 2008 07:18

Show full article (0.78Kb) · Show article thread
    

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 28, 2008 07:04

Show full article (1.06Kb) · Show article thread
    

Group: comp.unix.shell · Group Profile · Search for Oma2 in comp.unix.shell
Author: Dave B
Date: May 28, 2008 06:50

Show full article (1.31Kb) · Show article thread
1 · 2 · 3 · next