What's the nature of the failure? What's the point of grepping for nothing (and really, what's the point of ignoring case in a string which doesn't have case!)? If you want to check if there was any output, even just an empty line, perhaps grep ^ would work on both platforms. But if ls works, the output should not have empty lines, so you could simply grep for a dot (meaning at least one character, any character).
(Just guessing that the problem is with egrep "" failing on Solaris. Perhaps you could check on that and report back.)
I would like to add to what era said that - AIX or not - this is the most awkward way to check for the existence of a file i have ever seen. Why not use something like:
"test -f" tests if the the file exists and is a regular file (not a directory, device file, etc.)
Hi All,
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)
Hi
I use this "at" command to unmount 12 filesystems in my aix server
echo "ksh /usr/local/bin/umount.sh" | at now
i want to schedule it on a daily basis. I know that it can be done via crontab. But Im just curious to know if daily wise scheduling can also be done via the "at" command ?... (1 Reply)
I don't know to aix command to check
number of cpu, speed of cpu
memory, size, memory type (ex. memory type chipkill)
internal harddisk, size
how many to seial I/O ?
fibre
network interface
raid controller, raid type
DVD-rom, speed DVD-rom
aix version... (1 Reply)
1.What is the equivalent of the command "ls -ltr -h" in AIX..Which will list all file name with their size in GB
2. What comand can be used to display the output of df -k in GB in AIX. In in solaris we do df -h.
Thanks in advance (6 Replies)
1.What is the equivalent of the command "ls -ltr -h" in AIX..Which will list all file name with their size in GB
2. What comand can be used to display the output of df -k in GB in AIX. In in solaris we do df -h.
Thanks in advance (0 Replies)
I am working on AIX 5.2 platform and working with AIX command 'at' . May
I am getting a weird problem . I have a script which is scheduled to run
everyday.It uses 'at' command to call one java program.
Most of the times 'at' command works fine without any issue but sometimes 'at' command... (10 Replies)
When I import VG, it shows:
0516-622 synclvodm: Warning, cannot write lv control block data.
I found AIX V4.3 have updatelv command can recovery LVB from VG, however, updatelv is not existed on AIX 5L, which command to replace it? (2 Replies)
AIX:Command to get netaddress/subnet address command in IPv4/IP6
Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine.
net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)