• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 530
  • Last Modified:

SED

Does anyone can explain these commands for me? I am just not sure about what they mean.

1) sed -e $(2) $(1) > $(TEMP)/$(notdir $(1));

2) csedupdate = if ! grep --silent -E -e $(2) $(1); then $(call sedupdate,$(1),$(3));fi

3)ifeq ($(TGENV),arm)
                                $(call eat,$@)(cd $(NESSUSDIR);\
            PLATFORM=$(NESSUS_PLATFORM) BUILDDSP=false DSPIMAGE=false TESTAPP=false make -s setup)
endif

And what's the slash \ after semicolon means? And when we need that?

Thank you!
0
chenzhepeter
Asked:
chenzhepeter
  • 3
  • 2
1 Solution
 
TintinCommented:
Do you know what programming language this is?
0
 
chenzhepeterAuthor Commented:
I think it's the makefile for C
0
 
TintinCommented:
Ahh, that makes sense.

A backslash after a semi-colon means a line continuation.

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
chenzhepeterAuthor Commented:
I think the first one is a sed UNIX command but I don't know how the substitution can be > $(TEMP)/$(notdir $(1)); and also don't understand the notdir here.
0
 
ahoffmannCommented:
1) need to see the rule (target: dependency); $(1) and $(2) are probably dependencies
2) csedupdate will be assigned the result of the if command (this is strange and probably a special feature of your make)
3) ifeq is make's conditional if and tests the result of the following argument
  the final \ (which must not be followed by anything else than a newline) escapes the newline so that the next line gets part of the current one and completes the command there
0
 
chenzhepeterAuthor Commented:
Thanks, I think that explains me alot.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now