10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I will like to merge several files using 'cat', but I observe the output is not consistent. the merge begins at the last line of the first file.
cat file1.txt file2.txt > file3.txt
cccc... (13 Replies)
Discussion started by: geomarine
2. Shell Programming and Scripting
I have a directory that is restricted and I cannot just copy the files need, but I can cat them and redirect them to a new directory. The files all have the date listed in them. If I perform a long listing and grep for the date (150620) I can redirect that output to a text file. Now I need to... (5 Replies)
Discussion started by: trigger467
3. UNIX for Dummies Questions & Answers
Is there any way to do a cat * where it shows the name of each file in the process? Similar to what more does below?
$ more ?.sql
set linesize 200
cast(... (5 Replies)
Discussion started by: newbie_01
4. UNIX for Dummies Questions & Answers
I have list of files
... (1 Reply)
Discussion started by: radius
5. UNIX Desktop Questions & Answers
I have a number of files in a directory named like this:
fooP1, fooN1, fooP2, fooN2 ... fooP(i), fooN(i).
I'd like to know how to combine each P and N pair into a single file, foo(i)
John Balwit (1 Reply)
Discussion started by: balwit
6. Shell Programming and Scripting
Here is what i'm trying to do,
-Check in two directories for a user inputed filename
-Then cat all the version found of the file to the current screen
I am a total nembie to programming, here what i have done so far....
#Check in /home/loonatic and /var/named/master... (2 Replies)
Discussion started by: Loonatic
7. Shell Programming and Scripting
Hopefully the title summarized what I need help with. I have multiple files that I would like to concatenate in bash.
cat file1 file2 file3 > bigfile
except I do not want to include the first line from each file (). Any help? Thanks. (6 Replies)
Discussion started by: sanimfj
8. Shell Programming and Scripting
I have a directory with many subdirectories each named like so: KOG0001, KOG0002, ...KOG9999.
Each of these subdirectories contain a variable number two kinds of files (nuc and prot) named like so: Capitella_sp_nuc_hits.fasta (nuc) and Capitella_sp_prot_hits.fasta (prot). The... (2 Replies)
Discussion started by: kmkocot
9. UNIX for Dummies Questions & Answers
I'm trying to figure out how to use cat more wisely. I have the following command, which works, but I'd like to understand how to get it to work more clearly and efficiently.
cat 'my file.001' 'my file.002' 'my file.003' 'my file.004' 'my file.005' 'my file.006' 'my file.007' 'my... (6 Replies)
Discussion started by: rlinsurf
10. Shell Programming and Scripting
I am writing a script that is running a loop on one file to obtain records from another file.
Using egrep, I am finding matching records in file b, then outputing feilds of both into another file.
cat $filea | while read line
do... (1 Reply)
Discussion started by: djsal