Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Script help NEWBIE  (Read 4960 times)

0 Members and 1 Guest are viewing this topic.

zyphonic

  • Guest
Script help NEWBIE
« on: November 10, 2005, 07:50:18 AM »
How do I write a script that moves all the files that end in ".txt" from the current directory to another (target) directory?

I also want this script to produce a text file ("filesCopied") that lists all files that have been moved!

Please help,

thanx

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: Script help NEWBIE
« Reply #1 on: January 20, 2006, 06:51:35 AM »
You need something like "mv -v *.txt > filesCopied".
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos