I know this is probably a question for the newbie forum, where it is also posted, but I thought maybe some of you pros might like to help me out anyway. Here is my problem:
I have to rename a batch of files that look like:
2001_0001.asc
2001_0002.asc
.
2001_0548.asc
2002_0184.asc
.
.... (0 Replies)
Hi,
I am trying to create a script which validates the incoming source files. The script has File name Pattern as Argument. The First part of the script validates if there are any files available
if
then
echo "\n Files are available to process \n"
else
echo "\n File does not... (9 Replies)
Hi,
I need to rename all the .txt files present in current directory to .dat files respectively in UNIX.
for example:
$ ls
aaa.txt bbb.txt ccc.txt
I need to change them to
$ ls
aaa.dat bbb.dat ccc.dat
Is there any UNIX command to do this in one go?
... (3 Replies)
Hello!
I try to save attachments from mails (pop3/imap) to folders.
I have 2 emails, which i want to scan:
user1@host_address
user2@host_address
I use next .fetchmailrc configuration
#defaults protocol pop3
poll "user2@host_address",
protocol imap,
user "user1",
password "1"... (3 Replies)
:wall:
Hello there,
basically in my program where im stuck at is when it comes to rename the files in a loop.
- the program counts the number of files w a given name (works!)
- and then if the number of files is greater or equal to the MAX_VERSIONS (numbers of files allowed w the... (1 Reply)
Hi all, I have this code #This program read the triplets from file named "data" into
#an array of array.
use strict;
use warnings;
use Data::Dumper;
use Graph;
use Graph::Subgraph;
my @S;
while (<>) {
push @S, ;
}
print "-----TRIPLETS-------\n";
print Dumper \@S;
#Make... (6 Replies)
Hi, I have the following problem:
I have a list of files:
1.txt
2.txt
3.txt
4.txt
Then I have a list of variable names inside variable.txt:
A
B
C
D
I'd like to rename 1.txt, 2.txt etc using the variables from variable.txt (2 Replies)
I have about 1000 files containing the character * in the name. I need to find these files and replace the * with a -. I am working with HP UX v11. I am using the following command
find . -type f -name '*\**' -exec bash -c 'f="$1"; mv "$f" "${f//\*/-}"' - '{}' \
People tell me it works for... (4 Replies)
OK So I Recently Bought A whatbox Seed-box Act!!:cool:
I am connected to whatbox via SSH!!!
Now i have downloaded a movie and renamed it to 2yify.mp4 (800MB):o
When I TYPE the command to split it which is:)
split -b 400m 2yify.mp4
It gets renamed into two parts with different names... (4 Replies)