10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i use the following command to find files that were recently updated within the last hour:
perl -MFile::Find -le' find { wanted => sub { -f and 3600 / 86400 >= -M and print $File::Find::name; } }, shift' /var/app/mydata/
this command works well.
however, it seems to also search directories... (1 Reply)
Discussion started by: SkySmart
1 Replies
2. Red Hat
Dear all,
Please help me clarify why i cannot run command in /sbin directory (ex: /sbin/fdisk -l )!
I've checked permission on files which belong /sbin directory with execute permission. However, i still cannot run with normal user.
Sorry for my English.
thanks all, (5 Replies)
Discussion started by: all4cfa
5 Replies
3. Shell Programming and Scripting
Hi Friends,
Please help me to sort out this problem, I am running this in centos o/s and whenever I run this script I am getting "find: missing argument to `-exec' " but when I run the same code in the command line I didn't find any problem. I am using perl script to run this ... (2 Replies)
Discussion started by: ramkumarselvam
2 Replies
4. Shell Programming and Scripting
Hi
I have an oracle perl script running as cron job across multiple unix servers. The issue is the perl binary is found in multiple directories
I use in the start of the script ...
#!/usr/bin/perl
on some servers the script fails because /usr/bin/perl is not present. Is there a way i can... (4 Replies)
Discussion started by: PrasannaKS
4 Replies
5. UNIX for Dummies Questions & Answers
how to use sed command to find and replace a directory
i have a file.. which contains lot of paths ...
for eg.. file contains..
/usr/kk/rr/12345/1
/usr/kk/rr/12345/2
/usr/kk/rr/12345/3
/usr/kk/rr/12345/4
/usr/kk/rr/12345/5
/usr/kk/rr/12345/6
/usr/kk/rr/12345/7... (1 Reply)
Discussion started by: wip_vasikaran
1 Replies
6. Solaris
All,
I see that there are 2 nic card available . How can I know all the details about these 2 nic cards.
-rw-r--r-- 1 root root 10 Apr 16 15:00 hostname.bge0
-rw-r--r-- 1 root other 17 Apr 22 08:56 hostname.bge2
please let me know
thanks
-prasad (4 Replies)
Discussion started by: p4cldba
4 Replies
7. Shell Programming and Scripting
Guys,
I need to find all the files ending with either dmp or dmp.Z. This command is giving me error.
@files =`find $path \(-name "*.dmp" -o -name "*.dmp.Z"\) -mtime +30`;
sh: 0403-057 Syntax error at line 1 : `(' is not expected.
Thanks in advance (4 Replies)
Discussion started by: MKNENI
4 Replies
8. Shell Programming and Scripting
hi,
i am looking through the perl documentation in the man pages for the first time but I have looked at some other reference giudes before (at a glance) and remember that there is a find command used by perl can any one give me a structured example of that command and how it works and if possible... (2 Replies)
Discussion started by: moxxx68
2 Replies
9. UNIX for Dummies Questions & Answers
No detail:confused: (4 Replies)
Discussion started by: HOUSCOUS
4 Replies
10. UNIX for Dummies Questions & Answers
Hello All,
hope someone here can help me with this. I am a new unix system administrator on the HP-UX machine. Every night, our operators back up our file system using one tape but as of recently, our files have gotten bigger and it now requires 2 tapes for a complete backup. Since the operators... (3 Replies)
Discussion started by: sanjit
3 Replies