Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Google AI PRO - 18 Month
Sanathbh
Updated:
21 minutes ago
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Monday at 9:03 PM
Plan your Crypto & Forex entries before you take the trade
romeshnonis
Updated:
Monday at 3:20 AM
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Sep 8, 2026
🛡️ Kaspersky Antivirus – 1 Year / 1 Device | Rs. 2,300 | Only 9 Left
KSPathirana
Updated:
Sep 7, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Linux Shell Scripting Help.... Please!!!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="dimuit86" data-source="post: 19784875" data-attributes="member: 512210"><p><strong>Machan,</strong></p><p><strong></strong></p><p><strong>Shell scripting help ekak ooni.... mata file_list.txt file eka read karala source eka vidiyatath, path_list.txt file eka read karala destination eka vidiyatath pass karagena....FILES tika copy karanna ooni.</strong></p><p><strong></strong></p><p></p><p>NOTE:- </p><p>mkdir -p /x01/a/b/c/</p><p>mkdir -p /x01/1/2/3/</p><p></p><p>Directory Structure already created </p><p></p><p>sourse file location list = src_dir=/tmp/file_list.txt</p><p></p><p></p><p></p><p>destination location list = dst_dir=/tmp/path_list.txt</p><p></p><p></p><p></p><p>copy destination /x01/Project_Backup/</p><p></p><p></p><p>src_dir=$(cat /tmp/file_list.txt)</p><p>dst_dir=$(cat /tmp/path_list.txt | sed -e "s/[^/\]\/[^/\]$//")</p><p></p><p></p><p></p><p></p><p></p><p></p><p><strong><span style="color: Red">KOHOMADA MEEKA HARIYATA HADANNE???</span></strong></p><p><span style="color: Black"><strong>===============Big Help Machan===============</strong></span></p><p></p><p></p><p></p><p>machanla, mata wenna ooni....mage gaawa tiyenawa file.txt kiyala file ekak.... eeke absolute paths ekka file name eka tiyenawa source dir eke...</p><p></p><p>Eeka read karala file source eka aragena, e files cp kara ganna ooni file_path.txt kiyana eke tiyena directories walata. </p><p></p><p>Mama hithawa teruna iyala</p></blockquote><p></p>
[QUOTE="dimuit86, post: 19784875, member: 512210"] [B]Machan, Shell scripting help ekak ooni.... mata file_list.txt file eka read karala source eka vidiyatath, path_list.txt file eka read karala destination eka vidiyatath pass karagena....FILES tika copy karanna ooni. [/B] NOTE:- mkdir -p /x01/a/b/c/ mkdir -p /x01/1/2/3/ Directory Structure already created sourse file location list = src_dir=/tmp/file_list.txt destination location list = dst_dir=/tmp/path_list.txt copy destination /x01/Project_Backup/ src_dir=$(cat /tmp/file_list.txt) dst_dir=$(cat /tmp/path_list.txt | sed -e "s/[^/\]\/[^/\]$//") [B][COLOR="Red"]KOHOMADA MEEKA HARIYATA HADANNE???[/COLOR][/B] [COLOR="Black"][B]===============Big Help Machan===============[/B][/COLOR] machanla, mata wenna ooni....mage gaawa tiyenawa file.txt kiyala file ekak.... eeke absolute paths ekka file name eka tiyenawa source dir eke... Eeka read karala file source eka aragena, e files cp kara ganna ooni file_path.txt kiyana eke tiyena directories walata. Mama hithawa teruna iyala [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom