Search Results

Search: Posts Made By: Ravi Bhagat
2,080
Posted By Ravi Bhagat
#! /bin/bash wrd=`cat file.txt` rr=( $(echo...
#! /bin/bash
wrd=`cat file.txt`
rr=( $(echo $wrd | sed 's/,/ /g' ) );
len=${#rr
};
for (( i=0;i<$len;i++ ))
do
temp=${rr[$i]};
grep $temp test.txt;
done
1,875
Posted By Ravi Bhagat
please run and let me know.
#! /bin/bash
list=(`ls`);
j=0;
len=${#list
};
while [ $j -lt $len ]
do
mv ${list[$j]} $(echo ${list[$j]} | sed 's/linux/unix/g');
j=`expr $j + 1`;
done
Showing results 1 to 2 of 2

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