Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 469 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 469 Bytes

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 ( / )