explication


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting explication
# 1  
Old 01-15-2008
explication

hi all,

what mean this command

sed'/^[]*$/d'

thanks
# 2  
Old 01-15-2008
your command would produce a sed syntax error; check your command once again
# 3  
Old 01-15-2008
sed'/^[]*$/ d'
# 4  
Old 01-15-2008
If you really have some command named 'sed/^[]*$/ d' you will run that command without passing any arguments to it. You probably wanted to run the sed command passing an argument to it. You will need a space or tab between the word "sed" and the argument to do this. Then the sed command will see the rest of the line as a sed command and choke on it. The presence or absence of a space before the d does not help. The problem is that the empty braces are illegal.

You know, you could have simply tried it...
Code:
$ sed '/^[]*$/ d'  datafile
sed: 1: "/^[]*$/ d": unbalanced brackets ([])
$

# 5  
Old 01-15-2008
allright

there's a sapce after sed
but i don't understand what that command do ??
i run it but nothing
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Solaris

explication of forcedirectio

People what is forcedirectio? I know is something about the buffer of a filesystem. Thank you for your time (2 Replies)
Discussion started by: enkei17
2 Replies
Login or Register to Ask a Question