07-24-2014
very informative. i will keep improving on sed skill. thanks for motivating me up with the solution.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I want to know about the characters that are available in the Symbol.pfa font file. I am using freetype library to render the fonts in Windows. What encoding should I provide to get all the symbols in the Symbol font file?
It would be very helpful if i get all the characters in this... (0 Replies)
Discussion started by: pushpagiri
0 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a file with large number of records. Sample below:
123456789QWERT2U 2 erter
987123678ZXCVB6Y 5 7689
934567123GHJKUI4O 7
-
--
--
I want the 16th character in each record to be replaced with the below as follows;so 2 will become K, 6 will become O and 4 will become... (3 Replies)
Discussion started by: er_ashu
3 Replies
3. Shell Programming and Scripting
i have file in which i want to replace a char with new line
please help me out (1 Reply)
Discussion started by: RahulJoshi
1 Replies
4. Shell Programming and Scripting
hi guys i have 6000 rows column
the text in the column has the symbol vertical bar |.
i tried some of the commands to remove it but none of the commands are reconzng this symbol. would u plz help to remove this symbol from the text with any kind of unix command
u r help would be appreciated
... (9 Replies)
Discussion started by: bogu0001
9 Replies
5. Shell Programming and Scripting
I want to remove the commented lines in a file identified by ' symbol at the start of each ine. A sample example will be like:
Input
-----
'IFerr_flag=0THEN
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
Output
-------... (3 Replies)
Discussion started by: joyan321
3 Replies
6. UNIX for Advanced & Expert Users
I have TXT files to process but they contain the degree symbols in them due to which the processing program fails on these files. I want a unix command that will remove the degree symbols from these files.
I tried using the sed command: sed 's///g' filename but it did not work. This issue... (14 Replies)
Discussion started by: khedu
14 Replies
7. UNIX for Dummies Questions & Answers
I am trying to replace '(' and ')' symbol with nul text using tr command. But i am not able to get the expected output . Please help
# cat test.txt
155170816-(75767Mb)
# tr '(' '' < test.txt
155170816-(75767Mb)
# tr ')' '' < test.txt
155170816-(75767Mb)
#
I want the o/p as
... (8 Replies)
Discussion started by: thomasraj87
8 Replies
8. Shell Programming and Scripting
Hi,
I am trying to remove the caret symbol from a bash variable. This is the variable:
var="GOTAN^TOK^B"and this is the code I am trying to use to remove the caret symbol:
nocarrot=`echo $var | sed -e 's/^/_/g'`This is the output intended (but not acheived with the above function):... (3 Replies)
Discussion started by: goodbenito
3 Replies
9. Shell Programming and Scripting
Hello All
I am struck in the issue which I want to share with all of you.
What I am trying to do is For every line in a file I have to replace a particular character from the given character in a file
For Example
Suppose the data is
1111x2222
1111x2222
2222y3333
1111x2222
I... (4 Replies)
Discussion started by: adisky123
4 Replies
10. Shell Programming and Scripting
with in my files i have the data like this, starting with a pipe and ending the line with a pipe.
all i want is to replace the first and last pipe , remove those
trying to use following sed command, but it is only showing on the screen the entire data of the file as if it removed, but when i... (4 Replies)
Discussion started by: cplusplus1
4 Replies
SKILL(1) User Commands SKILL(1)
NAME
skill, snice - send a signal or report process status
SYNOPSIS
skill [signal] [options] expression
snice [new priority] [options] expression
DESCRIPTION
These tools are obsolete and unportable. The command syntax is poorly defined. Consider using the killall, pkill, and pgrep commands
instead.
The default signal for skill is TERM. Use -l or -L to list available signals. Particularly useful signals include HUP, INT, KILL, STOP,
CONT, and 0. Alternate signals may be specified in three ways: -9 -SIGKILL -KILL.
The default priority for snice is +4. Priority numbers range from +20 (slowest) to -20 (fastest). Negative priority numbers are
restricted to administrative users.
OPTIONS
-f, --fast
Fast mode. This option has not been implemented.
-i, --interactive
Interactive use. You will be asked to approve each action.
-l, --list
List all signal names.
-L, --table
List all signal names in a nice table.
-n, --no-action
No action; perform a simulation of events that would occur but do not actually change the system.
-v, --verbose
Verbose; explain what is being done.
-w, --warnings
Enable warnings. This option has not been implemented.
-h, --help
Display help text and exit.
-V, --version
Display version information.
PROCESS SELECTION OPTIONS
Selection criteria can be: terminal, user, pid, command. The options below may be used to ensure correct interpretation.
-t, --tty tty
The next expression is a terminal (tty or pty).
-u, --user user
The next expression is a username.
-p, --pid pid
The next expression is a process ID number.
-c, --command command
The next expression is a command name.
--ns pid
Match the processes that belong to the same namespace as pid.
--nslist ns,...
list which namespaces will be considered for the --ns option. Available namespaces: ipc, mnt, net, pid, user, uts.
SIGNALS
The behavior of signals is explained in signal(7) manual page.
EXAMPLES
snice -c seti -c crack +7
Slow down seti and crack commands.
skill -KILL -t /dev/pts/*
Kill users on PTY devices.
skill -STOP -u viro -u lm -u davem
Stop three users.
SEE ALSO
kill(1), kill(2), killall(1), nice(1), pkill(1), renice(1), signal(7)
STANDARDS
No standards apply.
AUTHOR
Albert Cahalan <albert@users.sf.net> wrote skill and snice in 1999 as a replacement for a non-free version.
REPORTING BUGS
Please send bug reports to <procps@freelists.org>
procps-ng October 2011 SKILL(1)