Sponsored Content
Top Forums Shell Programming and Scripting comment and uncomment a line with Shell Script Post 302339018 by anthonyraj75 on Wednesday 29th of July 2009 01:34:12 PM
Old 07-29-2009
MySQL comment and uncomment a line with Shell Script

Requirement is:
1. comment and uncomment the line with Shell
Script: /opt/admin/fastpg/bin/fastpg.exe -c -=NET (using fastpg.exe as a search option)
2. display = "Commented" (when its commented) and display = "Uncommented" (when its uncommented)
Its urgent, please let me asap!!!
Thanks in Advance.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Block Comment in Shell script

how to put multiline comments in a shell script like /* Some code */ in C language? (3 Replies)
Discussion started by: skyineyes
3 Replies

2. Shell Programming and Scripting

comment and Uncomment single task out of multiple task

I have a file contains TASK gsnmpproxy { CommandLine = $SMCHOME/bin/gsnmpProxy.exe } TASK gsnmpdbgui { CommandLine = $SMCHOME/bin/gsnmpdbgui.exe I would like to comment and than uncomment specific task eg TASK gsnmpproxy Pls suggest how to do in shell script (9 Replies)
Discussion started by: madhusmita
9 Replies

3. Shell Programming and Scripting

Comment/uncomment a cron

Hi, My requirement is to comment/uncomment a cron job through a script. 1. Redirected the output of crontab -l to a text file. crontab -l >cronoutput.txt 2. grep to find the script running and sed to place the comment (#) as the first char grep -i 'weblogicmonitor.sh'... (5 Replies)
Discussion started by: mannepalli
5 Replies

4. Shell Programming and Scripting

uncomment or comment one specific line in a config file

Hello. I want comment or uncomment a ligne in a config file. The file name : /etc/samba/smb.conf Normaly the ligne is uncomment :so the line begin with a tab character followed by passdb backend =\tpassdb backend = In that case I should comment this line ... (2 Replies)
Discussion started by: jcdole
2 Replies

5. Shell Programming and Scripting

comment/uncomment grep output

Hi I need help to comment/uncomment the output from grep command output within a file from command line using shell script. # grep -i -p testfs filesystem.out /TestFs: dev = /dev/TestFslv vfs = jfs2 log = /dev/hd8 mount ... (2 Replies)
Discussion started by: mbak
2 Replies

6. Shell Programming and Scripting

add line and remove comment in some script

Hi, i need some help. i am not sure about my idea. I have a script directory under my home directory,which has a lot of scripts in it. These are some names of the scripts in /axxhome/prdv/script aly300.sh axt300.sh arv300.sh clp300.sh ctth300.sh aly400.sh axt400.sh arv400.sh... (6 Replies)
Discussion started by: debu000
6 Replies

7. UNIX for Dummies Questions & Answers

Easiest way to comment/uncomment a shell script?

cd path line1 line2 line3 line4 line5 Lets say thats the sample script...So say if i have to comment the above script, which would be the better way so that whenever i want, i cud comment or uncomment the same. Thanks (1 Reply)
Discussion started by: saggiboy10
1 Replies

8. Shell Programming and Scripting

To comment/uncomment in config file

hi! I want to comment and uncomment 2 lines in my config files that goes like: CONTACT_LIST="abc@xyz.com;" #CONTACT_LIST="def@xyz.com;" I want to sawp the commnets in above lines and desired output should be: #CONTACT_LIST="abc@xyz.com;" CONTACT_LIST="def@xyz.com;" Please suggest. (1 Reply)
Discussion started by: scriptNovice
1 Replies

9. Shell Programming and Scripting

Perl uncomment line

Hi guys I am making a bash script, need to un-comment a line remove the"#" Want to accomplish this with a Perl command. Line is like this: #readclients = yes Need it like this: readclients = yes Any help would be really appreciated. (3 Replies)
Discussion started by: Tox
3 Replies

10. Shell Programming and Scripting

Sql multi line comment /* shell interpretation issue

Greetings Experts, I do have some basic knowledge of Unix. The task I am trying to do through shell script is to generate the view script for all of the tables which is in YYYYMMDD format (I assume I am on Ksh). I have certain tables that ends in YYYYMMDD format (eg: tbl_20150630) For each... (1 Reply)
Discussion started by: chill3chee
1 Replies
dbsessmgr(1)							   User Commands						      dbsessmgr(1)

NAME
dbsessmgr - session state database manager SYNOPSIS
mono dbsessmgr.exe [options] DESCRIPTION
dbsessmgr allows you to manage the ASP.NET session state database. OPTIONS
--clean Remove all expired sessions. --remove Delete all sessions. --show Display session data. CONFIGURATION
You can choose the assembly and type used to connect to your database backend and also set the connection string and the SQL parameter pre- fix through the configuration file, named dbsessmgr.exe.config. The configuration shipped by default is: <appSettings> <add key="DBProviderAssembly" value="Npgsql"/> <add key="DBConnectionType" value="Npgsql.NpgsqlConnection"/> <add key="DBConnectionString" value="SERVER=127.0.0.1;USER ID=monostate;PASSWORD=monostate;dbname=monostate"/> <add key="DBParamPrefix" value=":" /> </appSettings> AUTHORS
dbsessmgr was written by Jackson Harper (jackson@ximian.com). SEE ALSO
mono(1),xsp(1),asp-state(1),mod_mono(8) MORE INFORMATION
The Mono project (http://www.go-mono.com) is a collaborative effort led by Novell (http://www.novell.com) to implement an open source ver- sion of the .NET Framework. dbsessmgr 2.6.4 28 May 2004 dbsessmgr(1)
All times are GMT -4. The time now is 11:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy