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 strongm 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 lotamoka

  1. lotamoka

    How to make a table using awk

    This script used in TSM ( Tivoli storage manager ) system. #!/bin/ksh cd /home/bradmin/anil id=`cat sysop_pw|awk '{print $1 }'` pw=`cat sysop_pw|awk '{print $2 }'` while read server do dsmadmc -se=$server -id=$id -pa=$pw -dataonly=yes q ac begind=-1...
  2. lotamoka

    How to make a table using awk

    Hi Annihilannic Now my script is complete. Thank you for ur help. This forum is wornderfull Thx again
  3. lotamoka

    How to make a table using awk

    Hi Question is .....above awk has input only from files drive*_status . How do i supply lines variable to awk ? Is there way i can input drive*_status and a variable to above wk ?
  4. lotamoka

    How to make a table using awk

    Hi Annihilannic (MIS) I have above code hardcoded in a script which runs daily. Number of records varies daily in each file. Is there way u can modify ur awk to accomodate future changes on fly then set maxvalue for LINES variable ? THX
  5. lotamoka

    How to make a table using awk

    lines=5 ..Is there way to calculate max number of lines in any files then set lines=NewMAX ? Since some files has 10 lines other may have 100 or more. THX
  6. lotamoka

    How to make a table using awk

    Hi I came accross one critical juncture, some of file has more than 4 records in it. $ cat drive9_status Drive9 ====== Jul 13 tsm01 BR3363 Jul 13 tsm05 BR1990 Jul 15 tsm04 BR1254 Jul 17 tsm01 BR1248 Is there way can you modifiy ur awk to accomodate any file having any number of records ...
  7. lotamoka

    How to make a table using awk

    I am very bad when comes ARRAY. I put ?? mark where i could not get. awk ' BEGIN { ??lines=5 # for each filename argument for (f=1; f<ARGC; f++) { # for each line of report output for (l=1; l<lines; l++) { if (getline <...
  8. lotamoka

    How to make a table using awk

    Thank you Annihilannic , you solved my problem. By the way I am not able to understand above awk. Would you be more explanatory ? Thanx again.
  9. lotamoka

    How to make a table using awk

    Hi Any body any thought ?
  10. lotamoka

    How to make a table using awk

    I have numerous file like above but some of file will be empty. I want each files out put in fixed colummn no mater if they empty or has some thing. Output file should have column belong to each file and their output limited to their column. Having hard time to get this output in...
  11. lotamoka

    How to make a table using awk

    i used paste but table gets meshed up. Is there way i can use printf which will put each column with fixed length ?
  12. lotamoka

    How to make a table using awk

    I have following files ... $ cat drive17_status Drive17 ====== Jul 11 tsm03 BW5450 Jul 11 tsm03 BW4538 $ cat drive7_status Drive7 ====== Jul 13 tsm03 BR3364 Jul 13 tsm05 BR1989 $ cat drive6_status Drive6 ====== Jul 13 tsm01 BR3363 Jul 13 tsm05 BR1990 $cat drive8_status $ And output should look...
  13. lotamoka

    nsrdmpix: error, cannot create index entries

    Hi, After the full NDMP (legato) backup "brwsnas2:/fs303 nsrdmpix: error, cannot create index entries". Some how it is not creating index. Any one can help in this. backup server: HP-UX B.11.00 U 9000/800 . NW: 6.0.1 build 174. Thanks in advance...
  14. lotamoka

    How to exclude few file system from backup ?

    Hi I have NBU 6.5 and we have ALL-LOCAL-DRIVES directive. Is there way to exclude few file system from all local drives ? THX
  15. lotamoka

    Find drive status at OS level

    Hi Probablydown Above commands run inventory on entire library. Is there a way to just run inventory on drives ? THX

Part and Inventory Search

Back
Top