Skip to content

A shell script to create hard links to multiple files in a directory.

Notifications You must be signed in to change notification settings

yashaskm11/Batch_hard_link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Create Hard link to multiple files

A shell script to create hard links to multiple files in a directory

Usage: sh main.sh $N $S $H

  • $N = No. of Files to Create Hardlinks
  • $S = Absolute Path to the Source File(s) Directory
  • $H = Absolute Path to create Hard link(s)

Note:

  • This script only creates hardlinks based on the first $N files that appear on ls $S
  • All the paths must be absolute paths terminating with a forward slash ( / )

About

A shell script to create hard links to multiple files in a directory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages