Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by balajipn

  1. balajipn

    Finding 5000 oldest files from a directory

    Hi Annihilannic, Your awk solution worked like a charm. A big thanks for your help on this. Thanks, Balaji.
  2. balajipn

    Finding 5000 oldest files from a directory

    Hi, I tried the following command in my AIX. find /logo/jpg/CustArtRepository -type f -mtime +365 -name "*.jpg" | xargs ls -l | awk '$8 !~ /:/' | sort -r -k 8,8 -k 6,6M -k 7,7 > /tmp/jpg.txt1 Unfortunately, the following error message is the one I received...
  3. balajipn

    Finding 5000 oldest files from a directory

    I want to maintain the directory structure under the archive directory. Thanks, Balaji.
  4. balajipn

    Finding 5000 oldest files from a directory

    Hi, ls -lR | grep '^-' | sort -k 6,7 | head -n5000 | awk '{ print $NF }' The above command did not work as my ls -lR output format is different. See my sample output. -rw-rw-r-- 1 logoview samba 452134 Apr 02 2007 0728935_CA002_300.jpg My aix date format is MMM DD CCYY. Also, as...
  5. balajipn

    Finding 5000 oldest files from a directory

    Hi, Thanks for your reply. However, my directory in question (/logo/jpg/CustArtRepository) has nearly 10000 subdirectiries in it. The files are not directly under the /logo/jpg/CustArtRepository). Thanks, Balaji.
  6. balajipn

    Finding 5000 oldest files from a directory

    Hi, I have a directory /logo/jpg/CustArtRepository which contains around a million files in it. My requirement is to search the oldest 5000 files from this directory and its subdirectories and move them to a archive directory. I am using the following command. find /logo/jpg/CustArtRepository...
  7. balajipn

    Changing username in AIX 5.3

    Hi, I want to change the username of a unix user. Can some one tell me how to do it? I am part of the security group. I don't want to edit the /etc/passwd file to overwrite the username. Thanks, Balaji.
  8. balajipn

    AIX reboot hangs

    Hi, We have CUI(Character user interface) based application running on our AIX4.3 box. To keep the application stable every day, we have a regular scheduled application reboot (not AIX reboot) at midnight. The application restart process executes the sync command and then uses some native...
  9. balajipn

    List of files changed in AIX 5.3

    Hi, I need to find a list of files that have changed with in thet last 5 minutes in AIX 5.3. Can some one help me with this?. The find command seems to handle files that have changed with in a day or multiples of days. It doesn't seem to deal with minutes. Thanks, Balaji.
  10. balajipn

    Command History in AIX

    There is nothing wrong with it. However, I am used to the Up-arrows and Down-arrows in other systems. Thanks, Balaji.
  11. balajipn

    Command History in AIX

    Hi, I am using AIX 4.3.3. The editor is set to "vi" and vi bindings are working to get the command history (Esc-k works to get the previous commands). However, I would like to use up arrow and down arrow to see the previous and next commands. Can some one point out what changes I need to make...
  12. balajipn

    native command for stop channel

    Hi, Can some one tell me the native command to stop the websphere mq channel?. I am not looking for "stop channel" command which is used with runmqsc. I know the native command to start the channel is runmqchl, but don't know the command to stop. Can some one help? Thanks, Balaji.
  13. balajipn

    Question about Aix file timestamps

    So there is no way to get the create timestamp of a file in AIX?. Thanks, Balaji.
  14. balajipn

    Question about Aix file timestamps

    Thanks. That was very helpful. Thanks, Balaji.
  15. balajipn

    Question about Aix file timestamps

    Hi, I would like to find out the "create timestamp", "accessed timestamp" and "modified timestamp" of a file in Aix 4.3. Can some one help me. Thanks, Balaji.

Part and Inventory Search

Back
Top