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
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...
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...
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.
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...
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...
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...
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...
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...
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.