Search Results

Search: Posts Made By: Corona688
5,216
Posted By Corona688
Put them in exclude.txt and use grep -f -F. ...
Put them in exclude.txt and use grep -f -F.

for FILE in *.txt
do
sed 's/[^a-zA-Z \r\t]//g' "$FILE" |
tr -s ' \r\t' '\n' |
grep -v -F -f exclude.txt |...
5,216
Posted By Corona688
I'd go about that in a slightly different way. ...
I'd go about that in a slightly different way.

1) Strip out all non-alphanumeric and whitespace characters
2) Change all whitespace into newlines
3) Sort
4) uniq -c
5) Sort again to get the...
5,216
Posted By Corona688
It means what it says. (( )) brackets are used...
It means what it says. (( )) brackets are used for arithmetic expressions. If you want to do things like comparing strings, use [[ ]].

[[ ${a[$i]} != "frn2c" ]]
5,216
Posted By Corona688
I get this. $ ./fator.sh 1 2 3 4 1 2 3 4 No...
I get this. $ ./fator.sh 1 2 3 4
1 2 3 4
No of arguments: 4
length of array is: 4
k[0] = 1
a[0] =
k[1] = 2
a[1] = 2
k[2] = 3
a[2] =
k[3] = 4
a[3] =

$ What am I supposed to be seeing...
Showing results 1 to 4 of 4

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