10 More Discussions You Might Find Interesting
How can i write a command on AIX like the one i did at linux that find string in a file and show me that string, and return 3 lines before and 4 lines after that string.
my linux command is:
/bin/cat <filename> | tail -150 | grep -B2 -A8 "<string to look for>"
/bin/cat ... (10 Replies)
Discussion started by: yechi_r
2. 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)
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. 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
4. Shell Programming and Scripting
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
It wrote a whole... (21 Replies)
Discussion started by: shira
5. UNIX for Advanced & Expert Users
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
6. UNIX for Dummies Questions & Answers
Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX?
Thanks (6 Replies)
Discussion started by: skyineyes
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
8. UNIX for Dummies Questions & Answers
how do i save the file after i used CAT command line to modify?
Thanks :confused: (2 Replies)
Discussion started by: March_2007
9. Shell Programming and Scripting
What does the below command means
$cat <<% >abc.txt (3 Replies)
Discussion started by: surjyap
10. Shell Programming and Scripting
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
:D (2 Replies)
Discussion started by: alexd