Home » Infrastructure » Unix » sed command (Solaris 10)
sed command [message #530674] Wed, 09 November 2011 11:04 Go to next message
sroy
Messages: 38
Registered: July 2005
Member
What will be the correct syntax to replace the character in specific position in the string? The character should meet the number range [0-9] at the 8th position for replacement. I tried the following:

sed 's/^\(.\{7\}\)\([0-9]\{1}\/\1*/' text.file
Re: sed command [message #530678 is a reply to message #530674] Wed, 09 November 2011 11:13 Go to previous message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Regards
Michel
Previous Topic: how to access database from unix(vmware)
Next Topic: how to create two another database in solaris server
Goto Forum:
  


Current Time: Thu Nov 21 11:46:26 CST 2024