Sponsored Content
Full Discussion: Append extension
Top Forums Shell Programming and Scripting Append extension Post 54413 by here2learn on Thursday 12th of August 2004 12:41:59 PM
Old 08-12-2004
I would assume your code is more efficient than mine, however I can not figure out how to modify your code to allow the script to work in any directory?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how do i change extension

Hi I am writing a script which does an FTP of a set of files onto another machine and then would have to rename the files into a different extension on the source machine. for example if the file being sent via FTP is sample.txt. Once the file has been transferred i would want to modify the... (2 Replies)
Discussion started by: kswaraj
2 Replies

2. UNIX for Dummies Questions & Answers

How to append a file extension to end of a file name??

Hi, I have a .txt file and it contains some file names.I want to append .gz extension to all the file names that are present within the .txt file. Input. aa.bb.Mar-20-2007 aa.cc.Mar-20-2007 Output aa.bb.Mar-20-2007.gz aa.cc.Mar-20-2007.gz Please help me with this command. ... (10 Replies)
Discussion started by: kumarsaravana_s
10 Replies

3. Shell Programming and Scripting

Changing extension

Hi , I need to replace the file name extension with txt to csv,i wrote the below script when executing its giving the below error.Please anyone how to do this? $ a2.sh mv: *.: cannot access: No such file or directory ./a2.sh: o: bad number $ vi a2.sh a2.sh ----- #!/bin/ksh txt=$1... (4 Replies)
Discussion started by: mohan705
4 Replies

4. UNIX for Dummies Questions & Answers

without extension

Hi, I need a help regarding a small requirement. I have a list of C files. I need to put them in a file but without .c extension. say if I have the files as file01.c, file02.c, file03.c etc My file say cfiles should have file01 file02 file03 ... ... etc Appreciate your quick help on... (3 Replies)
Discussion started by: adurga
3 Replies

5. HP-UX

Files without extension

I am brand new to hp unix systems. I see some files without extension on this system. If I type name of the file it shows me so many detail but does not take me back to command prompt. What are these files and how do I come back to command prompt? Please help (1 Reply)
Discussion started by: rajahindustani
1 Replies

6. Shell Programming and Scripting

Look for more then one extension.

I am currently scanning a directory with a shell script to look for all files with a .sh extension. I am wondering how to make it look for more then one extension. For example all .sh, .conf, and .sql files? Currently this is what I am doing.... find... (3 Replies)
Discussion started by: LRoberts
3 Replies

7. Shell Programming and Scripting

script that looks for .old extension

Hey guys I have to make a script that takes one argument, the name of a directory, and adds the extension ".old" to all visible files in the directory that don't already have it. I made one that loops through the file names and uses a grep to see if the extension .old is there and then... (5 Replies)
Discussion started by: Joey12
5 Replies

8. Shell Programming and Scripting

Getting the file extension

I have a file n06-z30-sr65-rgdt0p25-varp0.25-8x6drw-test.cmod and I want to get the extension. At the moment I have set filextension = `echo $f | awk 'BEGIN {FS="."} {print $2}'` which of course does not work as there is a point in varp0.25 (13 Replies)
Discussion started by: kristinu
13 Replies

9. UNIX for Advanced & Expert Users

Script to sort the files and append the extension .sort to the sorted version of the file

Hello all - I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
Discussion started by: pankaj80
3 Replies

10. UNIX for Dummies Questions & Answers

Display the .csv extension files based on .done extension fine

Hi All, I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing. 1.I need to display the .done files from the directory. 2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory ... (2 Replies)
Discussion started by: girija.g6
2 Replies
KEXTSTAT(8)						    BSD System Manager's Manual 					       KEXTSTAT(8)

NAME
kextstat -- display status of dynamically loaded kernel extensions SYNOPSIS
kextstat [-b kext_bundle_id] [-k] [-l] DESCRIPTION
The kextstat utility displays the status of any kernel extensions currently loaded in the kernel. The following information is shown for each loaded kernel extension: Index The load index of the kernel extension (used to track references). Gaps in the list indicate kernel extensions that have been unloaded. Refs The number of references to this extension by others. If nonzero, the extension cannot be unloaded. Address The address in kernel space where the extension has been loaded. Size The number of bytes of kernel memory that the extension occupies. If this is zero, the extension is actually a built-in part of the kernel that has a record as an extension for resolving dependencies among extensions. Wired The number of wired bytes of kernel memory that the extension occupies. Name The CFBundleIdentifier of the kernel extension. (Version) The CFBundleVersion of the kernel extension. <Linked Against> The index numbers of all other kernel extensions that this extension has a reference to. The following options are available: -b kext_bundle_id Display the status of only the kernel extension with the given bundle identifier. This option trumps the -k option; if both are given and a kernel component is specified, its information is shown. -k Don't show information for built-in components of the kernel. -l Print the list of loaded kexts only and omit the header (useful for running output through text-analysis tools). DIAGNOSTICS
The kextstat utility exits with a status of 0 on success and with a nonzero status if an error occurs. SEE ALSO
kextcache(8), kextd(8), kextload(8), kextunload(8) HISTORY
The kextstat command is based on the command kldstat written by Doug Rabson <dfr@FreeBSD.org> Darwin April 17, 2002 Darwin
All times are GMT -4. The time now is 03:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy