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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. babcia01

    sed - multiline find and replace where one line is empty

    Thank you very much, I may then swicth from sed to awk but I tested and do not get the empty line before xxxxx . Thank you for the reply and the suggestion
  2. babcia01

    sed - multiline find and replace where one line is empty

    Hi This code attached here does not work for me and I tried other code and failed so far..What am I missing? This is what what I want to do with sedscr (used with runsed.sh): Find "empty line and xxxxx in the next line after the empty line" if it is found insert cccccc before the empty line...
  3. babcia01

    print file name and then its contets

    Thank you a lot.
  4. babcia01

    print file name and then its contets

    ls -l *jun.2009|awk '{print $9}'|xargs -n1 cat The above prints contents of each file. I want file name before content is printed
  5. babcia01

    print file name and then its contets

    I have x number of files in the same dir which are named x.jun.2009. So far, my awk statements does now work. Question: Looping thru all file names, I want to print the file name and then print its contents ,the print another file name , its contents until no more files found. Thank you in...
  6. babcia01

    HACMP and NFS mounts

    What is the process for making nfs mounts under HACMP? Hacmp version is 5.4.0.1. I need input from someone who did it already. I read the HACMP manuals. While hacmp export process seems straightforward I have problems finding steps for how to make HACMP nfs mounts.
  7. babcia01

    expand existing vxvm based fs (with vcs, vxvm,emc)

    Hi Annihilannic Thank you for the reply. The OS is 5.9. Did your reply take into consideration that the dg is part of the veritas cluster? Anything that should be done to account for the change to be reflected on the other cluster node so that OS knowledge on each of the cluster node is applied...
  8. babcia01

    expand existing vxvm based fs (with vcs, vxvm,emc)

    Hi, Could you please point me to some examples or good reference manuals to perform the following: - add new LUN EMC to existing dg and expand size of existing vxvm based file system which is part of the veritas cluster by x GB. To summarize: The environment consist of: Solaris OS Veritas...
  9. babcia01

    keep only one line with the same value in column x

    Thank you. I tried with this syntax and it worked: cat filename|sort -k 2,2 -u
  10. babcia01

    keep only one line with the same value in column x

    Hi, I was trying with sort (uniq) but failed to get it. The input file has this format aaaa xxxxx bbbb xxxxx cccc xxxxx dddd yyyyy eeee yyyyy ffff zzzzz What command would I use to create a new output file and only keep one (highest) line with the same value in column 2. I want to get...
  11. babcia01

    how to prompt for input while reading file

    This is the skeleton of code from the shell I try to get to work. I experimented quite a lot with various stdin and stdout redirection commands but was not successful so far. Would anoyne know how to make possible for the echo in the below code to do what it should do which is prompt the user...
  12. babcia01

    ssh via rsh and feed of local file via cat command

    Hi All Thanks you to all for the response. Especially to Dziadzia .
  13. babcia01

    ssh via rsh and feed of local file via cat command

    Hi Would anyone know how to accomplish via remote ssh same capabilities as can be accomplished via rsh command as noted under 1)? The 1-st rsh based command works. The local filex is read into rsh chpasswd command on the remote server. 1) cat filex| rsh serverx chpasswd The below 2-nd command...
  14. babcia01

    syncronize samba pasword every time unix password is changed

    Hi, this below quoted method can be used to change unix password to samba password every time samba password is changed via smbpasswd -a samba_user_id command. How to accomplish the reverse ? How to change, synchronize samba password to unix password, every time unix password changes? This...
  15. babcia01

    truncate file

    What are experienced sysadmins using to a truncate an asci/text file? For example: truncate a file (to itself) from line number 10 until the last line? I want my input file become the output (truncated) file. Thank you very much
  16. babcia01

    move lv to another VG and use the same disk

    Thank you for your answers, especially the last one which was quite extensive. I counted that there could be something quick but after seeing the answers I concluded that I need to resort to the normal, previously used process. I thought that there could be some special, unknown to me shortcut...
  17. babcia01

    move lv to another VG and use the same disk

    Hi, I have logical volume logvl1 which is part of rootvg. logvol1 is located on hdisk5. hdisk5 is only used by loglov1. I want to change loglv1 logical volume to be part of another new VolumeGroup and continue using the same hdisk5. Is there a quick way to accomplish it? I am familiar and...
  18. babcia01

    sendmail and change "FROM: sender" to "FROM: unknown"

    What changes are required in sendmail.cf (using aix 5.1) in order to change real sender name to another "fake" name (which does not have secuity stanza defined)? Is it possible to do it at all via sendmail.cf changes only? genericstable is not applicable for me as a solution. I want to...
  19. babcia01

    Use of uninitialized value in concatenation (.)

    Thank you all. The last one from "jaa" worked as I wanted.
  20. babcia01

    Use of uninitialized value in concatenation (.)

    I did it: in the begining i assigned (my args1 = "", same for arsg2m args3)and also after the ps_out statement to take into consideration that the subsequent line may have space for args2 and args3. Still the same warning. Thank you again

Part and Inventory Search

Back
Top