04-04-2020
I finally got it working. Thank you for all the help. I appreciate it.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
There 2 files in the folder /temp/tst/
1.txt
2.txt
When I run the command
find /temp/tst \( -name "*.txt" \) -exec tar cf /temp/123.tar {} \;
it creates the tar file 123.tar with only one file in it and that is 2.txt.But if I use the command
find /temp/tst \( -name "*.txt"... (1 Reply)
Discussion started by: rony_daniel
1 Replies
2. Shell Programming and Scripting
so i have hundreds of files named history.20071112.tar
(history.YYYYMMDD.tar)
and im looking to extract one file out of each archive called status_YYYYMMDDHH:MM.lis
here is what i have so far:
for FILE in `cat dirlist`
do
tar xvf $FILE ./status_*
done
dirlist is a text... (4 Replies)
Discussion started by: kuliksco
4 Replies
3. UNIX for Advanced & Expert Users
Hi,
On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.
a) /usr/users/oracle/bin
b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies
4. Shell Programming and Scripting
I am a new to Linux and try to write a script to join three multiple files.
For example, there are three files
file1
# comment
a Kevin
b Vin
c Sam
file 2
# comment
a 10
b 20
c 40
file 3
# comment
a blue
b yellow (7 Replies)
Discussion started by: bonosungho
7 Replies
5. Shell Programming and Scripting
Hi Guru's,
I have to write a shell script which groups file names based upon the certain matching string pattern, then creates the Tar file for that particular group of files and then zips the Tar file created for the respective group of files.
For example, In the given directory these files... (3 Replies)
Discussion started by: rahu_sg
3 Replies
6. Shell Programming and Scripting
Hi,
Can any one tell me if i can read two files in a shell script...
My actual requirement is to read the 1st text file and parse it to get the file code and use this file code to retrieve data from database and print the fetched data in the 2nd text file (I have parsed it and printed the... (2 Replies)
Discussion started by: funonnet
2 Replies
7. Shell Programming and Scripting
Hi All,
I am a beginner for shell programming. I have a requirement to ftp multiple files. Here are the details.
I have around thiry files in one directory, I want a shell script which selects 5 files at a time and does ftp them to another host . After the transfer for first files is... (0 Replies)
Discussion started by: srikanthn
0 Replies
8. Shell Programming and Scripting
Hi,
i use the below script to send a single file to remote server from linux.
ftp -nvi <<!EOF
open $Host_name
user $USER_ID $PWD
binary
mput $file_name
quit
!EOF (where i... (2 Replies)
Discussion started by: pradebban
2 Replies
9. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
10. Shell Programming and Scripting
Hey everyone! I made a shell script that would go through a file and replace any phrase or letter with another phrase or letter. Helps update variable names or values. The following code is this:
#!/bin/sh
Word1="$1"
Replace1="$2"
File1="$3"
arg=$( echo "$Word1" | sed 's:\:\\&:g' )... (3 Replies)
Discussion started by: rebmonk
3 Replies
rcsdiff(1) General Commands Manual rcsdiff(1)
NAME
rcsdiff - compareRCS revisions
SYNOPSIS
rev1] rev2] file ...
DESCRIPTION
compares two revisions of each given RCS file and creates output very similar to (see diff(1)). A file name ending in is an RCS file name,
otherwise it is a working file name. derives the working file name from the RCS file name and vice versa, as explained in rcsintro(5).
Pairs consisting of both an RCS and a working file name can also be specified.
recognizes the following options:
Same as described in
diff(1);
Same as described in
diff(1);
Same as described in
diff(1);
Same as described in
diff(1);
Generate an edit script of the format used by
RCS.
Generate a diff with lines of context.
The default is to present 3 lines of context. To change, specify n; for example, gives 10 lines of context.
modifies the output format slightly from the normal diff(1) output. The ``context'' output begins with identification of the
files involved and their creation dates, then each change is separated by a line with a dozen (asterisks). Lines removed from
file1 are marked with (dashes); those added to file2 with (pluses). Lines that are changed from one file to the other are
marked in both files with (exclamation marks).
If both rev1 and rev2 are omitted, compares the latest revision on the trunk with the contents of the corresponding working file. This is
useful for determining what was changed since the last check-in.
If rev1 is given, but rev2 is omitted, compares revision rev1 of the RCS file with the contents of the corresponding working file.
If both rev1 and rev2 are given, compares revisions rev1 and rev2 of the RCS file.
Both rev1 and rev2 can be given numerically or symbolically.
EXAMPLES
Compare the latest trunk revision of RCS file and the contents of working file
Compare the revisions 1.1 and 1.2 in the RCS file
AUTHOR
was developed by Walter F. Tichy.
SEE ALSO
ci(1), co(1), diff(1), ident(1), rcs(1), rcsmerge(1), rlog(1), rcsfile(4), rcsintro(5).
rcsdiff(1)