Hi I need to add a comment line at the begining of a text file. The scenario is given below.
1. The number of servers that needs to be updated is around 80
2. The location of the text file in all the servers are the same including the file name.
3. The comment has to be added at the very... (2 Replies)
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)
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)
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... (2 Replies)
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)
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)
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)
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)
Hi,
I need to comment out (insert # in the front of a line) a line that has entry Defaults requiretty using command-line as I need to do this on hundreds of servers.
From
Defaults requiretty
To
#Defaults requiretty
I tried something like below but no luck: Please advise,... (3 Replies)
Hi Folks,
sed -i '3s/^/#/' abc.txt is commenting the line number 3 in LINUX
Not Working in Solaris 10 or higher
sed -i sed -i '3s/^/#/' abc.txt
sed: illegal option -- i
i have a file as below
cat abc.txt
bc
vdv
shhsd
cdc
skdk
Please advise (15 Replies)
Discussion started by: abhaydas
15 Replies
LEARN ABOUT DEBIAN
systunedump
SYSTUNEDUMP(8) Debian GNU/Linux SYSTUNEDUMP(8)NAME
systunedump - Dumps /proc files for kernel tuning.
SYNOPSIS
systunedump [ -c,--config configfile ] [ -h, --help ] [ -p, --path dumppath ] [ -v, --verbose ]
DESCRIPTION
This program dumps elements of the /proc filesystem to standard output in a format which, if redirected to a file, can be used by the sys-
tune(8) utility.
Common usage:
systunedump > /etc/systune.conf
systunedump --config /etc/systune.kernel20.dump > /etc/systune.kernel20.conf
systunedump --config /dev/null --path /proc/sys/vm > /etc/systune.conf
OPTIONS -c, --config configfile
Specify an alternative configuration file. The default is /etc/systune.dump
-h, --help
Print a short explanation of the command syntax.
-p, --path dumppath
Add the specified path to any items already listed in the configuration file. Items in the path must be separated by whitespace.
All items in the path must begin /proc/sys/.
-v, --verbose
Verbose mode: allow non-existent items in the path and configuration file to produce errors to standard error. Without this option,
erroneous paths are discarded silently.
FILES
/etc/systune.dump
A file containing a list of paths to dump. Each pathname must begin with /proc/sys/. Comments, introduced by #, can be included;
the whole line from the comment character onwards is discarded, together with any whitespace immediately preceding it.
The configuration file can be a file, such as /etc/systune.conf, that contains previously dumped data; the definition part of each line,
after and including the colon, is discarded.
SEE ALSO
systune (8).
AUTHOR
Piotr Roszatycki <dexter@debian.org>.
THANKS
Daniel Podlejski, Oliver Elphick.
Debian Project 20 Apr 1999 SYSTUNEDUMP(8)