10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I would like to comment a line that matched a string "sreenivas" in a file without opening it.
Thanks in advance.
Regards,
Sreenivas (3 Replies)
Discussion started by: raosr020
3 Replies
2. Shell Programming and Scripting
Hello All,
I have following file contents
cat file
#line=aaaaaa
#line=bbbbbb
#line=cccccc
#line=dddddd
line=eeeeee
#comment=11111
#comment=22222
#comment=33333
#comment=44444
comment=55555
Testing script
Good Luck!
I would like to comment line line=eeeeee and insert a new line... (19 Replies)
Discussion started by: manishdivs
19 Replies
3. Shell Programming and Scripting
Hi,
I need to comment the below lines in a file using sed.These are the few lines of the jsp file that need to be commented.
if(top.location != location){
top.location.href = location.href;
}
Using the below command two lines can be commented:
if(top.location != location){
... (9 Replies)
Discussion started by: meetu
9 Replies
4. Shell Programming and Scripting
Hi
can any body pls help me :
I have a file Which Content is like following:
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
ca:3:respawn:/opt/GoldWing/currentPM/local/critagt > /dev/msglog 2<>/dev/msglog
ca:3:respawn:/opt/GoldWing/currentPM/local/startcia.sh... (2 Replies)
Discussion started by: Aditya.Gurgaon
2 Replies
5. Shell Programming and Scripting
Dear All,
I have many cron entries and want to comment a particular cron entry from a script.
Ex- Suppose I have the below cron entries:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
#Cron entries for Jboss server 1
0 23 * * * /usr/bin/echo
0 23 * * * /usr/bin/asdg_count.sh
0 23 *... (5 Replies)
Discussion started by: avishek007
5 Replies
6. Shell Programming and Scripting
Hi ,
I have a XML file like this
<dependency>
<groupId>fr.xxxx.portail.ear</groupId>
<artifactId>_xxxEAR</artifactId>
<version>1.0.0-20xxxxx.xxxxx-x</version>
<type>ear</type>
</dependency>
I need to comment single/multiple lines from XML file.
How can i... (6 Replies)
Discussion started by: scorpio
6 Replies
7. Shell Programming and Scripting
can we use "---------" for commenting......... (2 Replies)
Discussion started by: simmijaswal
2 Replies
8. Shell Programming and Scripting
How can i comment multiple lines in unix ..............shell script. (6 Replies)
Discussion started by: dreams5617
6 Replies
9. UNIX for Dummies Questions & Answers
How to comment a set of lines in a script?
we use # to comment a single line , is there ant other cmd to comment a block? (2 Replies)
Discussion started by: rolex.mp
2 Replies
10. Shell Programming and Scripting
Hi all,
I m new for linux ... but now i will do this continuously. So my question is how to comment more then 1 line i dont wanna put # to each line.. my script is too big...
or u can tell me that how can i add # to sellected lines means if i wanna put # from line number 10 to 20 then how... (3 Replies)
Discussion started by: ajayyadavmca
3 Replies