Sponsored Content
Top Forums Shell Programming and Scripting Want to do this: cp *1.dbf *2.dbf Post 302763273 by zazzybob on Tuesday 29th of January 2013 07:55:39 PM
Old 01-29-2013
Must you use csh? This is easy with bash, for example:

Code:
# for file in *1.dbf; do cp ${file} `echo "${file}" | sed 's/1\.dbf/2\.dbf/'`; done

I don't use csh (or at least haven't for a long time) but a similar for loop using csh syntax will do the job.

Cheers,
ZB
 

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

ascii to dbf HELP!

Hi, Does anyone know of an ascii to dbf converter for sco unix? Or any flavor of unix for that matter. Thanks! Georgio (1 Reply)
Discussion started by: gseyforth
1 Replies

2. Solaris

oracle datafile *dbf

Hi ,,,, I have move an oracle db from old server to a new server ( solaris 5.9 is the operating system ) my problem is that to new server the datafile ( *.dbf ) are in a different path ..... example old : /export/home/data/blobs ........... new /oracle/data/blobs....... how i can... (3 Replies)
Discussion started by: tt155
3 Replies

3. Shell Programming and Scripting

how to read dbf file in shell script and to convert dbf file usinf shell script

Hi all, I am new to shell scripting. I have dbf file and I need to convert it into csv file. OR, can i read the fields from a .dbf file and OR seprate the records in dbf file and put into .csv or txt. Actually in the .dbf files I am getting , the numbers of fields may vary in very record and... (6 Replies)
Discussion started by: gauara
6 Replies

4. Shell Programming and Scripting

spilit the list of files in set ls -1 *.dbf

Dear All, Please help in this subject.. my requirement is list the files in directory and out of that list make the different set and each should set contains 10 files and assign to variable and start zipping in background. pick the second set files and same to be repeat the commands parallel. i... (3 Replies)
Discussion started by: nmadhuhb
3 Replies

5. UNIX for Dummies Questions & Answers

ArcGIS shapefile *.dbf file to ascii text

Okay, I search around and couldn't find what I needed, so here goes: I have a series of ArcGIS point shapefiles. If I open them in Excel I can save as an Excel or text file and get a 2 column list: POINTID | GRID_CODE 1 | 2.34234 2 | 4.3425 3 | 6.32456 etc... The problem is that I... (3 Replies)
Discussion started by: jbrandt1979
3 Replies
smd-server(1)						 Sync Mail Dir (smd) documentation					     smd-server(1)

NAME
smd-server - sends diffs and mails to smd-client SYNOPSIS
smd-server [--exclude glob] [-v|--verbose] [-d|--dry-run] [--get-mddiff-cmdline] [--stop-after-diff] [--override-db dbf] [--dump-stdin tgt] endpoint mailboxes DESCRIPTION
smd-server needs to know a name (endpoint) for the client (that must not be used by others) and a list of mailboxes (directories). smd-server first calls mddiff(1), then prints on stdout the generated diff. It then accepts from stdin a small set of commands a client may issue to request a file (or parts of it, like the header). smd-server is in charge of committing the db file used by mddiff(1) in case the client communicates a successful sync. OPTIONS
-v --verbose Increase program verbosity (printed on stderr) -d --dry-run Do not perform any action for real -n --no-delete Do not track deleted files --exclude glob Exclude paths matching glob --override-db dbf Use dbf as the db-file --get-mddiff-cmdline Print the command line used for mddiff and then exist --stop-after-diff Send the actions to the other endpoint and exit. If used in conjunction with --override-db, dbf is removed just before exiting --dump-stdin tgt Dump standard input to tgt and exit NOTES
smd-server is a low level utility. You should use higher level tools like smd-pull(1) and smd-push(1) SEE ALSO
mddiff(1), smd-client(1), smd-pull(1), smd-push(1) AUTHOR
Enrico Tassi <gares@fettunta.org> 11 June 2012 smd-server(1)
All times are GMT -4. The time now is 11:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy