10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can you please figure out what is the issue here
$ find . -maxdepth 1 -type f -size 0 -print
find: bad option -maxdepth
please find the OS details
$ uname -a
HP-UX g5u1216 B.11.31 U ia64 2614088426 unlimited-user license
Use code tags, thanks. (6 Replies)
Discussion started by: TomG
2. Shell Programming and Scripting
i have this sed command in my unix script which replaces new line and carriage return in a line with the string "
the script works fine in Linux 3.0.101-0.5, but not in AIX 1 7 , the "s/\r/\
/g" replacement, replaces
all the character "r" in the file.... (3 Replies)
Discussion started by: maximus_jack
3. Shell Programming and Scripting
I am trying to select 30 days older files under current directory ,but not from subdirectory using below command.
find <Dir> -type f -mtime + 30
This command selecting all the files from current directory and also from sub directory .
I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
4. Shell Programming and Scripting
I have a problem about a little script,
when i run the following two lines one by one on CLI then they work well:
/usr/bin/mkdir `perl -e 'use POSIX qw(strftime); print strftime "%Y-%m-%d",localtime(time() - 30*24*60*60);'`
find . -type f -name "fuseesb.log.*" -mtime 30... (5 Replies)
Discussion started by: EAGL€
5. Shell Programming and Scripting
In /home/etc/files path ran the following command
find . -name 'ABC*' | wc -l
The output of the above command is 25 as expected
In path /home path ran the following command
find . -name '/home/etc/files/ABC*' | wc -l
The output of the abvoe command is 0 .
Why the above... (3 Replies)
Discussion started by: smile689
6. Shell Programming and Scripting
I am trying to list all the files created / modified today in a directory.
With reference to this thread,
I have used the below command to list all the files modified today.
find . -daystart -type f... (8 Replies)
Discussion started by: arunkumarmc
put prtconf command,after show this error message:
/usr/sbin/prtconf: msize=msize + 12544^J12544: syntax error
pleae help me...........waiting for replay
(deleted email, rule violation) (2 Replies)
Discussion started by: smohan62
8. Shell Programming and Scripting
find command not working for me in a perticular directory.The same command is working fine in any other directory.
Following is the command i issued:
find . -type f -print
my question is , is it possbile to disable a command only for a perticular directory ??...of course... (4 Replies)
Discussion started by: panyam
9. UNIX for Dummies Questions & Answers
I have a script with a find command using xargs to copy the files found to another directory. The find command is finding the appropriate file, but it's not copying. I've checked permissions, and those are all O.K., so I'm not sure what I'm missing. Any help is greatly appreciated.
This is... (2 Replies)
Discussion started by: mpflug
10. UNIX for Advanced & Expert Users
Having issues with the . parameter in the find command.
Issuing "find . -name \*.pl" gives me
find: cannot open .: No such device
I got it working by substituting . with *, so "find * -name \*.pl" gives the correct listing.
"which find" lists /bin/find.
Anybody... (7 Replies)
Discussion started by: jabrady