•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 426,427 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,343 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 1013 | Replies: 3
•
•
Join Date: May 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I'm new to shell scripting. Can someone please suggest me some syntax to move files from directory A to directory B using shell scripting.
Also the programme should have 2 parameters and based on the parameter values given while executing, the programme should check the file names in directory and compare the letters from 3 to 7 to match the first parameter given to the shell script programme and 10 to 15 to match the 2nd parameter given in the programme and if both of them matches, then they should be moved to directory B.
I'm not expecting the entire code but atleast some suggestions would be great!!
Thanks a lot in advance
Akhil
I'm new to shell scripting. Can someone please suggest me some syntax to move files from directory A to directory B using shell scripting.
Also the programme should have 2 parameters and based on the parameter values given while executing, the programme should check the file names in directory and compare the letters from 3 to 7 to match the first parameter given to the shell script programme and 10 to 15 to match the 2nd parameter given in the programme and if both of them matches, then they should be moved to directory B.
I'm not expecting the entire code but atleast some suggestions would be great!!
Thanks a lot in advance
Akhil
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Automatic Files Sorting and Folders Creation (VB.NET)
- Quick help needed in the shell script (Shell Scripting)
- How to perform redirects using htaccess file (HTML and CSS)
- I Cannot Delete, Move, or Rename a File On My PC. (Viruses, Spyware and other Nasties)
- 'Page cannot be displayed' Winxp sp2 (Viruses, Spyware and other Nasties)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Help! - Hijack log but i need to know what to delete (Viruses, Spyware and other Nasties)
- Sorry, another "bridge.dll" problem.. here's my HJT log. (Viruses, Spyware and other Nasties)
Other Threads in the Shell Scripting Forum
- Previous Thread: Script to search numbers from a given range from a file
- Next Thread: Script to list dir path and count characters?



Threaded Mode