I'm trying to write a command that backs up certain files into my current directory and adds a prefix to the backed up file name. I realise this can be done in a script by specifying each individual file but would like to know if it can be done on one line and made an alias.
...
Is this possible?
Yup. Try this:
...Note that this code will descend into any subdirectories, which may not be what you want. Substitute a directory for dot, if you want (and maybe exclude the sed command).
-mschwage
I have many files that have "inputstring" somewhere in their filename (without the quotes), and I want to rename them all so that "inputstring" is replaced with "newstring". And I also want to specify arbitrary text for "inputstring" and "newstring" so that I can call the scripts that does this... (6 Replies)
I have a large list of filenames from an Excel sheet, which I then translate into a simple text file. I'd like to use this list, which contains various file extensions , to archive these files and then remove them recursively through multiple directories and subdirectories. So far, it looks like... (5 Replies)
Hi,
I wrote a simple script to backup of index.php and index.html in my box. So, I wrote a script which take a copy of the index page as 1Mar09: but it does not comes up..
#! /bin/bash
find . -name index.* > domains.txt
for i in `cat domains.txt` ; do cp index* index*.1Mar09 $i; done
But... (6 Replies)
Hello,
I am trying to write a bash shell script that does the following:
1.Finds all *.txt files within my directory of interest
2. reads each of the files (25 files) one by one (tab-delimited format and have the same data format)
3. skips the first 10 rows of the file
4. extracts and... (4 Replies)
Hi there,
I am having trouble with a script I have written, which is designed to search through a directory for a header and payload file, retrieve a string from both filenames, compare this string and if it matches make a backup of the two files then move them to a different directory for... (1 Reply)
How can I run the following command on multiple files and print out the corresponding multiple files.
perl script.pl genome.gff 1.txt > 1.gff
However, there are multiples files of 1.txt, from 1----100.txt
Thank you so much.
No duplicate posting! Continue here. (0 Replies)
How can I Run one script on multiple files and print out multiple files.
FOR EXAMPLE
i want to run script.pl on 100 files named 1.txt ....100.txt under same directory and print out corresponding file 1.gff ....100.gff.THANKS (4 Replies)
Hi,
Is there any way to do a cat * where it shows the name of each file in the process? Similar to what more does below?
$ more ?.sql
::::::::::::::
1.sql
::::::::::::::
set linesize 200
select db_unique_name,
cast(
from_tz(
cast(... (5 Replies)
there are mutiple file nams in the directory. How to return the the lastest files for each file name.
ex.
abc1234_050201
abc1234_050206
abc1234_050208
xyz34_050204
xyz34_050210
xyz34_050218
thanks (4 Replies)
Discussion started by: grand_sam
4 Replies
LEARN ABOUT ULTRIX
conflict
conflict(8mh)conflict(8mh)Name
conflict - search for alias/password conflicts
Syntax
/usr/lib/mh/conflict [ -help ] [ -mail name ] [ -search directory ] [ aliasfiles ... ]
Description
The program checks to see if the interface between MH and transport system is in good shape. It also checks for maildrops in which do not
belong to a valid user. It assumes that no user name will start with a dot (.) and thus ignores files in which begin with a dot.
The program checks the entries in the specified alias files. It parses the entries in the same way that would, and outputs any errors
which it finds. The program can be used to check the entries in a user's personal alias file, or in the system alias file, If no alias
file is specified, checks the system alias file.
The program also checks the file for entries which do not belong to a valid user, and for users who do not have a valid group number. In
addition, duplicate users and groups are noted.
The program should be run under or whenever system accounting takes place.
Options-help Prints a list of the valid options to this command.
-mail name
Mails the results to the specified name. Otherwise, the results are sent to the standard output.
-search directory
Searches directories other than and reports anomalies in those directories. The -search switch can appear more than once in an
invocation to with different directories named.
Files
The system customization file.
The system password file.
The system group file.
Program used to mail results, if the
-mail option is used.
Directory containing users' maildrops.
See Alsomh-alias(5mh), cron(8)conflict(8mh)