06-13-2008
Quote:
Originally Posted by
aoussenko
How can I retrive the base name (f233pdb) and the path (/bb/data/) and assign them to two new variables, so the result will look like this
B=f233pdb
C=/bb/data/
Check the
man for
dirname and
basename.
10 More Discussions You Might Find Interesting
1. Ubuntu
Hi folks,
Ubuntu 7.04 server amd64
apache2-2.2.3
postfix-2.3.8
mysql Ver 14.12
SquirrelMail version 1.4.11
I have a running Mail Server. I need to make it as a file server, in addition, allowing users who have accounts (Linux/shell) on the Mail Server to upload/download their files... (1 Reply)
Discussion started by: satimis
1 Replies
2. HP-UX
Need help on making a loop script base on what is inside a file...
File to read: List.txt
List.txt contains below w/c are file name as well:
SAMPLEa
SAMPLEb
SAMPLEc
SAMPLEd
SAMPLEe
SAMPLEf
.
.
.
Want to make a loop that will manipulate those that are inside the file.txt w/c are... (3 Replies)
Discussion started by: JohnBalayo
3 Replies
3. UNIX for Dummies Questions & Answers
To make it clearer:
I have a file, List.txt
List.txt contains: (these are actually splitted files w/c I got from ls command and dump them to the List.txt file)
SAMPLEa
SAMPLEb
SAMPLEc
SAMPLEd
SAMPLEe
SAMPLEf
.
.
.
.
.
And I want to rename these files to have a .dat extension.... (3 Replies)
Discussion started by: JohnBalayo
3 Replies
4. Shell Programming and Scripting
hi
i have a cfg file,it contains
lpdma520.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FT
lpdma521.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FTREQ
lpdma522.dev.ipc.us.aexp.com=SUBMITSECUREFILEFLOW
i am retrieving the values using the function
RetrieveCfgvalue()
{
CFG_VALUE=`grep "$2="... (1 Reply)
Discussion started by: satish@123
1 Replies
5. UNIX for Advanced & Expert Users
How will retrieve for a particular months file in UNIX say for example from January to February 2008. (1 Reply)
Discussion started by: rajesh08
1 Replies
6. UNIX for Dummies Questions & Answers
Hi Guys,
How to retrieve/get *.sql file names which we refer in all *.sh files.
Can any one help me on this.
Thanks,
Kolipaka (3 Replies)
Discussion started by: lakshmanrk811
3 Replies
7. Shell Programming and Scripting
HI
I have input file A.txt
X
Y
Z
File B.txt
1 X 10 AAA 11123
2 Y 22 PlD 4563
3 Z 55 PlD 54645
4 Z 66 PlD 15698
5 F 44 PlD 154798
6 C 55 PlD 12554
7 Z 88 PlD 23265
8 C 99 PlD 151654
9 C 11 PlD 21546546
I need New File C.txt (1 Reply)
Discussion started by: pareshkp
1 Replies
8. Linux
Hi,
Anyone can help, I have a large textfile (one file), and I need to split into multiple file to break each file into ^L.
My textfile
==========
abc company
abc address
abc contact
^L
my company
my address
my contact
my skills
^L
your company
your address
========== (3 Replies)
Discussion started by: fspalero
3 Replies
9. UNIX for Beginners Questions & Answers
Hi,
I am trying to find out whether there are any Unix utilities that compares folders, files and contents within the file and provides a comprehensive report. The comparison can be against base version of a folder and file with content. Can you please let me know of such a utility?
Thanks,... (6 Replies)
Discussion started by: Sripathi_ks
6 Replies
10. UNIX for Beginners Questions & Answers
I am having trouble matching *two* strings from one file anywhere in a line of a second file, and could use some help getting this figured out. My preference would be to use grep for this because I would like to take advantage of its -A option. The latter is due to the fact that I would like both... (2 Replies)
Discussion started by: jvoot
2 Replies
vdiff(1) ShapeTools vdiff(1)
NAME
vdiff - display line-by-line differences between versions of files
SYNOPSIS
vdiff [ diff-options ] [ -base path ] [ -P ] files ..
DESCRIPTION
vdiff is a differential comparator for file versions that are stored in shapeTools' object base, AtFS. The functionality of vdiff is very
similar to the diff command on your host. All options and switches that are recognized by diff can also be specified for vdiff.
The arguments to vdiff can either be a single filename, or a pair of version identifiers. If only a filename is specified, vdiff prints the
differences between the specified file and the most recent version of this file that is stored in the AtFS object base. A file can be com-
pared to any stored version by specifying the version as first, and the filename as second argument. If both arguments are version identi-
fiers, the difference between these two versions is printed.
Differences between files and versions can be printed in any style that is supported by the local diff program.
Version identifiers consist of the filename, and a version number or alias name for a version, enclosed in brackets. Example:
retrieve.c[4.22] or retrieve.c[Rel-4.1]
vdiff creates temporary copies of the versions that shall be compared, invokes the diff command, and finally removes the temporary copies.
OPTIONS
-base path
If vdiff is told to produce a context diff, the filenames of the compared objects are mangeled so that the specified path replaces
the path of the current directory in the full pathnames appearing in the diff-header. This is useful to replace an absolute pathname
by a relative pathname and makes the produced context-diff easier to digest for the patch program.
-P With the -P switch turned on, vdiff won't give up if one of the two objects that shall be compared does not exist. In this case an
empty object is substituted for the missing one, causing the diff to be the complete contents of the existing object. This is useful
in situations when complex patches are produced that upgrade one release of a software system to a new release, and the system has
structurally changed (i.e. new files have been added to the system).
SEE ALSO
diff(1), vcat(1)
AUTHOR
Axel.Mahler@cs.tu-berlin.de
vc_scripts-2.5 Tue Jun 29 16:42:06 1993 vdiff(1)