06-11-2012
Askari can this be done using shell script instead of perl.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I use the grep command to take mutiple text files in a folder and make one huge text file out of them. I'm using Mac OS X and can not find a text tool that does it so I figured I'd resort to the BSD Unix CLI for a solution... there are 5,300 files that I want to write to one huge file so... (7 Replies)
Discussion started by: coppertone
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a .txt file which has to be compared with a folder and print the difference to some other .txt file.
I did try with the diff command..i mean
diff /tmp/aaa/bbb.txt /space/aaa/bbb/
/***bbb.txt contains all the files names which may or may not exist in the folder bbb..so i need... (2 Replies)
Discussion started by: kumarsaravana_s
2 Replies
3. Shell Programming and Scripting
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Discussion started by: cgkmal
4 Replies
4. Shell Programming and Scripting
Hi all,
I am posting the thread similar to previous posts but here my scenario is i need to know what the files size from start date. Here end time file size will be 0. Also need to know how much time does it took to complete in seconds.
log file:
Name1 START 11:36:45 ... (5 Replies)
Discussion started by: Olivia
5 Replies
5. UNIX for Dummies Questions & Answers
Hi
i have gone through some sdiff command it shows the differences side by side and its really awesome
file 1:
this tool is for
checking the differ
merging with flower pots documentation
file 2:
this t ool is for
checking the differ
mergin g with flower pots documentation
... (27 Replies)
Discussion started by: rakeshkumar
27 Replies
6. Shell Programming and Scripting
Hi. I have a problem, could you help me ?
Situation:
there are alot of files in directory_1, with the names like "notneeded1blabla.bla", "notveryneededblabla.gla".
there is directory_2 that has directories with names like that: "bla_needed1", "blab_veryneeded".
What i need so much is to place... (7 Replies)
Discussion started by: sw_and
7 Replies
7. Shell Programming and Scripting
I have a file named file.txt that looks as follows
//class1.txt
45
234
67
89
90
//class2.txt
456
34
78
89
120
class1 and class2.txt are the names of files in a folder named folder1.
The content of class1.txt file in folder1
67 9
89 5
234 9The content of class2.txt file in... (1 Reply)
Discussion started by: jaff rufus
1 Replies
8. Shell Programming and Scripting
Hi,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies
9. Shell Programming and Scripting
Hi,
How do I compare two columns within a text file
If 2nd column values are same then I want to know 3rd column number matches or not
Example:
Prod Stag1 1234.79
Prod Stag2 1234.79 20
Prod Stag3 1234.79 30
Prod Stag4 1234.79
UAT Stag1 1243.56
UAT Stag2 1243.56 20
UAT ... (3 Replies)
Discussion started by: krux_rap
3 Replies
10. UNIX for Beginners Questions & Answers
Is it possible to create new folder and write a new text file in the folder while the current position is outside the new folder? in one line
mkdir folder | echo "hello test"> folder/test.txt
not work. (1 Reply)
Discussion started by: cmdcmd
1 Replies
LEARN ABOUT CENTOS
reposync
reposync(1) reposync(1)
NAME
reposync - synchronize yum repositories to a local directory
SYNOPSIS
reposync [options]
DESCRIPTION
reposync is used to synchronize a remote yum repository to a local directory, using yum to retrieve the packages.
OPTIONS
-h, --help
Display a help message, and then quit.
-c CONFIG, --config=CONFIG
Config file to use (defaults to /etc/yum.conf).
-a ARCH, --arch=ARCH
Act as if running the specified arch (default: current arch, note: does not override $releasever. x86_64 is a superset for i*86.).
--source
Also download .src.rpm files.
-r REPOID, --repoid=REPOID
Specify repo ids to query, can be specified multiple times (default is all enabled).
-t, --tempcache
Use a temp dir for storing/accessing yum-cache.
-p DESTDIR, --download_path=DESTDIR
Path to download packages to: defaults to current directory.
-g, --gpgcheck
Remove packages that fail GPG signature checking after downloading. exit status is '1' if at least one package was removed.
-u, --urls
Just list urls of what would be downloaded, don't download.
-l, --plugins
Enable yum plugin support.
-n, --newest-only
Download only newest packages per-repo.
-q, --quiet
Output as little information as possible.
EXAMPLES
Sync all packages from the 'updates' repo to the current directory:
reposync --repoid=updates
Sync only the newest packages from the 'updates' repo to the current directory:
reposync -n --repoid=updates
Sync packages from the 'updates' and 'extras' repos to the current directory:
reposync --repoid=updates --repoid=extras
Sync all packages from the 'updates' repo to the repos directory:
reposync -p repos --repoid=updates
Sync all packages from the 'updates' repo to the repos directory excluding x86_64 arch. Edit /etc/yum.conf adding option exclude=*.x86_64.
Then:
reposync -p repos --repoid=updates
FILES
reposync uses the yum libraries for retrieving information and packages. If no configuration file is specified, the default yum configura-
tion will be used.
/etc/yum.conf
/etc/yum/repos.d/
SEE ALSO
yum.conf (5)
http://yum.baseurl.org/
AUTHORS
See the Authors file included with this program.
BUGS
There are of course no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if
unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com
for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs.
27 April 2007 reposync(1)