Skip to content
Advertisement

Tag: bash

Extracting month from day using linux terminal [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I am having a text file containing a list of date and time just like the sample below – posted_at”

search and rename and mv all files from directories and subdirectories

i have a lot of files 30k directories, 21k files inside direrctories and subdirerctories of txt files with the same name i want to search for all files inside a lot of subdirerctories and than rename them to other unique name to move them to other directory. This command not showing the duplicate files Answer i find this helpful https://askubuntu.com/questions/1003554/how-to-rename-all-jpg-files-in-all-subdirs-wich-contains-dash-in-linux

uWSGI server does not run with & argument

I build a docker image which runs flask on an uWSGI server. I have a uwsgi.ini file with configuration. When I use CMD [“uwsgi”, “–ini”, “uwsgi.ini”] in the Dockerfile, everything works fine and the server runs, I can access my flask app via the browser. The only problem is that I cannot use the container’s bash while it’s running, as

How to follow latest log file with tail -f?

I have a dir that saves a fresh log file for each run, so I use the following command to follow the latest log file: So my question would be if there is any way to jump from one file to the next, if there is a newer log file available without having to stop the latest tail -f and

Bash script – delete old files

I have a script that uploaded a compressed file to an ftp, it is the code that I show below. This code works correctly, but I would like to adapt it so that once the file is uploaded, it deletes ftp files older than a week. Answer You can try this solution: Note: I have commented the Remove file line,

How to redirect specific exit code into a file in bash [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I currendtly have two if statements, each with a different exit code. How can I store these exit codes into a file? Is there anyway

Linux, Installation of FBX SDK, how to automatically confirm?

I am currently building a project in a (Singularity) container, and one of the dependencies is the FBX SDK (for building Qt static). The problem is that the installer of FBX reads the licence conditions and then asks to confirm those, and as the installation by recipe don’t allow me answer manually, it produces an endless repetition of the lines

Advertisement