I'm new to shell scripting and I'm having a tough time figuring out how to script something. Can anyone help?
Here is my setup and what I want to do:
A directory contains a list of projects by year (2000, 2001, etc) and customers (01-001) all of which have the same internal directory setup... (3 Replies)
Hi.
I'm trying to copy multiple folders from the remote machine to the local machine. I wrote a batch file to run an ftp window.
The problem I am having is that the only command to copy files is mget *, and this copies only files, not folders.
For example, ftp ts555
cd ts555/test
' test... (5 Replies)
Hi i am new to Unix Shell Programming... i m just a beginner and i m training myself in Unix.... I need a sample code to archive folders in my Windows OS using Unix commands... Can someone Help me? (1 Reply)
Hi All,
I am creting archive script in which i need to split the source file's to different target folder's based on the input file name first character.
Input1.txt -- will contains file names that are needs to be Archive.
Input1.txt
A1213355
B2255666
C2254555
A6655444
C5566445
... (2 Replies)
Hi All,
I have directories under
/development/arun/weekly/
20120421
20120414
.
.
.
.
I need to arrange these directories in descending order.
folder name with recent date will be on top and then others. (1 Reply)
Hi All,
I have a vexing issue with leading spaces in file names. Basically, we're moving tons of data from our ancient afp file share to Box.com and Box forbids leading spaces in files or folders. The HFS file system seems to be perfectly fine with this, but almost all other Unix file systems... (1 Reply)
Hello,
I am looking for a command line that can do some operations on two files that have the same names but in different folders.
for example if
folder A contains files 1.txt, 2.txt, 3.txt,..
folder B contains files 1.txt, 2.txt, 3.txt,..
If I would like to concatenate the two files... (6 Replies)
Hi
Can i archive folder and folders in with the tar command
My files are located in subfolders
Eg: Folder1/Folder1_1/*.pdf
Folder1/Folder1_2/*.pdf
Folder1/Folder1_3/*.pdf
so i would like to tar all the files in Folder1_1 and Folder1_2 only not Folder1_3 that should be done next... (2 Replies)
Hi everyone,
I have a problem and I would be gratful if you can help.
I have set of folders with files in them. e.g. data1, data2, data3
and I have a json file with info ... looking like this
I want to rename my files to replace the data with their gender to some processing and back to... (8 Replies)
Discussion started by: A-V
8 Replies
LEARN ABOUT DEBIAN
nomarch
nomarch(1) Archive Extraction nomarch(1)NAME
nomarch - extract `.arc' archives
SYNOPSIS
nomarch [-hlptUv] [archive.arc] [match1 [match2 ... ]]
DESCRIPTION
nomarch lists, extracts, or tests `.arc' archives. (An alternate extension sometimes used was `.ark'; these work too.) This is a very out-
dated file format which should certainly not be used for anything new, but you may still need an extraction utility, and here it is. :-)
The default action is to extract all files in the specified archive; see OPTIONS below for how to do other things instead.
OPTIONS -h give terse usage help.
-l list files in archive. If verbose listings are enabled, it shows the filename, compression method, compressed/uncompressed size,
date/time, and CRC; but by default, it just shows the filename, uncompressed size, and date/time.
-p extract to standard output, rather than to separate files.
-t test files in archive (more precisely, check file CRCs).
-U use uppercase filenames; more precisely, preserve original case from archive.
-v give verbose output (when used with `-l').
archive.arc
the archive to operate on.
match1 etc.
optionally specify which archive members to list/extract/test. Those which match any of these filenames/wildcards are processed.
Wildcard operators supported are shell-like `*' and `?', but don't forget to quote arguments which use these (e.g. `nomarch foo.arc
'*.bar'').
EXTRACTING MULTIPLE ARCHIVES
nomarch follows the `unzip'-like practice of working on only one archive per run, with further `filenames' given on the command-line actu-
ally specifying files to extract (or whatever). The easiest way to work on multiple files with nomarch is simply to run it multiple times
using for; for example:
for i in *.arc; do nomarch $i; done
The above would extract all archives in the current directory.
USING THE PROGRAM FROM EMACS
Emacs's arc-mode facility lets you work with various kinds of archive file directly from the editor. Making it use nomarch for extracting
`.arc' files isn't too hard. Just add the following to your ~/.emacs file:
(setq archive-arc-extract '("nomarch" "-U"))
BUGS
The CRC used by the format is only 16-bit, so `-t' is a less-than-perfect test.
One compression method, obsolete even by `.arc' standards :-), isn't supported yet. This is partly because I've yet to find a single file
which uses it, despite testing an awful lot of files.
Subdirectories in Spark archives are extracted as the `.arc'-format files they really are, which may not be terribly convenient.
SEE ALSO tar(1), gzip(1), bzip2(1), lbrate(1)AUTHOR
Russell Marks (rus@svgalib.org).
Version 1.4 18th June, 2006 nomarch(1)