I have a TAR (compressed) file that I uncompressed using the following command
$ tar xvf uagent.tar
It created a directory structure as follows
<root>/arcagent/UAGENT/reloc/$UAGENT_HOME/
How do I access files under the $UAGENT_HOME? Every time I do change directory command, the OS... (3 Replies)
The script below was written to select files and convert a particular string to something other and replace that file. However, I came across some issues with filenames that contain spaces, any suggestions to get around this? Any other suggestions that may apply to this code would also be... (5 Replies)
Hi, I know that inode for each file is unique, but is it the for the directory? So far I found different directories has the same inode nubmer when you do ls -i, could some one explain why? Thanks a lot. (9 Replies)
I need help writing a bash script for the windows cygwin environment. I'm not sure if bash is the optimal tool. Perhaps perl would be better? Either would work.
I have directories whose names include the date they were created. The directory names are in the format of... (0 Replies)
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
hai,
I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc".
(here "oasitqtc" is the owner of the directory or sub directory.)
i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
I am trying to loop through folders and extract the name of the lowest level subfolder
I was running the script below, it returns
/bb/bin/prd/newyork
/bb/bin/prd/london
/bb/bin/prd/tokyo
I really want
newyork
london
tokyo
I couldn't find a standard variable for the lowest level... (1 Reply)
Hi guys,
I have lots of files that look like:
ABC.packed.dir
DEF.packed.dir
GHI.packed.dir
etc...
I would like them to have more of the usual naming convention
ABC
DEF
GHI
etc...
so I was thinking that I could: (2 Replies)
Some guidance is highly appreciated.
I have 10 directories with names ending with 'xyz', each of them have about 30000 files. I want to loop through the contents of each directory and produce a single output per directory. So I want to have 10 output files named 'directory_name'_out.
With... (1 Reply)
Discussion started by: newbie83
1 Replies
LEARN ABOUT DEBIAN
xfmtype
XFMTYPE(1) XFM XFMTYPE(1)NAME
xfmtype - xfm file type tester
SYNOPSIS
xfmtype -m magic_file [-f] filename ...
DESCRIPTION
The xfmtype program reads a magic configuration file and tests each file in its command line to tell its type according to the configura-
tion file.
The format of the configuration file is the similar to magic(5) with the differences described in 0
OPTIONS -f file
Consider the following argument as a file, even if it begins with `-'.
-m file
Specifies a configuration file. You can specify more than one configuration file with several -m flags. They are read in the order in
which they are found. Configuration files do not have effect until they are encountered in the command line. So, files to test in the
command line before that switch will not be affected by it.
BUILT IN TYPES
If no rule matches a specified field or the type cannot be determined because of other reasons, one of the following built in types is
returned:
inode/x-unreadable The file could not be read.
inode/x-empty File size is zero.
text/plain The file looks like ACSII.
xfm will look into xfm_mime.type(5) for more guessing.
application/octet-stream Other regular file.
xfm will look into xfm_mime.type(5) for more guessing.
inode/directory A directory.
inode/chardevice A character device.
inode/blockdevice A block device.
inode/pipe A names pipe (fifo).
inode/socket A socket.
inode/default None of the above.
BUGS
Bad configuration lines cause undefined behavior. In general they are silently ignored, but that is not guaranteed.
There are no warning or error message except for the regular expression syntax.
There should be a syntax checking mode.
All of the above apply to xfm too.
SEE ALSO xfm(1), xfm_magic(5), file(1), magic(5).
COPYRIGHT
Copyright (c) 1995 CNM-US
Copyright (c) 1995 Juan D. Martin
AUTHOR
Juan D. Martin (juando@cnm.us.es)
(but modified heavily by Bernhard R. Link)
xfm 20 April, 2006 XFMTYPE(1)