How to append block string variable to file with bash script?

I would like to append the following to my ~/.bash_profile: # ————— # PERSONNAL EDITS # anaconda3 . /opt/anaconda3/etc/profile.d/conda.sh To do so, I use the script: #!/bin/bash app_str=\ ‘\n # —————\n # PERSONNAL EDITS\n \n # anaconda3\n . /opt/anaconda3/etc/profile.d/conda.sh’ echo -e $app_str >> ~/.bash_profile However, the result is the following: <lines above…> # ————— #…

Details

Traverse directories, compare the tree, delete files missing on one side only

Trying to figure out how to group together various find, sed, grep commands all together to remove any .mp3’s in the /out/ folder that do not have matching .flac’s in the /in/ folder. #!/bin/bash find /in>/tmp/in.txt sed ‘s/.flac/.mp3/g; s+/in+/out+g’ /tmp/in.txt>/tmp/inx.txt find /out>/tmp/out.txt grep -vxF -f /tmp/inx.txt /tmp/out.txt>/tmp/clean.txt while read line; do rm “$line”; done <…

Details

ParserError: Expected identifier, got ‘LParen’ in Remix simple auction using Solidity

pragma solidity ^0.4.22; The line highlighted in the error is require(bid2 > highestBid2); The code: pragma solidity ^0.4.22; contract SimpleAuction { address public beneficiary; uint public auctionEnd; address public highestBidder1; uint public highestBid1; address public highestBidder2; uint public highestBid2; uint public proportion; uint public bid1; uint public bid2; mapping(address => uint) pendingReturns; bool ended; constructor…

Details

Debugger in geany

I have problem with instaling debugger in geany This is my problem: > [email protected]:~/geany-plugins/debugger$ make Making all in > src make[1]: Entering directory > ‘/home/arwena/geany-plugins/debugger/src’ CC > debugger_la-bptree.lo CC debugger_la-breakpoint.lo CC > debugger_la-breakpoints.lo CC debugger_la-btnpanel.lo CC > debugger_la-callbacks.lo CC debugger_la-calltip.lo CC > debugger_la-dbm_gdb.lo CC debugger_la-dconfig.lo CC > debugger_la-debug.lo debug.c:53:10: fatal error: vte/vte.h: No such >…

Details