Search Results

Search: Posts Made By: man4ish
66,386
Posted By man4ish
Bad substitution error in shell script
I have script data.sh which has following error.

Script Name : data.sh


#!/bin/sh
infile=$1

len=${#infile}
echo $len

texfile=${infile:0:$len-4}
echo $texfile


run command
...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 04:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy