Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

added 93 characters in body
Source Link
cuonglm
  • 158.3k
  • 41
  • 342
  • 421

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

deleted 65 characters in body
Source Link
cuonglm
  • 158.3k
  • 41
  • 342
  • 421

You have used process substitution, not command substitution.

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

You have used process substitution, not command substitution.

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

Using Here-Document and Command Substitution is the standard way to go in this case:

grep '^[a-zA-Z.:]' <<IN \ | sed -r '/^(rm|cd)/d' \ | uniq -u \ > "$filepath" $(cat -- "$filepath") IN 

For other questions, they were explained in many questions before:

Source Link
cuonglm
  • 158.3k
  • 41
  • 342
  • 421
Loading