Search Results

Search: Posts Made By: frans
19,067
Posted By KenJackson
I think you're missing a dot. ...
I think you're missing a dot.
netId1=${host1#$SUBNET.}
netId2=${host2#$SUBNET.}
5,212
Posted By Scrutinizer
The use of eval to execute input data is...
The use of eval to execute input data is dangerous stuff because it allows a malicious user with access to the data file to execute any code as the user who executes the script.

Alternative shell...
3,119
Posted By ygemici
a liitle addition :)
a liitle addition :)
25,883
Posted By kshji
Using shell builtin array properties. ...
Using shell builtin array properties.

#!/bin/ksh or bash
F="name_abc_20100531_142528.txt"
IFS="_." # delimiters are _ and .
f=($F) # parse string to the array f, id 0 = 1st fld
echo "Date...
Showing results 1 to 4 of 4

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