10-01-2010
Thanks! That helped a lot! Not to be a pain, but would you know how to format it so all the results don't appear on one line?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have several files with data that have to be imported to a database. These files contain records with separator characters. Some records are corrupt (2 separators are missing) and I need to correct them prior to importing them into the db.
Example:
... (5 Replies)
Discussion started by: stresing
5 Replies
2. UNIX for Dummies Questions & Answers
What's the best way to see if a common name exists in two separate files? (3 Replies)
Discussion started by: Rally_Point
3 Replies
3. UNIX for Dummies Questions & Answers
I couldn't find the original thread that I created and since I didn't get a definitive answer, I figured I'd try again. Maybe this time I can describe what I want a little better.
I've got two files, each with thousands of names all separated by new line. I want to know if 'name in file1'... (2 Replies)
Discussion started by: Rally_Point
2 Replies
4. Shell Programming and Scripting
Hello folks,
I have a text file aa.txt that contains below text
(\')|(\-\-)
((\%3D)|(=))
20%0d%
i want to search each line pattern in /opt/1.log and /opt/2.log. Can some one suggest (1 Reply)
Discussion started by: learnbash
1 Replies
5. Shell Programming and Scripting
Hello UNIX experts,
I have 124 text files in a directory. I want to extract the 45678th line of all the files sequentialy by file names. The extracted lines should be printed in the output file on seperate lines.
e.g. The input Files are one.txt, two.txt, three.txt, four.txt
The cat of four... (1 Reply)
Discussion started by: yogeshkumkar
1 Replies
6. Shell Programming and Scripting
I am trying to search for 2 files using the find command as below
find -name file1.txt -a -name file2.txt
It doesn't give a result although the files exist in the folder, however when i try the following
find -name file1.txt -o -name file2.txt
It does give me the result.
./file2.txt... (4 Replies)
Discussion started by: vivek_damodaran
4 Replies
7. UNIX for Dummies Questions & Answers
I have a file that has information for a person....each person gets 3 or more lines to describe them.
I was hoping to match person 1, then person 2.....BUT I do not know how to tell grep I only want the first (2nd, 3rd or nth) match.
The alternative is doing line by line logic, which is fine... (8 Replies)
Discussion started by: countryStyle
8 Replies
8. Shell Programming and Scripting
Please help me how can I display every nth field present in a "|" delimited file.
Ex: If a have a file with data as a|b|c|d|e|f|g|h|k|l|m|n
I want to display every 3rd feild which means the output should be
c
f
k
n
Please help me. (1 Reply)
Discussion started by: ngkumar
1 Replies
9. Shell Programming and Scripting
Hi all...
Can somebody pls help me with this...
I have a directory (dir1) which has many subdirectories(vr001,vr002,vr003..) with each subdir containing similar text file(say ras.txt).
I have another directory(dir2) which has again got some subdir(vr001c,vr002c,vr003c..) with each subdir... (0 Replies)
Discussion started by: bramya07
0 Replies
10. Shell Programming and Scripting
Is there an awk script that can easily perform the following operation?
I have a data file that is in the format of
1944-12,5.6
1945-01,9.8
1945-02,6.7
1945-03,9.3
1945-04,5.9
1945-05,0.7
1945-06,0.0
1945-07,0.0
1945-08,0.0
1945-09,0.0
1945-10,0.2
1945-11,10.5
1945-12,22.3... (3 Replies)
Discussion started by: ncwxpanther
3 Replies
LEARN ABOUT DEBIAN
unrar-free
UNRAR-FREE(1) General Commands Manual UNRAR-FREE(1)
NAME
unrar-free -- extract files from rar archives
SYNOPSIS
unrar-free [-xtfp?V] [--extract] [--list] [--force] [--extract-newer] [--extract-no-paths] [--password] [--help] [--usage] [--ver-
sion] ARCHIVE [FILE ...] [DESTINATION]
DESCRIPTION
unrar-free is a program for extracting files from rar archives.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below.
-x --extract
Extract files from archive (default).
-t --list
List files in archive.
-f --force
Overwrite files when extracting.
--extract-newer
Only extract newer files from the archive.
--extract-no-paths
Don't create directories while extracting.
-p --password
Decrypt archive using a password.
-? --help
Show program help.
--usage Show short program usage message.
-V --version
Show version of program.
NON-FREE UNRAR COMPATIBLE SYNOPSIS
unrar-free [elvx] [-ep] [-o+] [-o-] [-ppassword] [-u] [--] ARCHIVE [FILE ...] [DESTINATION]
This syntax should only be used in front-end programs which are using non-free unrar as a back-end. It is recommended to use this program
by GNU command line syntax.
e Extract files from archive without full path.
l List files in archive.
v Verbose list files in archive.
x Extract files from archive with full path.
-ep Don't create directories while extracting.
-o+ Overwrite files when extracting.
-o- Don't overwrite files when extracting.
-p Decrypt archive using a password.
-u Only extract newer files from the archive.
-- Disable further switch processing. Any switch after the -- are treated as filenames and destination.
BUGS
Advanced features of version 3.0 archives are not currently supported.
AUTHORS
unrar-free was written by Ben Asselstine based on UniquE RAR File Library by Christian Scheurer and Johannes Winkelmann.
This manual page was written by Niklas Vainio <niklas.vainio@iki.fi> for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
UNRAR-FREE(1)