Sponsored Content
Full Discussion: * in end of filename
Top Forums Shell Programming and Scripting * in end of filename Post 302606646 by mann2719 on Monday 12th of March 2012 10:15:06 AM
Old 03-12-2012
* in end of filename

Hi,

i have some files which looks like given below:
Code:
-rwxrwxrwx   1 amsbatch ams         1608 Oct 22  2009 AMS_BATCH_COMPILE*
-rwxr-----   1 amsbatch ams         1608 Oct 22  2009 AMS_BATCH_COMPILE_original*
-rwxrwxrwx   1 amsbatch ams         1127 Dec  1  2005 AMS_LMU.sh*
drwxr-xr-x   2 amsbatch ams          512 Mar 12 11:01 AMS

in some of file after filename * (star) is appended and it also exists for .sh file.

Could you please help me out what * signifies in the end and how a sh* differ from sh file.

Last edited by methyl; 03-12-2012 at 11:18 AM.. Reason: please use code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grabing Date from filename and adding to the end of each line in the file.

Hi, I have 24 .dat files something like below. The file name starts with “abc” followed by two digit month and two digit year. Is there a way to grab the month and year from each filename and append it to the end of each line. Once this is done I want to combine all the files into file... (1 Reply)
Discussion started by: rkumar28
1 Replies

2. Shell Programming and Scripting

How to add filename to the end of each line in file

Hi, I'm reading data from comma separated files to DB. Now there is a need to have the name of the input file in each row of that file. How can I do this in unix script? Example: $cat file1 value11,value12, value,13 value21,value22, value,23 value31,value32, value,33 And the result... (2 Replies)
Discussion started by: tmikahan
2 Replies

3. Shell Programming and Scripting

How to remove a newline character at the end of filename

Hi All, I have named a file with current date,time and year as follows: month=`date | awk '{print $2}'` date=`date | awk '{print $3}'` year=`date | awk '{print $6}'` time=`date +%Hh_%Mm_%Ss'` filename="test_"$month"_"$date"_"$year"_"$time".txt" > $filename The file is created with a... (2 Replies)
Discussion started by: amio
2 Replies

4. Shell Programming and Scripting

Script to delete text from the end of a filename

Hi all, I am trying to write a script that will delete a certain amount of text from the end of a filename. For example. Input: name of file (more text).pdf Output: name of file.pdf So is it possible to write a script the deletes, in this example twelve (12) digits from the end... (6 Replies)
Discussion started by: Monkey Dean
6 Replies

5. Shell Programming and Scripting

sed script to remove nth characters from end of filename

Hi all, I have this basic script to remove, in this case 9 characters from the end of a file name. This is what I have so far, for file in *.mov do newname=`echo $file | sed 's/\(.*\)........./\1/' ` mv "$file" "$newname" done The problem is that it removes the file extension as well.... (2 Replies)
Discussion started by: Monkey Dean
2 Replies

6. UNIX for Dummies Questions & Answers

* at the end of filename after chmod

Have you seen this before on Solari? Create file -> chmod file-> file gets a * at the end of filename Ex1) gate@server1# ll total 8 drwxr-xr-x 2 stdbgate dba 512 Jan 18 14:30 ./ drwxr-xr-x 3 stdbgate dba 512 Jan 18 14:18 ../ -rw-r--r-- 1 stdbgate dba ... (3 Replies)
Discussion started by: drbiloukos
3 Replies

7. Shell Programming and Scripting

Help Needed! - Cut characters after a text string and append to end of filename

Hi all.. I have several unique files that contain one thing in common, and that is acct#. For all files in the directory, I want to append the 10 characters following the word "ACCOUNT:" to the end of the filename. for example: I have file 111_123 that contains ACCOUNT:ABC1234567 The file... (5 Replies)
Discussion started by: cinderella1
5 Replies

8. UNIX for Dummies Questions & Answers

Yum gives error : filename does not end in .rpm.

Hi there /root #yum localinstall sg3_utils Loaded plugins: product-id, refresh-packagekit, subscription-manager Updating Red Hat repositories. Setting up Local Package Process Skipping: sg3_utils, filename does not end in .rpm. Nothing to do /root # above is the error /root... (6 Replies)
Discussion started by: heman96
6 Replies

9. UNIX for Dummies Questions & Answers

[Solved] Appending beginning of filename to end

Hi Guys, I have serveral directories like this: (2013) blablabla(blabla) - blabla (blabla) or (1997) blablabla(blabla) - blabla (blabla) and have to rename them to something like that: blablabla(blabla) - blabla (blabla) (2013) and blablabla(blabla) - blabla (blabla) (1997) Easy... (2 Replies)
Discussion started by: Nateshift
2 Replies

10. UNIX for Beginners Questions & Answers

Copy filepath along with filename at end of another file

Hi , Please help me out for the below problem - I have 2 files in a directory - $ ls -ltr total 4 -rwx------+ 1 abc Domain Users 615 May 31 17:33 abc.txt -rwx------+ 1 abc Domain Users 0 May 31 17:33 ll.sh I want to write the filename of abc.txt along with the directory to the... (2 Replies)
Discussion started by: Pratik4891
2 Replies
VME(9)							   BSD Kernel Developer's Manual						    VME(9)

NAME
VME, vme_probe, vme_space_map, vme_space_unmap, vme_intr_map, vme_intr_establish, vme_intr_disestablish, vme_intr_evcnt, vme_dmamap_create, vme_dmamap_destroy, vme_dmamem_alloc, vme_dmamem_free, vme_space_alloc, vme_space_free, vme_space_get -- Versa Module Euroboard bus SYNOPSIS
#include <sys/bus.h> #include <dev/vme/vmereg.h> #include <dev/vme/vmevar.h> int vme_probe(void *vc, vme_addr_t vmeaddr, vme_size_t len, vme_am_t am, vme_datasize_t datasize, int (*callback)(), void *arg); int vme_space_map(void *vc, vme_addr_t vmeaddr, vme_size_t len, vme_am_t am, vme_datasize_t datasize, vme_swap_t swap, bus_space_tag_t *tag, bus_space_handle_t *handle, vme_mapresc_t *resc); void vme_space_unmap(void *vc, vme_mapresc_t resc); int vme_intr_map(void *vc, int level, int vector, vme_intr_handle_t *handlep); void * vme_intr_establish(void *vc, vme_intr_handle_t handle, int prio, int (*func)(void *), void *arg); void vme_intr_disestablish(void *vc, void *cookie); const struct evcnt * vme_intr_evcnt(void *vc, vme_intr_handle_t handle); int vme_dmamap_create(void *vc, vme_size_t size, vme_am_t am, vme_datasize_t datasize, vme_swap_t swap, int nsegs, vme_size_t segsz, vme_addr_t bound, int flags, bus_dmamap_t *map); void vme_dmamap_destroy(void *vc, bus_dmamap_t map); int vme_dmamem_alloc(void *vc, vme_size_t size, vme_am_t am, vme_datasize_t datasize, vme_swap_t swap, bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags); void vme_dmamem_free(void *vc, bus_dma_segment_t *segs, int nsegs); int vme_space_alloc(struct vmebus_softc *tag, vme_addr_t addr, vme_size_t size, vme_am_t ams); void vme_space_free(void *vc, vme_addr_t addr, vme_size_t size, vme_am_t ams); int vme_space_get(void *vc, vme_size_t size, vme_am_t ams, u_long align, vme_addr_t *addr); DESCRIPTION
The VME bus provides support for VME devices. The VME bus is a high-performance backplane bus for use in computer systems. It is based on the VMEbus specification initially released by the VMEbus International Trade Association (VITA) in August of 1982. It has since undergone IEC and IEEE standardisation. The VME bus supports 8, 16, and 32-bit transfers over non-multiplexed 32-bit data and address paths. The latest revisions allow 64-bit, mul- tiplexed transfers. It supports asynchronous, fully handshaken transfers at speeds up to 80 MB/sec. It has a master-slave architecture, encouraging multiprocessing and supports up to seven interrupt levels. DATA TYPES
Drivers attached to the VME bus will make use of the following data types: vme_chipset_tag_t An opaque type identifying the bus controller. vme_addr_t Addresses on the bus. vme_am_t Address modifiers. Valid values are VME_AM_A32, VME_AM_A16, VME_AM_A24, VME_AM_USERDEF (user/vendor definable), VME_AM_MBO, VME_AM_SUPER, VME_AM_USER, VME_AM_DATA, VME_AM_PRG, VME_AM_BLT32 and VME_AM_BLT64. vme_datasize_t The datasize of the address space. Valid values are VME_D8, VME_D16, and VME_D32. vme_mapresc_t Generic placeholder for any resources needed for a mapping. vme_intr_handle_t An opaque type describing an interrupt mapping. vme_swap_t Hardware swap capabilities for controlling data endianness. Valid values have not been specified yet. struct vme_range A structure used to describe an address range on the VME bus. It contains the following members: vme_addr_t offset; vme_size_t size; vme_am_t am; struct vme_attach_args A structure used to inform the driver of the device properties. It contains the following members: vme_chipset_tag_t va_vct; bus_dma_tag_t va_bdt; int ivector; int ilevel; int numcfranges; struct vme_range r[VME_MAXCFRANGES]; FUNCTIONS
vme_probe(vc, vmeaddr, len, am, datasize, callback, arg) Probes the VME space managed by controller vc at address vmeaddr, length len, with address modifiers am and datasize datasize for a device. If a VME device is found, the function callback() (if it is not NULL) is called to perform device-specific identification. callback() is called with the argument arg, and the bus-space tag and bus-space handle for accessing the VME space mapping and should return a nonzero positive integer for a positive device match. vme_space_map(vc, vmeaddr, len, am, datasize, swap, tag, handle, resc) Maps the VME space managed by controller vc at address vmeaddr, length len, with address modifiers am, datasize datasize and endian- ness swap for a device. If the mapping is successful tag contains the bus-space tag and handle contains the bus-space handle for accessing the VME space mapping. resc contains the resources for the mappings. vme_space_map() returns 0 on success, and nonzero on error. vme_space_unmap(vc, resc) Unmaps the VME space mapping managed by controller vc and resources resc. vme_intr_map(vc, level, vector, handlep) Sets handlep to a machine-dependent value which identifies a particular interrupt source at level level and vector vector on the controller vc. vme_intr_map() returns zero on success, and nonzero on failure. vme_intr_establish(vc, handle, prio, func, arg) Establishes the interrupt handler handlep. When the device interrupts, func() will be called with a single argument arg and will run at the interrupt priority level prio. The return value of vme_intr_establish() may be saved and passed to vme_intr_disestablish(). vme_intr_disestablish(vc, cookie) Disables the interrupt handler when the driver is no longer interested in interrupts from the device. cookie is the value returned by vme_intr_establish(). vme_intr_evcnt(vc, handle) Increment the interrupt event counter for the interrupt specified by handle. vme_dmamap_create(vc, size, am, datasize, swap, nsegs, segsz, bound, flags, map) Allocates a DMA handle and initializes it according to the parameters provided. The VME-specific parameters describe the address- space modifiers am, datasize datasize, and endianness swap. The remaining parameters are described in bus_dma(9). vme_dmamap_destroy(vc, map) Frees all resources associated with a given DMA handle. The parameters are described in bus_dma(9). vme_dmamem_alloc(vc, size, am, datasize, swap, segs, nsegs, rsegs, flags) Allocates memory that is ``DMA safe'' for the VME bus managed by controller vc. The VME-specific parameters describe the address- space modifiers am, datasize datasize, and endianness swap. The remaining parameters are described in bus_dma(9). vme_dmamem_free(vc, segs, nsegs) Frees memory previously allocated by vme_dmamem_alloc() for the VME space managed by controller vc. vme_space_alloc(tag, addr, size, ams) Allocate VME space for the bus-space tag at address addr of size size and address-space modifiers ams. vme_space_alloc() returns EINVAL on invalid inputs. vme_space_free(vc, addr, size, ams) Deallocate VME space for the bus-space tag at address addr of size size and address-space modifiers ams. vme_space_get(vc, size, ams, align, addr) Returns EINVAL on invalid inputs. AUTOCONFIGURATION
The VME bus is an indirect-connection bus. During autoconfiguration each driver is required to probe the bus for the presence of a device. A VME driver will receive a pointer to a struct vme_attach_args hinting at "locations" (address ranges) on the VME bus where the device may be located. The driver should check the number of address ranges, allocate the address space of these ranges using vme_space_alloc(), and probe the address space for the device using vme_probe(). During driver attach the driver should also map the address ranges using vme_space_map(). The interrupt locators in struct vme_attach_args are used by vme_intr_map() and vme_intr_establish(). DMA SUPPORT
Extensive DMA facilities are provided. CODE REFERENCES
The VME subsystem itself is implemented within the file sys/dev/vme/vme.c. SEE ALSO
vme(4), autoconf(9), bus_dma(9), bus_space(9), driver(9) HISTORY
The machine-independent VME subsystem appeared in NetBSD 1.5. BUGS
This page is incomplete. BSD
June 12, 2001 BSD
All times are GMT -4. The time now is 04:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy