Skip to content

Tutorial Guruji

Online Free Tutorials Guruji Guide & Materials – Solved Questions Answers

  • Home
  • Tutorials
    • Java
    • DBMS
    • Linux
    • for loop
    • Bitcoin Transaction Fees
    • Mathematics Real Analysis
    • Shell Script
    • Bitcoin Core
    • Bitcoin Security
    • Grammar
  • About Us
  • Contact Us
Home » Shell Script

Category: Shell Script

Shell Script Questions And Answers

Distinguishing files on the basis of first column’s content

Shell Script April 16, 2019

I have multiple tab-separated files with .cluster extension. I want to classify these files on the basis of their first column content using the following criteria: (2 and 3 are actual digits/content …

How to make `trap` know if the EXIT is after successful program finish or because of premature as an error or something

Shell Script April 13, 2019

PROBLEM: I have a shell program that I have been writing but I can’t find out how to make sure that trap is trapping for cleanup at the end or because of a error in some command, it cleans up either …

Renaming multiple paired files, deleting varying barcode character string in middle?

Shell Script April 13, 2019

I have a bunch of paired files with unneeded barcode tags within the middle of the file, for example: LIB008983_TRA00020080_TAAGGCGA-TATCCTCT_L001_R1.fastq.gz LIB008983_TRA00020080_TAAGGCGA-…

How to redirect program error to a file while using pipes

Shell Script April 11, 2019

I’m running a command on a Linux machine to backup my DB: (echo “`date`: START DUMPING”; db_dump.sh; echo “`date`: DONE DUMPING”) >>db_dump.log And in the db_dump.sh: pg_dump -v –dbname=mydb …

tar.zip error during save

Shell Script April 7, 2019

I made a save script, to save some directories in my /home. To do that I loop through the directories in /home, and launch a save for each of them. These directories contain jar files, and some .txt. …

How to detect NTFS/exFAT filing system type fronm script

Shell Script March 20, 2019

User has a (incremental) backup script using rsync, to external device. This was erroring on an SSD he had. Turns out (I had no idea) his device was formatted exFAT. Unfortunately that means I need …

Specific fields from macOS Command “diskutil apfs list”

Shell Script March 19, 2019

would appreciate inputs on the subject. I have the output from the macOS (High Sierra;FileSystem :APFS) command – diskutil apfs list. Sample output is given below: +– Container disk5 1B5FE22B-6F4F-…

Generating a report from bash output

Shell Script January 17, 2019

I am currently trying to write a script in Bash that can run a set of unit/integration tests. I have that part working, but what I need now is to be able to output a summary at the end. I have been …

Function to conditionally set a variable read-only

Shell Script October 29, 2018

If I had a script which sets variables read-only to some odd values, and sets errexit because of other unsafe operations: #!/bin/bash set -e declare -r NOTIFY=$(case “$OS” in (macosx) echo …

Rename a csv tab from UNIX bash script

Shell Script September 19, 2018

I have CSV file that is generated from a bash script: UNIX_REPORT.sh. When you open CSV the file on the windGrr side with excel, the tab (or sheet) in the lower left corner is named UNIX_REPORT.sh. …

Posts navigation

Page 1 Page 2 … Page 25 Next page>
Skip to footer

Recent Articles

  • Accessing variables from different functions
  • Push this.props’ value to the state of child component
  • How to access state/redux store in the useEffect’s cleanup function?
  • Using v-model to dynamic variable
  • Knockout.js using foreach and $index with if binding

What You Want To Learn?

  • Android
  • AngularJS
  • Bitcoin Core
  • Bitcoin Exchanges
  • Bitcoin Security
  • Bitcoin Transaction Fees
  • Bitcoin Transactions
  • C#
  • C++
  • DBMS
  • for loop
  • Grammar
  • HTML
  • Java
  • JavaScript
  • jQuery
  • Linux
  • Mathematics Real Analysis
  • Node.js
  • PHP
  • Python
  • React JS
  • Shell Script
  • Travel
  • WordPress

Contact Details

Email: [email protected]
Web: tutorialguruji.com
Tutorial Guruji