09-15-2010
Quote:
You can do command < file instead of cat file | command and save on some memory and a lot of time.
Both these assumptions do not stand up to benchmark testing except perhaps on the first use of "cat" after a clean boot.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi everybody,
how do i open a txt file writen in unix on to a web page
so when i want to view the txt file that was generated from a shell program, that file is open on a web page
do i use the cat > filename.html command to do this, or is there another way
many thanks
:D (2 Replies)
Discussion started by: alexd
2 Replies
2. Shell Programming and Scripting
What does the below command means
$cat <<% >abc.txt (3 Replies)
Discussion started by: surjyap
3 Replies
3. UNIX for Dummies Questions & Answers
All -
how do i save the file after i used CAT command line to modify?
Thanks :confused: (2 Replies)
Discussion started by: March_2007
2 Replies
4. AIX
I would like to append some statement into 1 single file so that it can be concatenate together in 1 word. I have tried >> but it will seperate my 2 statement into 2 rows.
# cat abc.txt cde.txt > result.txt
where abc.txt is "abcde" and cde.txt is "12345"
the result should come out as... (3 Replies)
Discussion started by: kwliew999
3 Replies
5. 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
6. UNIX for Advanced & Expert Users
Dear All
I have two text files File1.txt and File2.txt . I am concatenating the two files and making it as single file Cat_File.txt. Now i need to keep joined file in two different path. that is I need to use cat command only once ,but store joined file in two different locations. Since... (3 Replies)
Discussion started by: tkbharani
3 Replies
7. Shell Programming and Scripting
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies
8. UNIX for Advanced & Expert Users
I believe I used the cat command to append a file beside another file (instead of below it) but I did not document it any where and I can't remember exactly how I did it. Has anyone else done this? I have tried all the cat options individually with no luck. It may be a combination of options.
... (2 Replies)
Discussion started by: nickg
2 Replies
9. Shell Programming and Scripting
I want to concatenate 100 files to one file and append file name in each record to find out which file it came from
for a in $(<shal_group)
do
cat $a >> bigoutput.group
The above code put all files in one file but i want file name appended to each file
Record should be like this... (3 Replies)
Discussion started by: pinnacle
3 Replies
10. Homework & Coursework Questions
I have a file "sample.txt" with the content as below:
Hi
This is a Sample Text.
I need a single command using cat which serve the following purpose.
1.display the contents of sample.txt
2.append some text to it
3. and then exit
But, all should be served by a sinle... (1 Reply)
Discussion started by: ashok.g
1 Replies
WALL(1) User Commands WALL(1)
NAME
wall - write a message to all users
SYNOPSIS
wall [-n] [-t timeout] [-g group] [message | file]
DESCRIPTION
wall displays a message, or the contents of a file, or otherwise its standard input, on the terminals of all currently logged in users.
The command will wrap lines that are longer than 79 characters. Short lines are whitespace padded to have 79 characters. The command will
always put a carriage return and new line at the end of each line.
Only the superuser can write on the terminals of users who have chosen to deny messages or are using a program which automatically denies
messages.
Reading from a file is refused when the invoker is not superuser and the program is set-user-ID or set-group-ID.
OPTIONS
-n, --nobanner
Suppress the banner.
-t, --timeout timeout
Abandon the write attempt to the terminals after timeout seconds. This timeout must be a positive integer. The default value is
300 seconds, which is a legacy from the time when people ran terminals over modem lines.
-g, --group group
Limit printing message to members of group defined as a group argument. The argument can be group name or GID.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
NOTES
Some sessions, such as wdm, that have in the beginning of utmp(5) ut_type data a ':' character will not get the message from wall. This is
done to avoid write errors.
SEE ALSO
mesg(1), talk(1), write(1), shutdown(8)
HISTORY
A wall command appeared in Version 7 AT&T UNIX.
AVAILABILITY
The wall command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-
linux/>.
util-linux August 2013 WALL(1)