Menu
NEWBEDEV
Python
Javascript
Linux
Cheat sheet
NEWBEDEV
Python 1
Javascript
Linux
Cheat sheet
Contact
sh equivalent of __FILE__
Try using
$0
.
!/bin/sh
cd $(dirname $0); __DIR__=$(pwd)
Tags:
Php
Shell
File
Related
What is the preferred way to specify an HTTP "Location" Response Header in Spring MVC 3?
Hide/encrypt password in bash file to stop accidentally seeing it
How can I determine the "bit-ness" under which my C# application runs?
PostgreSQL Index Usage Analysis
Javascript: How to have value in string represented by %s and then replaced with a value
#pragma pack effect
Do inline functions have addresses?
Resharper — fix multiple issues
How to plot data without a separate file by specifying all points inside the Gnuplot script?
Problems using UpdateProgress
Setting value of a HTML form textarea?
How to send stdout to the user when running SVN pre-commit hook
Recent Posts
Pandas how to find column contains a certain value
Recommended way to install multiple Python versions on Ubuntu 20.04
Build super fast web scraper with Python x100 than BeautifulSoup
How to convert a SQL query result to a Pandas DataFrame in Python
How to write a Pandas DataFrame to a .csv file in Python