When you want to study a language to its depth, you have to have strong basic skills and then you can use the shortcuts. Like when I studied ansi c, I didn't use all the <string.h> functions, I wrote them by myself.
And as you can see, I cannot solve this particular problem, so I have to learn this in order to progress.
In csh, there may be no solution. Progress is moving to a real scripting language.
Quote:
Also, cshell is a basic script language.
No, it's not. It is a half-baked scripting language, and it is not used for serious scripting. It is not even required to be present on a UNIX system.
In a POSIX shell, your problem is trivial.
Quote:
I will move on to more advanced languages when I feel I have enough knowledge.
Wow, Bill Joy is not very popular in here, heh?
Thanks for believing in me, but you've made me even more anxious to find out the answer (though I will move on, I promise).
I've read all the articles that have anything to do with c shell.
And they don't say that there isn't any solution, they say that there is a solution, but it's messy, long and ugly.
But I have the solution to my problem, and I'll write it down for all the future head-breakers. It is so simple, and I can't believe I didn't think about it myself (McCartney says it better - "With a little help from my friends"):
When you want to compare a word from a column in one file to a word from another column in another file, you simply do this (for any i, j you choose):
So what was my head-on-the-wall-banging about?
Well, I thought about doing that, but since there isn't any single-charactered showcase for enter (\n) (for what I know of), I didn't think it would work. So what's the trick? The cut command, by definition, goes through each line until it reaches the end of the file, so out of each line it only takes the word in your chosen field and puts it in the list by order.
If there's anyone who wants to read the full program, you're welcome to leave me messages with your e-mail.
What's the lesson? Always check your ideas before eliminating them.
Florida State University, Tallahassee, FL USA, Dr. Whalley, COP4342
1. The problem statement, all variables and given/known data:
Create a lex specification file that reads a C source program that ignores keywords and collects all identifiers (regular variable names) and also displays the line... (3 Replies)
Hello,
I was reading Heuritics text and came across an algorithm below. Finding hard to analyze it can any one help me out below...
How to analyze if I take say no. of types are 5 and each type has say 20 coins.
thanks.
Let {c1, c2...cn=1} be a set of distinct coin types where ci is... (1 Reply)
Hi Admins,
I need your help to analyze the cpu usage of our main server. I have shared below, CPU usages during busy hours and non busy hours.
CPU usage is always full at busy hours. Users always complaints about slowness. This server is a lpar partition and configured as uncapped mode.
... (7 Replies)
Hi List,
Could someone please point me into the right direction with the following:
I have a file containing a list of street addresses.
I need to sort all the street addresses with the same number to a new file containing the street name and corresponding number.
So:
Strawinskylaan... (3 Replies)
Is/Are there an/some application/applications , package/packages for benchmarking or system performance measuring which are there for almost all Linux releases and distributions? (2 Replies)
We have a binary that generates coredump. So I ran the gdb command to analyze the issue. Pleae note the binary and code are in two different locations and we cannot build the whole binary using debugging symbols. Hence how and what details can I find from below backtarce:
gdb binary corefile
... (5 Replies)
I have received errpt like this.Any help will be highly appreciated.Recently my application has been migrated to aix 5.3 and working fine in aix 5.2 with out crashes.
LABEL: CORE_DUMP
IDENTIFIER: C69F5C9B
Date/Time: Thu Apr 23 09:41:29 EDT 2009
Sequence Number: 948... (3 Replies)
hello, i have a lot of pcap files (tcpdump output) that i want to compare.
every tcpdump output has two file, server and client.
what i want to do is:
1. take timestamp, source address, destination address, and packet id from each file (server and client)
2. find the packets sent from... (0 Replies)
can some tell me how to do this. I mean, i tried finding this out on my own but when I checked the man pages, i got a truckload of commands available pertaining to this task which in turn got me confused.
so my question is, if there is a simple straight forward(not necessarily easy) way to... (2 Replies)