What have you tried?
You need to loop over the files in the directory - the loop is not valid syntax; I'm trying to get you to understand how to solve your problem.
Sample works for Linux sed only
You really should tell us your exact OS and shell.
This User Gave Thanks to jim mcnamara For This Post:
Hi all,
I am newbie and hope that you can help me to rename a file
If I have a file name Perform.01222006.12345.Log now I would like to backup another file with another name like perform-20060112.dat
This is a flat file, and I want to collect some field, then put it in a new file from... (9 Replies)
In C Shell programming I haven't successfully been able to append the date in the format mmddyyyy to a filename. I've tried the following:
I can print out the date in the correct format: date +%x | sed ‘s/\///g
I can create a variable with the filename: set newfile=changedfiles
I can... (3 Replies)
Hi,
Plz suggest me how can i change the date of a file.
Suppose my file has been created in some date and i want to give it present date.
How can i do this???? (2 Replies)
Hi all,
I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date.
So for example, if I have a date of the 23rd July 2010, I would like a script that can work out that one week back was... (4 Replies)
Hello to all.
I work at AIX system without perl installed and I am restricted user, so I am limited to bash. In script that I am writing, I have to read line from file and transform date that I found inside to Unix timestamp. Line in file look something like this:
Tue Mar 29 06:59:00... (5 Replies)
i would like to know how to append current date in a filename with .tgz extension.
#!/usr/bin/perl
my $date = `date + %Y%m%d`;
system("sudo mv /tmp/nyucs01_config_backup.tgz /misc/nyucs01_config_backup_$date.tgz");
im getting this error message:
sh: line 1: .tgz: command not found (7 Replies)
I have multiple txt files which begin with the word "orders" in folder C:\source. I need to move the files to folder C:\dest and rename them to "process_<date>_<count>"
So for example , if there are 3 files ordersa.txt , ordersb.txt and ordersc.txt in C:\source , after running the script I want... (1 Reply)
I have multiple txt files which begin with the word "orders" in folder C:\source. I need to move the files to folder C:\dest and rename them to "process_<date>_<count>"
So for example , if there are 3 files ordersa.txt , ordersb.txt and ordersc.txt in C:\source , after running the script I want... (7 Replies)
Hi
i want to list files based on date and change the date alone in the files in a directory
abc20120101.txt
xyzxyxz20120101.txt
ccc20120201.txt
ddd20120301.txt
In the above i want to select only files having date 20120101 and rename the date for those files like below
abc20111231.txt... (3 Replies)
I have a file hello.txt which was created today (today's date timestamp)
I wish to change its date timestamp (access, modified, created) to 1 week old i.e one week from now.
uname -a
SunOS mymac 5.11 11.2 sun4v sparc sun4v
Can you please suggest a easy way to do that ? (12 Replies)
Discussion started by: mohtashims
12 Replies
LEARN ABOUT DEBIAN
extend
extend(1) General Commands Manual extend(1)NAME
extend -- produce an extended elevation from a .3d file
SYNOPSIS
extend [--specfile configuration .espec file] input .3d file [output .3d file]
Description
Note:
The extend program can also work on Compass .plt (as can aven and any other Survex program which reads .3d files).
If no specfile is given, extend starts with the highest station marked as an entrance which has at least one underground survey leg
attached to it. If there are no such stations, the highest deadend station in the survey (or the highest station if there are no deadends)
is used. Extend puts the first station on the left, then folds each leg out individually to the right, breaking loops arbitrarily (usually
at junctions).
If the output filename is not specified, extend bases the output filename on the input filename, but ending "_extend.3d". For example,
extend deep_pit.3d produces an extended elevation called deep_pit_extend.3d.
This approach suffices for simple caves or sections of cave, but for more complicated situations human intervention is required. More com-
plex sections of cave can be handled with a specfile giving directions to switch the direction of extension between left and right, to
explicitly specify the start station, or to break the extension at particular stations or legs.
The specfile is in a format similar to cavern's data format:
;This is a comment
; start the elevation at station entrance.a
*start entrance.a ;this is a comment after a command
; start extending leftwards from station half-way-down.5
*eleft half-way-down.5
; change direction of extension at further-down.8
*eswap further-down.8
; extend right from further-down.junction, but only for
; the leg joining it to very-deep.1, other legs continuing
; as before
*eright further-down.junction very-deep.1
; break the survey at station side-loop.4
*break side-loop.4
; break survey at station side-loop.junction but only
; for leg going to complex-loop.2
*break side-loop.junction complex-loop.2
This approach requires some trial and error, but gives useful results for many caves. The most complex systems would benefit from an
interactive interface to select and view the breaks and switches of direction.
See Also3dtopos(1), aven(1), cad3d(1), cavern(1), diffpos(1), sorterr(1), svxedit(1)extend(1)