9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Does anyone know how to find length of multi dimension array
of following type
A Afor simple array I is to do
for (i in A)n++ to find length of array but if it is multi dimension how to find the length ? (2 Replies)
Discussion started by: nex_asp
2 Replies
2. Shell Programming and Scripting
Hi,
I have a big file say abc.csv. And in that file, I need to find lines whose length is less than 50 characters. How can it be achieved? Thanks in advance.
Thanks (4 Replies)
Discussion started by: Gangadhar Reddy
4 Replies
3. Programming
Hi all,
We use strlen() fun provided by library to find the length of a string.
Looking inside of it, it has some different mechanism to find the length of string.
Normally, we scan the string byte by byte until the '\0' character. It takes a logn time to count length.
The Library strlen()... (2 Replies)
Discussion started by: yogeshrl9072
2 Replies
4. Shell Programming and Scripting
Hey,
I got a question: how do I find the length of a path ?
this is the context:
I used this funtion find:
DIR="/home/name/directory"
find DIR -name "*.extension"
The output is then:
/home/name/directory/filename.extension
What I'd like to have is only the last part:... (3 Replies)
Discussion started by: Miki1579
3 Replies
5. Shell Programming and Scripting
Hi,
I want to find the length of each line(including all the characters, spaces etc.) in a file and check if all the lines are of same length using a ksh script. Please help. Thanks in advance. (7 Replies)
Discussion started by: Suryaaravindh
7 Replies
6. UNIX for Dummies Questions & Answers
I want to find out the record length of a fixed length file? I forgot the command. Any body know? (9 Replies)
Discussion started by: tranq01
9 Replies
7. Shell Programming and Scripting
Hi frnds,
i have a file which contains multiple lines. each line size may come around 64MB. and i want to read line by line and nee to find the length of each line,
at present am doing it in the following way,
while read LINE
do
len=`expr length "$LINE"`
# and using the variable... (7 Replies)
Discussion started by: smr_rashmy
7 Replies
8. Shell Programming and Scripting
Dear All,
To find the length of the longest line from a file i have used wc -L which is giving the proper output...
But the problem is AIX os does not support wc -L command.
so is there any other way 2 to find out the length of the longest line using awk or sed ?
Regards,
Pankaj (1 Reply)
Discussion started by: panknil
1 Replies
9. UNIX for Dummies Questions & Answers
Can some please help me? Want to find files over 35 characters in length? I am running HPUX. Would it be possible with find?
Thanks in advance (8 Replies)
Discussion started by: J_ang
8 Replies