10-10-2012
Ok,
very nice !! it works fine.
Many thanks again
Have a nice day !
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
How to remove a box like special character which appears at the end of a string/line/record. I have no clue what this box like special character is. It is transparent square like box. This appears in a .DAT file at the end of header.
I'm to compare a value in header with a parameter.... (16 Replies)
Discussion started by: Qwerty123
16 Replies
2. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies
3. Shell Programming and Scripting
Can any one plse help me writing shell script to removing some special character pattern (like / > -------, / > / > ------- etc....as shown below) from the text file ASAP.
/ > -------
<tag-normalization tag-name="EXECSERVPRODUCT" read-only="false" part="body">
... (3 Replies)
Discussion started by: bkc
3 Replies
4. Shell Programming and Scripting
Hello ,
i have a text file like this :
A123 c12AB c32DD aaaa
B123 23DS 12QW bbbb
C123 2GR 3RG cccccc
i want to remove the numbers from second and third column only.
i tried this :
perl -pe 's///g' file.txt > newfile.txt
but it will remove the number from... (7 Replies)
Discussion started by: shelladdict
7 Replies
5. Shell Programming and Scripting
Hello
I've searched here and on the 'net for examples of a script or command line function that will remove the $ character from all file names only that can be done within the directory that contains the file names - which are all html files.
ie, I have a directory that contains html files... (6 Replies)
Discussion started by: competitions
6 Replies
6. UNIX for Dummies Questions & Answers
Hi Guru,
I have put one post yesterday and get answer. thanks for your help.
my question today is: what is ascii character for following non printable characters: ( we need filter these characters out in another process)
^MM-^E^MM-^E.
Old post link: ... (5 Replies)
Discussion started by: ken002
5 Replies
7. Shell Programming and Scripting
Hi Folks,
I have a huge data of the below format
abc #apple 1200 06/23
ghj #orange 1500 06/27
uyt #banana 2300 05/13
efg #vegetable 0700 04/16
After first 3 letters, i have 9 spaces and after fruit there are no specific fixed space, but it varies... (4 Replies)
Discussion started by: jayadanabalan
4 Replies
8. Shell Programming and Scripting
Hi There,
I have one requirement to remove word after character "/".
Input file is
2017-07-12|02|user1l|domain1/userl|0
2017-07-12|02|user2|domain1/user2|5
2017-07-12|02|user3|domain2/user3|0
2017-07-12|02|user4|domain1/user4|432
and require OP file is
... (2 Replies)
Discussion started by: anshu ranjan
2 Replies
9. UNIX for Beginners Questions & Answers
Hi all.
I want to use sed to remove a word that ends with "!" in the first page of a file. The word I want to remove is: "DNA!".
I have search for an answer and nothing of what I found helped me.
~faizlo (2 Replies)
Discussion started by: faizlo
2 Replies
nice(2) System Calls Manual nice(2)
NAME
nice - change priority of a process
SYNOPSIS
DESCRIPTION
adds the value of priority_change to the nice value of the calling process. A process's is a positive number for which a more positive
value results in lower CPU priority.
A maximum nice value of 39 and a minimum nice value of 0 are imposed by the system. Requests for values above or below these limits result
in the nice value being set to the corresponding limit.
If the calling process contains more than one thread or lightweight process (i.e., the process is multi-threaded) this function shall apply
to all threads or lightweight processes in the calling process.
Security Restrictions
Some or all of the actions associated with this system call are subject to compartmental restrictions. See compartments(5) for more infor-
mation about compartmentalization on systems that support that feature. Compartmental restrictions can be overridden if the process pos-
sesses the privilege (COMMALLOWED). Processes owned by the superuser may not have this privilege. Processes owned by any user may have
this privilege, depending on system configuration.
Some or all of the actions associated with this system call require the (OWNER) and/or the (LIMIT) privileges. Processes owned by the
superuser will have these privileges. Processes owned by other users may have privilege(s), depending on system configuration. See privi-
leges(5) for more information about privileged access on systems that support fine-grained privileges.
RETURN VALUE
Upon successful completion, returns the new nice value minus 20. Otherwise, a value of -1 is returned and is set to indicate the error.
Note that assumes a user process priority value of 20. If a user having appropriate privileges has changed the user process priority value
to something less than 20, certain values for priority_change can cause to return -1, which is indistinguishable from an error return.
ERRORS
[EPERM] fails and does not change the nice value if priority_change is negative or greater than 40, and the effective user ID of the
calling process is not a user having appropriate privileges.
SEE ALSO
nice(1), renice(1M), exec(2), privileges(5).
STANDARDS CONFORMANCE
nice(2)