02-24-2008
It should be rm to remove files. To rename a file, you use the mv (move) command.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can anybody help me how to display a list of unix commands. I have an account in unix,just start to use it, but don't know how (1 Reply)
Discussion started by: aningsabah
1 Replies
2. UNIX for Dummies Questions & Answers
Just hoping someone can help me out. I am looking for what should be simple commands to enter for this information:
List of all Unix users (is this etc/passwd?)
List of all users' access capabilities (is this etc/group?)
Password settings (e.g., password expiration interval, minimum password... (2 Replies)
Discussion started by: i don't care
2 Replies
3. Shell Programming and Scripting
Can anyone direct me to a resource that explains scripting in simple terms?
I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
Discussion started by: rocinante
8 Replies
4. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
5. UNIX for Dummies Questions & Answers
I'm trying to run a script file with multiple commands that I would normally type into the command line. The commands are:
#!/bin/bash
diff Test1.o0 /usr3/ronelso4/Desktop/verificationKPC/Test1.o0 > differences2
diff Test1a.o0 /usr3/ronelso4/Desktop/verificationKPC/Test1a.o0 >> differences2... (1 Reply)
Discussion started by: knelson
1 Replies
6. Red Hat
Building software in most languages is a pain. Remember ant build.xml, maven2 pom files, and multi-level makefiles?
Python has a simple solution for building modules, applications, and extensions called distutils. Disutils comes as part of the Python distribution so there are no other packages... (0 Replies)
Discussion started by: Linux Bot
0 Replies
7. UNIX for Dummies Questions & Answers
Is there nice awk code for merging the following commands and do the last task?
input1
ab100 xxx 100 blahblah + 1000
ab100 yyy 90 blahblah + 1000
ef390 ggg 200 blahblah - 2000
ef390 aaa 100 blahblah - 2000
df888 ttt 300 ... (5 Replies)
Discussion started by: ruby_sgp
5 Replies
8. UNIX for Dummies Questions & Answers
i am at home with a windows xp home, and i am using putty terminal to access my linux mathlab account, my task is to compile and run a C program, called a.c,
i used
gcc -Wall -g -o mycode a.c
to compile it into a mycode file
now when i want to run it, i was told i had to use
$... (2 Replies)
Discussion started by: omega666
2 Replies
9. UNIX for Dummies Questions & Answers
Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated.
1. Logon to Linux.
2. Create a directory "Unix" under your home directory.
Command(s): ………………………………………….
3. Create four... (1 Reply)
Discussion started by: loverangerguy
1 Replies
10. Homework & Coursework Questions
Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated.
1. Logon to Linux.
2. Create a directory "Unix" under your home directory.
Command(s): ………………………………………….
3. Create four... (1 Reply)
Discussion started by: loverangerguy
1 Replies
LEARN ABOUT DEBIAN
prename
RENAME(1) Perl Programmers Reference Guide RENAME(1)
NAME
rename - renames multiple files
SYNOPSIS
rename [ -v ] [ -n ] [ -f ] perlexpr [ files ]
DESCRIPTION
"rename" renames the filenames supplied according to the rule specified as the first argument. The perlexpr argument is a Perl expression
which is expected to modify the $_ string in Perl for at least some of the filenames specified. If a given filename is not modified by the
expression, it will not be renamed. If no filenames are given on the command line, filenames will be read via standard input.
For example, to rename all files matching "*.bak" to strip the extension, you might say
rename 's/.bak$//' *.bak
To translate uppercase names to lower, you'd use
rename 'y/A-Z/a-z/' *
OPTIONS
-v, --verbose
Verbose: print names of files successfully renamed.
-n, --no-act
No Action: show what files would have been renamed.
-f, --force
Force: overwrite existing files.
ENVIRONMENT
No environment variables are used.
AUTHOR
Larry Wall
SEE ALSO
mv(1), perl(1)
DIAGNOSTICS
If you give an invalid Perl expression you'll get a syntax error.
BUGS
The original "rename" did not check for the existence of target filenames, so had to be used with care. I hope I've fixed that (Robin
Barker).
perl v5.14.2 2014-09-26 RENAME(1)