Search Results

Search: Posts Made By: ambijat
5,215
Posted By ambijat
Re: In continuation
cat ${a[$i]} | sed 's/\([[:space:]]\)/\1 \n/g' | sed 's/^[ \t]*//' | sed \
's/[ \t]*$//' | sed '/^$/d' | grep -v -F -f exclude.lst | tr -cd '[:alnum:] [:space:]'| sort \
| uniq -c | sort -nr | head...
5,215
Posted By ambijat
My problem is that I need specific array of words...
My problem is that I need specific array of words that should get omitted and that array you see at the bottom of the modified one. It executes for one file at a time and it should do before sorting...
5,215
Posted By ambijat
In continuation
Thanks! the square braces did the trick, now here is one more thing!
Compare the two scripts, the first one gives the results, the second one does not.

#!/bin/bash
# program for data mining
...
5,215
Posted By ambijat
some issues with file renaming with arrays
Hi! guys! again with some problem solving issue. The problem is that I have few files in a folder some are with extension .txt and some are not so how to put them all with .txt extension minus the...
5,215
Posted By ambijat
Array is needed for further using as input...
Array is needed for further using as input values.

---------- Post updated at 01:27 PM ---------- Previous update was at 01:24 PM ----------

what is the technical difference in arrays, a[@] and...
5,215
Posted By ambijat
cannot locate the mistake!
Hello friends! this is again some work on creating factorial. I am unable to locate the mistake, it gives very unique output. Kindly, have a look and sort it for me.

#!/bin/bash

fator(){
j=$((...
5,215
Posted By ambijat
Well I re-wrote the whole thing as follows and it...
Well I re-wrote the whole thing as follows and it neatly gives me the required results. I look forward to improvements from you. Thanks.

#!/bin/bash

fun()
{
j=`expr 1 + $1`
z=1
f=0
for ((...
5,215
Posted By ambijat
Well I take that as good practice but I really...
Well I take that as good practice but I really did not find program behaving any different.
My problem is with this part below.
b[$i]=$(fun $d)
I want that function to be used for creating...
5,215
Posted By ambijat
Arrays and functions
Hi Guys! I need to solve this.
I want an array to be created by a certain calculation for which I created a function. Now this array is not getting created. See script below I want array b to be the...
Showing results 1 to 9 of 9

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