Hello, I am using tcsh on AIX.
I would like to write a script that does the following:
- given an inode, how do I find exactly the name of the file?
I know I could do this using ls -i | grep <inode>
but it returns: <inode> <filename>. I need some string manipulation or something to retrieve just the file name.
I tried using variables, but I think variables are defined differently in tsch or something.
-
So, 2 - how to define variables on tcsh (that is personal variables [not env]).
-
How to retrieve number of lines written during a command?
That is, say I activated command1 and it wrote about 200 lines - can I get the number of lines it wrote?
Thank you very much for your help!