help me!! i'm new!!
hi, i'm a new user of linux and having hard time with its many command...so i'm hoping of getting some answers from this forum.
first, i want to change filenames with .txt suffix to .doc suffix. i tried by typing $ mv *.txt*.doc command but it gives me error message. why it doesn't work? what command should i type to search the root directory??:scratch: i want to remove all filenames from my directory that start with a digit and end with ".html". what comand should i type? |
it would be more helpfull if you put what word processing program your using
|
Quote:
For something that does work try a for loop, and the utility basename. All basic Linux commands such as these have a manual and can be accessed by typing Code:
man <command> Quote:
Code:
find / -type f -name '<name>' Quote:
Hope this gives you a place to start, Alunduil |
Have a look at the man page for the rename command. You'll need something like rename txt doc *txt. As alunduil posted, the find command can help you identify the files. You can either use its -exec option to remove the files, or pipe its output to xargs. Be very careful about removing files in this way. Use ls instead of rm first so you can see what will be deleted:
Code:
find / -type f -name '<name>' -exec rm -iv {} \; |
All times are GMT -5. The time now is 07:29 PM. |