Linked Questions

0 votes
1 answer
181 views

Printing a variable containing a hash doesn't give me any output [duplicate]

I have a file with contents like this: FOO=#{Foo} # may contain blank lines or lines with comments BAR=#{Bar} Now, I want to do some stuff with those that requires me to consider FOO and #{Foo} as ...
Tomas Aschan's user avatar
  • 59.8k
102 votes
16 answers
253k views

Why won't my docker-entrypoint.sh execute?

My ENTRYPOINT script doesn't execute and throws standard_init_linux.go:175: exec user process caused "no such file or directory". Why so? Doesn't Work $ docker build -t gilani/trollo . &&...
Amin Shah Gilani's user avatar
48 votes
4 answers
57k views

Python script gives `: No such file or directory`

I have several python scripts which work just fine but one script has (as of this morning) started giving me this error if I try to run it from the bash: : No such file or directory I am able to ...
Bas Jansen's user avatar
  • 3,343
26 votes
4 answers
21k views

npm package.json bin won't work on Windows

I am trying to start my cli tool via the package.json bin property. I have the following: ... "name": "mycli", "bin": "./bin/mycli", ... When I open the cmd in the package path and type: "mycli" it ...
funerr's user avatar
  • 7,946
33 votes
4 answers
55k views

ERROR: missing data for column when using \copy in psql

I'm trying to import a .txt file into PostgreSQL. The txt file has 6 columns: Laboratory_Name Laboratory_ID Facility ZIP_Code City State And 213 rows. I'm trying to use \copy to put the ...
nathanmgroom's user avatar
19 votes
4 answers
14k views

dos2unix doesn't convert ^M

I exported results in a text file from a program running on Windows 7, and copied the file on Xubuntu 14.04. In a terminal, I ran dos2unix file.txt, which tells me converting file out_mapqtl.txt to ...
tflutre's user avatar
  • 3,496
4 votes
3 answers
4k views

Elastic Beanstalk - Cron job is running but not executing

This is my very first time running a cron job on Elastic Beanstalk (EB). After deploying my code, it seems the cron job is created and running but the PHP script is not executing correctly. Here's my ...
Ben Sinclair's user avatar
  • 3,956
-1 votes
2 answers
2k views

Can't get new line to work using echo in bash script

This is driving me nuts. nl=$"\n" message="bla bla $some_var such $another_var ${nl} wow $another_var" echo -e "$message" > file.txt Just prints: bla bla some_var such another_var wow ...
user3079979's user avatar
3 votes
2 answers
794 views

find: missing argument to -exec when run from file but not from cli

I have a file that looks like this #!/bin/bash find . -type f -exec chmod 644 {} \; find . -type f -exec chown vagrant:www-data {} \; find . -type d -exec chmod 755 {} \; find . -type d -exec chown ...
wawa's user avatar
  • 4,996
1 vote
1 answer
2k views

How to stop Prettier from removing ending newline

This is a weird one as everything I have read seems to indicated the opposite, that Prettier will always add a newline and there's nothing the user can do about this. However, somehow my install of ...
Devildude4427's user avatar
0 votes
2 answers
2k views

Shebang line for python does not work at all

It is a tough problem. There are several topics for it. But none of them helps me. I added #!/usr/bin/env python3 (or python), and run test.py, it reported that zsh: command not found: test.py. I was ...
William Song's user avatar
3 votes
2 answers
725 views

Rbuildignore not ignoring .git

I'm updating a package that is currently on CRAN. Running devtools::check() locally consistently gives the WARNING > checking package subdirectories ... WARNING Found the following directory ...
Matt Tyers's user avatar
  • 2,205
0 votes
1 answer
651 views

Is there a difference between linux and windows version of SQLite

As in title, my script works on my Windows machine but doesn't work on my Ubuntu server. It can't process my SQL command: import sqlite3 conn = sqlite3.connect('data.db') c = conn.cursor() c.execute(&...
Dano's user avatar
  • 55
2 votes
2 answers
551 views

How to ignore alternate lineterminator in pandas read_csv?

I have a text file having lot of rows with 6 columns in each row but there is a \n after every fourth column as well as every 6th column, something like: Row 1 ---> 1 2 3 4\n 5 6\n Row 2 ---> 7 ...
Himanshu Singh's user avatar
0 votes
2 answers
94 views

Use values in input csv to search a second csv and return values

I have an input csv with 3 columns and many rows. For each row, I want to use the string in each column to sequentially search a second csv. When a match is found I want to return columns from the ...
JVGen's user avatar
  • 551

15 30 50 per page