Search Results

Search: Posts Made By: adurga
1,238
Posted By adurga
Thanks Akshay. The output could be like below...
Thanks Akshay.
The output could be like below assuming set2, set4, set5 dont have the recr:vn(search pattern) records in them.

header1:hv1
header3:hv3
header6:hv6
.....
1,238
Posted By adurga
Traverse backwards based on forward pattern match
Hi,

I have a file containing records of this format. I need to show output of all header of the sets containing recn:rvn records. The sets appear in my file like below.

#set 1
header1:hv1...
3,604
Posted By adurga
By default you script "FILENAME.KSH" might not be...
By default you script "FILENAME.KSH" might not be having executable permission.
Run this command.
chmod 777 FILENAME.KSH
Then run the script.
2,279
Posted By adurga
Thanks Yazu and itkamraj. I missed the...
Thanks Yazu and itkamraj.
I missed the executable filecount. I was under the impression that filecount is a UNIX command. Found out the missing filecount script and now the command works fine. :-)
2,279
Posted By adurga
But this will give the directories occupying...
But this will give the directories occupying maximum space. What my command is intended is to get the directories containing maximum number of files (size may be of smaller but count wise they will...
2,279
Posted By adurga
Sub directories containing maximum files
Hi All,

I have this command coded in C Shell to get the top ten sub directories in the order of number of files they contain.
find $parent_dir -type d -exec filecount {} \; | sort -nr | head -10...
Forum: Solaris 03-20-2011
1
9,000
Posted By adurga
zsched
Hi,

Can anyone share any useful info about zsched process running in UNIX? What is this process, what does it help etc.

Thanks
-Durga
13,981
Posted By adurga
$ date +%S 36 $ I am getting only...
$ date +%S
36
$

I am getting only seconds. But I want all seconds. In the sense if the datetime is 20th Jan 11 01:30:43AM, I should get 20*24*3600 + 01*3600 + 30* 60 + 43 = 1733443
13,981
Posted By adurga
timestamp in C shell
Hi,

I am using C Shell. Can someone please let me know how can I get current timestamp in seconds?
In Borne shell it seems %s will give the output. Similarly what is for C shell?

Thanks
-Durga
12,903
Posted By adurga
C Shell - foreach - No Match error
Hi All,

I am facing 'No Match' problem with foreach loop in C shell script.

Initially I tried following grep command showing results properly as shown at the end of the Thread. But foreach...
3,375
Posted By adurga
Thanks a lot both of you. It helped.
Thanks a lot both of you. It helped.
3,375
Posted By adurga
without extension
Hi,

I need a help regarding a small requirement. I have a list of C files. I need to put them in a file but without .c extension.
say if I have the files as file01.c, file02.c, file03.c etc
My...
20,440
Posted By adurga
Thanks alot guys
Thanks alot guys
20,440
Posted By adurga
delete pattern files in sub directories
Hello friends,

I am compiling some set of SQL scripts in a set of sub directories demoed as below. After compiling log files are being created.
Each and every time after compiling time I had to...
3,102
Posted By adurga
FTP Prompt Error
Hi,

We are facing this problem in live environment. We send some set of files at the End of Business day. Clients have chosen FTP mode for this.
Of around 50 files we send, for two files we are...
2,092
Posted By adurga
which Shell is better
Some time back there was a poll conducted on whci shell is better. But I forgot the conclusion (atleast which Shell got higher vote %age).

Could some please let me know. Tried search but in vain.
1,757
Posted By adurga
Two possibilities. 1) All UNIX files have...
Two possibilities.
1) All UNIX files have attribute 'last accessed'. But this field will not tell who/for what the file has been accessed.

2) In our company it works lik this. All the commands...
2,730
Posted By adurga
This script is in Csh. #!/bin/csh foreach...
This script is in Csh.

#!/bin/csh
foreach file(`ls`)
if (-z $file) /bin/rm -rf $file
end
1,632
Posted By adurga
Yes. In my case Sybase is installed on Solaris...
Yes.
In my case Sybase is installed on Solaris UNIX and using VBA (so possible with VB too) I am accessing data from the Sybase database.
2,473
Posted By adurga
I think your question should say 'column' instead...
I think your question should say 'column' instead of 'line'.
19,536
Posted By adurga
Thanks Ygor. I was under the impression that 'Csh...
Thanks Ygor. I was under the impression that 'Csh is easy to learn' but unaware it has so many disads.
3,053
Posted By adurga
Your requirement is still not clear. Better you...
Your requirement is still not clear. Better you exemplify your problem.
19,536
Posted By adurga
grep -l CCC $(grep -l BBB $(grep -l AAA files*))...
grep -l CCC $(grep -l BBB $(grep -l AAA files*)) is not working for me. It says "Illegal variable name.". Does it depend on shell also like born, korn, C etc?
Anyway I am using C shell. Comments...
19,536
Posted By adurga
wondering whether will not suffice? grep AAA...
wondering whether will not suffice?
grep AAA file* | grep BBB | grep CCC
4,458
Posted By adurga
I doubt whether UNIX has built in commands for...
I doubt whether UNIX has built in commands for these requriements. I see two queries here.

1) 'Already FTPed files' not be FTPed again :- Two solutions 1) Record the timings of when ever FTP...
Showing results 1 to 25 of 28

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