Search Results

Search: Posts Made By: aishu
3,503
Posted By aishu
script for deletion using wildcards
find ./ -name t\* | sed "s@^./@@" > .filestobedeleted

j=$(wc -l < .filestobedeleted)

typeset -i cnt=0

typeset -i i=0

while read line

do

myarray[$cnt]=$line

((cnt = cnt + 1))
...
3,937
Posted By aishu
passing paramaters to a shell variable
could some one tell me, how could i pass the wilcard notation given as input to variable $1 which acts as variable that matches files in the directory and the delete them.
Showing results 1 to 2 of 2

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