![]() Related Questions Latest Answer : The best way is to open a read only file. use SUDO, because you do not know what or who is the owner of the file in this scenario. ... Latest Answer : Both of these work.cat test.sh | grep ^$grep -v . test.sh ... Latest Answer : substring=${string_variable_name:starting_position:length} ... Latest Answer : cat test.txt | head -25 | tail -1 ... Latest Answer : search for the character n in filename and replace it with xyz.sed 's/n/xyz/g' filename ... What is the basic difference u find between a shell script and perl.I mean the advantages of one over the other. Read Answers (2) | Asked by : O.Sajit Latest Answer : set -u -a rm -f out2find $PWD -atime 0 -type f -exec ls -ltr {} ; | grep "`date '+%b %d'`" | tr -s " " | tr -d ":" > out2echo "-------Files Modified Today--------"cat out2 | while read linedo timechk=`echo $line | cut ... Read Answers (2) | Asked by : afzal Folks,I have peculiar kind of error. my script goes likecat inputfile> while read paramdoArray[$i]=$param y=`expr $y + 1`doneWhen i run script passing very large input file. script abends in the middle of execution saying "ksh: script out of range"Possible reason is max array element size is 4095 which is exceeded in my case. Now my question, is there any settings in shell which i can use to increase the max array element size.Guys please post ur suggestions.Thanks!Sharif.S Latest Answer : head -2 file.txt | tail -1Regardskamalesh ... Read Answers (6) | Asked by : Ralf Krauseman Latest Answer : please note that my original answer ate the quote signs, which I'm going to try to make sure get through this time:sed 's/\//g'And in case that gets eaten also, it's a reverse slash, then the less than (
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||