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

replace a word with string in a file using shell

admin June 23, 2021

I have a file in which I have to convert the string “lock allpages” into STRING ” LOCATION ‘hdfs://LOCATION/DIRECTORY/TBL;’ ” . I tried sed but it’s throwing some error. can …

linuxscriptingshellunix
Linux

selecting required sql from script using shell scripting

admin June 23, 2021

I have a sybase ddl file having ddl’s of many tables.. but the issue is along wth ddl there are many other things and unnecessary index creation script and comments. Is there any way to extract only …

linuxscriptingshellunix
Linux

How can I store the file that find produces i.e the actual file and contents as a file and not the console output of find?

admin June 2, 2021

Currently I’m doing this to try and store the actual file and its contents the find command finds as I’m searching for a file named Myfile: find /Users/Documents -name Myfile > outputfile The …

bashfilefindlinuxscripting
Linux

How to pipe output of program as it runs into xxd?

admin January 4, 2021

I want to be able to see the output of my program in hex, as it runs, however if I pipe the output into xxd it will only print once the program has stopped running. These are the things that that I’ve …

bashlinuxscriptingshell
Linux

How can I use bash to gather all NFS mount points with multiple configuration files to check that each mount is writeable?

admin December 18, 2020

I am trying to create a script that will dynamically find all NFS mount points that should be writable and check that they are still writable however I can’t seem to get my head around connecting the …

bashlinuxscripting
Linux

How to interact with android device through a script?

admin September 21, 2020

I need a bump in the right direction here. I want to write a script that will scroll up or down, maybe unlock the screen ( no lockscreen security set ) every 30 minutes or so. Also if possible I’d …

androidandroid-scriptingandroid-shelllinuxscripting
Linux

create new directory with incremental version using bash

admin August 2, 2020

I need to generate new directories in incremental fashion. Below is the folder structure:- 1. Dockerfile 2. Makefile 3. manifests + 1.0.0 + 1.0.1 I want to fetch the latest version from …

awkbashlinuxparameter-expansionscripting
Linux

How to rename all directories , files and text in the files recursively using bash shell script in linux

admin July 28, 2020

i have rename all files and text in files and also should rename directories to the deepest level and it has to be done recursively i tried below two codes: code : #!/bin/bash cd /home/my_codes/…

bashlinuxscriptingshell
Linux

Delete files and folders in a directory which don’t match a text list

admin May 17, 2020

Let’s say I have a directory named dir. In that directory, I have these folders and files: folder1 folder2 folder3 file1.mp4 file2.mkv file3.mp4 I have a text file named list.txt, which has these …

bashlinuxscriptingshell
Arrays

PowerShell: Passing an ArrayList of Objects into another Script as an Argument

admin May 2, 2020

I am trying to pass an ArrayList that contains objects into another PowerShell script to execute something further. The error message that I am receiving is: “Cannot process argument …

argumentsarraylistarrayspowershellscripting

Posts navigation

1 2 … 9 Next
Privacy Policy