09-26-2003
Hi,
although its not so nice to convert the * to a - its a solution.
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
On Solaris 5.8 in ksh,
I have a sample.txt with contents
A 105 305
B 205 405
C 100 198
.......................
when I do a cat sample.txt the O/P is exactly as above but when I do a echo `cat sample.txt` the O/P changes to
A 105 305 B 205 405 C 100 198...........
Everything is... (3 Replies)
Discussion started by: macrulez
3 Replies
2. Shell Programming and Scripting
Hello again;
I have a file in this format
./this is/first/1
./this is/second/2
./this is/third/3
and i am using this file in a for loop with cat command like this
for i in `cat directory.txt`
do
..........
done
Bu there is a problem because my directory is "this is" but... (7 Replies)
Discussion started by: redbeard_06
7 Replies
3. UNIX for Advanced & Expert Users
system("cat FILENAME | perl -e 'while(<>) { print $_;}'");
system("cat FILENAME | perl -e 'while(<>) { $_ =~ s/XXX/YYY/g; print $_;}'");
First command works fine but second command gives the following error:
syntax error at -e line 1, near "{ =~"
syntax error at -e line 1, near ";}"... (2 Replies)
Discussion started by: jingi1234
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX?
Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am having a little trouble understanding how to use this cat command. My question is the following:
write a command to create a file called catFiles that contains three copies of the file catFile.
If you can help me to understand how to create this, I would be very greatful.
Thanks... (2 Replies)
Discussion started by: rushhour
2 Replies
6. Shell Programming and Scripting
Hi All,
I was trying to run the cat command using perl SCRIPT for my daily reports.
However cat command is not working in PERL.
please help me.
cat FILE1.txt |cut -d "|" -f1 >INPUT1.txt
cat FILE2.txt|wc -l *9111*|>INPUT2.txt
paste INPUT1,INPUT2 >OUTPUT.txt
Thanks in advance
... (3 Replies)
Discussion started by: adaleru
3 Replies
7. Shell Programming and Scripting
I am trying to use the following code:
cat *.txt > OutPutFile.txt
Using files with a expression in one single line that always end with " ; " something like this:
Block1.txt
Block2.txt
Block3.txt
The expected result should be something like this:
OutPutFile.txt:
My code works OK in this... (4 Replies)
Discussion started by: Xterra
4 Replies
8. Shell Programming and Scripting
Hey all this is probably something simple but not sure why I am getting this error. Any help is appreciated.
Expected output:
$ ./ex_01.ksh word1 word2 word3 word4
arguments: word1 word2 word3 word4
Number of arguments: 4
what I am getting:
./ex_01.ksh word1 word2 word3 word4
cat:... (3 Replies)
Discussion started by: linuxn00b
3 Replies
9. Shell Programming and Scripting
Hello,
I want to find some keywords in a dd image.
I have created a keyword file (1.txt) and search the dd image using,
cat /media/sdb1/test/c.dd.001 | strings | egrep -i --color -f 1.txt
It works,
But how can I get the file name and path?
Many thanks. (7 Replies)
Discussion started by: yzy9951
7 Replies
10. Shell Programming and Scripting
Hi Team,
Not getting the file output inside my email which i am sending from unix box. . Please refer the below code :
#!/bin/sh
{
sleep 5
echo ehlo 10.56.185.13
sleep 3
echo mail from: oraairtel@CNDBMUREAPZP02.localdomain
sleep 3
echo rcpt to: saurabhtripathi@anniksystems.com... (1 Reply)
Discussion started by: tripathi1990
1 Replies
nice(3) Library Functions Manual nice(3)
NAME
nice - Changes the scheduling priority of a process
LIBRARY
Standard C Library (libc) Berkeley Compatibility Library (libbsd)
SYNOPSIS
#include <unistd.h>
int nice( int increment);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
nice(): XSH4.2
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies a value that is added to the current process priority. You can specify a negative value.
DESCRIPTION
The nice() function adds the value specified in the increment parameter to the nice value of the calling process. The nice value is a non-
negative number; a higher nice value gives the process a lower CPU priority.
When you are using the Standard C Library version of the nice() function, the maximum nice value for a process is 39 (2 * {NZERO} -1) and
the minimum is 0 (zero). Requests for values outside these limits result in the nice value being set to the corresponding limit.
[XPG4-UNIX] If execution of the Standard C Library nice() function fails, the system does not alter the specified priority.
Any process can lower its priority (numerically raise its nice value). A process must have superuser privileges to raise its priority
(numerically lower its nice value).
[Tru64 UNIX] For backward compatibility, a version of the nice() function is supported that allows nice values in the range of -20 to 20.
Requests for values above or below these limits result in the nice value being set to the corresponding limit. To use the backward-compat-
ible version of nice(), compile with the Berkeley Compatibility Library (libbsd.a).
RETURN VALUES
Upon successful completion, the nice() function returns the new nice value minus 20 ({NZERO}). Otherwise, the function returns -1 and sets
errno to indicate the error.
ERRORS
The Standard C Library version of nice() sets errno to the specified values for the following conditions: The calling process does not have
appropriate privilege.
[Tru64 UNIX] The libbsd.a version of nice() sets errno to the same values as the setpriority() function. For information about possible
return values for the setpriority() function, see setpriority(2).
RELATED INFORMATION
Functions: exec(2), getpriority(2), setpriority(2)
Standards: standards(5) delim off
nice(3)