Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: scripting

Linux

Raise docker container and set new terminal with a command inside it

admin March 27, 2020

I am trying to: raise docker container open new terminal in this new terminal, move to docker container shell run a command here is my script (at this point only docker-compose up is running, then …

bashlinuxscriptingshell
Linux

Commands will not pass to CLI after logging into new user with sudo su – user

admin December 10, 2019

Obligatory ‘first post’ tag. Issue: Commands will not pass to command line after entering password for a sudo su – userB I am writing a script in bash that requires to be run as a specific user. …

bashlinuxscriptingshellssh
Linux

Rename files in multiple directories with bash [closed]

admin November 13, 2019

Lets say I have the following directory structure in Linux dir1 ……..file1 dir2 ……..file2 dir3 . . . dir x …… file x How can I rename all files file1-filex to the same name file?

bashlinuxscriptingshell
Linux

Script that make folders and files in every folder

admin November 6, 2019

Do you have any idea how would a script in shell would look like with the following conditions: When executed, it has to make Folders with specific numeration In every folder, it has to make blank …

linuxscriptingshell
Linux

Problems running first shellscript

admin April 23, 2019

I’m trying to create my first shell script in bash. I’ve created the code and I’ve managed to save the script in my home directory but it wont run. At first I try running it from the home directory …

bashlinuxscriptingshell
Linux

How to swap only numeric values in each line

admin April 22, 2019

I need to swap only numeric values in each line after specific string “PIC” using sed. For example: hello PIC A(12), and this PIC B(11) The desired output is : hello PIC B(11), and this PIC A(12) …

bashlinuxscriptingsed
Linux

Looping through files in a dir; Pulling out filenames to replace string(s) in existing files

admin March 29, 2019

I have a directory of markdown files that I’m trying to accomplish the following with: Grab the filename of the markdown file and store it in a variable Take that variable and replace a series of …

bashlinuxmacosscripting
Linux

Command displayed correctly, but then executed differently

admin February 1, 2019

I have the following code to tag my FLAC files with their artist: #!/bin/bash # This script gets called with a directory of flac-audio-files to tag # # The files MUST have a filename of format “…

bashlinuxscripting
Linux

How can I insert multiple lines below a given line in sed with the line containing slashes

admin November 9, 2018

I’m trying to insert the following lines below a line in my file: ThisIsATest The line I want to insert these below is This is a …

bashlinuxscriptingsed
Linux

Executing multiple Bash commands after OR

admin November 9, 2018

I’m writing a Bash script to install some software; Is there a way to create a one liner that executes multiple commands after an OR? Basically, what I want to do for error checking is is this: sudo …

basherror-handlinglinuxscripting

Posts navigation

Previous 1 2 3 … 9 Next
Privacy Policy