10 More Discussions You Might Find Interesting
1. Programming
Is there a way to extract chinese words from a text written in an European Language? I want to create a glossary and finding a way would make me save time!
Thank you! (3 Replies)
Discussion started by: ettore8888
3 Replies
2. Shell Programming and Scripting
Hi, I am trying to permutate each column (Except for IDS).
file.txt
FID IID TOAST1 TOAST2 TOAST3
ID3 ID3 1 -9 2
ID4 ID4 2 1 1
ID1 ID1 -9 -9 1
ID8 ID8 1 1 -9
ID12 ID12 1 2 2
for toast1 column, there are two 1's, two 2's and one -9. Having the same number of denominations,... (2 Replies)
Discussion started by: johnkim0806
2 Replies
3. Shell Programming and Scripting
Hi All!
can anyone help me with this code?
I want to count words or letters in every line with
if(count>20){else echo $myline}
awk '/<script /{p=1} /<\/script>/{p=0; next}!p' index.html | while read myline; do
echo $myline
done
Thank you !!! (3 Replies)
Discussion started by: sanantonio7777
3 Replies
4. Shell Programming and Scripting
#!/bin/bash
# permutation_combination.sh
# Version: 2.0
# Author : YongYe <complex.invoke@gmail.com>
arg0=-1
argv=${3}
number=${2}
eval ary=({1..${1}})
length=${#ary}
percom(){ nsloop i ${1} number${2} ${3} ${4} ${5}; }
invoke(){ echo $(percom ${argu} nsloop -1) prtcom $(percom... (1 Reply)
Discussion started by: complex.invoke
1 Replies
5. UNIX for Advanced & Expert Users
Hello All,
My requirement is to get test between two words START & END, something like html tags
Eg. Input file:
START
Line1
Line2
Line3
CLOSE
START
Line4
Line5
Line6
END
START
Line7
START
Line8 (7 Replies)
Discussion started by: konerusuneel
7 Replies
6. Shell Programming and Scripting
So if I have an awk statement that is basically just looking at the NF at if its more than 2, then print out the first 2 words, and all the rest on another line. I know that $1 and $2 are the first two fields, but how would I symbolise telling it to print all the other fields regardless of how many... (11 Replies)
Discussion started by: linuxkid
11 Replies
7. Shell Programming and Scripting
hi
I have posted it earlier but i was unable to put my exact problem.This time posting in parts.
I have a text file which i had transferred to UNIX.It has strings like:
alter table table_name add (column_name);
as well as modify options.
now i need to read the table name between alter... (3 Replies)
Discussion started by: alisha
3 Replies
8. What is on Your Mind?
Hi to all of you guys, I'm new here...
May this thread fits on this section. A friend of mine gave me this enigma to do, written in excel. I attach the file below, name New.xls.
Enigma:
There are 10^20 possibilities of tables (Table1, Table 2, Table 3, Table 4, Table 5,...), with ten rows (row... (3 Replies)
Discussion started by: lucky7
3 Replies
9. Shell Programming and Scripting
hi sorry, newbie for scripting..
the text file: abcdefghijk%%$%^U^%234454234
I got awk script:
awk ' ($1 == "abcd")
the output only show: abcd
I tried using asterix: awk ' ($1 == "abcd*") but same output abcd only...
how can I get all of the line ?? (6 Replies)
Discussion started by: flekzout
6 Replies
10. Shell Programming and Scripting
Hi all,
Please some help over here. I have a Sales.txt file containing info in blocks for
every sold product in the pattern showed below (only for 2 products).
NEW BLOCK
SALE DATA
PRODUCT SERIAL
79833269999 146701011945004
.Some other data
.Some... (17 Replies)
Discussion started by: cgkmal
17 Replies