Sponsored Content
Top Forums Shell Programming and Scripting AIX system.... deleting files in remote directory after retrieving files Post 302501817 by Corona688 on Saturday 5th of March 2011 12:58:08 AM
Old 03-05-2011
What makes you guess that the contents of the file are the mistake? What are its contents, and what should its contents be?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Accidentally deleting directory/files

Hi, I accidentally deleted a big directory with all its sub-directories and bunch of source code files which I have been developing for about 2 years... What will I do now, how can I retrieve my files, directory hierarchy back ??? If anyone, please HELP ! ! ! ... (4 Replies)
Discussion started by: milhan
4 Replies

2. Shell Programming and Scripting

shell script: deleting files from a directory

i have the following problem: use shell script: Two directories have to be searched for files havin the same name. then delete these files from one of these directories. the directory names have to be accepted as command line arguments. what i have done till now is: 1. run a loop... (1 Reply)
Discussion started by: onlyc
1 Replies

3. Shell Programming and Scripting

deleting empty files in a directory

Hello Gurus, I want to delete only empty files (files with 0 bytes) at once from the local directory. Rightnow I need to go through all the files one by one manually and check the empty files before deleting them. Is there any unix command that finds and deletes empty files in a directory?... (5 Replies)
Discussion started by: berlin_germany
5 Replies

4. UNIX for Dummies Questions & Answers

deleting specific lines from all files in a directory

I have a directory full of text data files. Unfortunately I need to get rid of the 7th and 8th line from them all so that I can input them into a GIS application. I've used an awk script to do one at a time but due to the sheer number of files I need some kind of loop mechanism to automate... (3 Replies)
Discussion started by: vrms
3 Replies

5. Linux

deleting only directory not files

Hi Guys, I want to know wheather it is possible to delete directory not files, Example: In one directory there are 10 dirs and 100 files but my req is to delete only dirs not file Wheather it is possible ? (13 Replies)
Discussion started by: manoj.solaris
13 Replies

6. UNIX for Dummies Questions & Answers

deleting all the files inside a directory from a relative path

I have a file inside abc/def/ghi directory. let say a.txt I need to delete this a.txt from abc itself. I have tried ls /abc/def/ghi | xargs rm -r its saying rm: a.txt non-existent also tried rm -rf /def/ghi but in vein. plz help :) (2 Replies)
Discussion started by: gotam
2 Replies

7. Shell Programming and Scripting

FTP files from different directory from remote server to one directory in local

Hi All, I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies

8. Shell Programming and Scripting

Script for deleting files and directories when the file system reaches the threshold

Hi Can someone assist in writing a script. I have a filesystem named /sybase in my aix lpar. When this filesystem becomes 94% full all the files and directories under /sybase/logs should be deleted immediately. :confused: (7 Replies)
Discussion started by: newtoaixos
7 Replies

9. Shell Programming and Scripting

Shell : deleting only first 2 files in a directory

I have 4 files in a directory and want to delete only first 2 files only.. $ ls -ltr total 640 -rw-r--r-- 1 user other 148779 Oct 12 10:50 file1.xls -rw-r--r-- 1 user other 148779 Oct 12 10:50 file2.xls -rw-r--r-- 1 user other 148779 Oct 12 10:50 file3.xls... (4 Replies)
Discussion started by: giridhar276
4 Replies

10. Shell Programming and Scripting

Deleting files and directory's older than 3 months

I have a qnap TS259 that is running ubuntu. Have successfully setup back scripts that are initiated by cron. I would like to create a couple scrypts that would operate on the recycle bins for both drives. Just want to be able to run the script manually that would walk through both directories... (13 Replies)
Discussion started by: mackconsult
13 Replies
MKEXTUNPACK(8)						    BSD System Manager's Manual 					    MKEXTUNPACK(8)

NAME
mkextunpack -- extract or list the contents of a multikext (mkext) archive SYNOPSIS
mkextunpack [-v] [-a arch] [-d output_directory] mkext_file DESCRIPTION
The mkextunpack program lists the contents of a multikext file, mkext_file, or unarchives the contents into output_directory (which must exist). The -v option causes mkextunpack to print the name if each kext as it finds them. DIAGNOSTICS
mkextunpack exits with a zero status upon success. Upon failure, it prints an error message and exits with a nonzero status. With a nonsegreated format 1 mkext file, wherein each kext may contain a universal binary, mkextunpack simply unpacks the contents. With an mkext file segregated by architecture (that is, with distinct internal archives of architecture-specific kexts), mkextunpack attempts by default to unpack or list kexts for the current machine's architecture. To choose a particular architecture to extract or list, use the -a option. There is no simple way to unpack a segregated mkext file into a set of kexts with universal binaries, but you can unpack each of its compo- nent architectures to separate directories for examination. SEE ALSO
kextcache(8) BUGS
Many single-letter options are inconsistent in meaning with (or directly contradictory to) the same letter options in other kext tools. For version 1 mkext files, note that the file format doesn't record the original filenames of the kexts, so mkextunpack has to guess at what they are. It does this by using the value of the CFBundleExecutable property of the kext's info dictionary (Project Builder sets this to the base name of the kext bundle by default, but the developer can change it). If that property doesn't exist, the last component of the CFBundleIdentifier is used. Duplicates have an incrementing index appended to the name. Kexts that have no CFBundleExecutable or CFBundleI- dentifier property are named ``NameUnknown-n.kext'', where n is a number. Darwin March 6, 2009 Darwin
All times are GMT -4. The time now is 03:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy