Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k
added 13 characters in body
Source Link
slm
  • 380k
  • 127
  • 793
  • 897

I need to copy and rename (and then edit) a group of files in the /etc/sysconfig/network-scripts/etc/sysconfig/network-scripts folder. The The files are ifcfg-eth1:* Iifcfg-eth1:*

I have ifcfg-eth1ifcfg-eth1 through ifcfg-eth1:121ifcfg-eth1:121 but need to extend with more addresses, so so I want to copy e.g ifcfg-eth1:22ifcfg-eth1:22 and ifcfg-eth1:23ifcfg-eth1:23 into ifcfg-eth1:122ifcfg-eth1:122 and ifcfg-eth1:123ifcfg-eth1:123 and then edit the copy.

I know how to edit, but not how to copy and rename.

  Found a lot of renaming info on this site, but I think I don't get the : part right... How

How do I handle filenames including ":" ??

I need to copy and rename (and then edit) a group of files in the /etc/sysconfig/network-scripts folder. The files are ifcfg-eth1:* I have ifcfg-eth1 through ifcfg-eth1:121 but need to extend with more addresses, so I want to copy e.g ifcfg-eth1:22 and ifcfg-eth1:23 into ifcfg-eth1:122 and ifcfg-eth1:123 and then edit the copy.

I know how to edit, but not how to copy and rename.

  Found a lot of renaming info on this site, but I think I don't get the : part right... How do I handle filenames including ":" ??

I need to copy and rename (and then edit) a group of files in the /etc/sysconfig/network-scripts folder. The files are ifcfg-eth1:*

I have ifcfg-eth1 through ifcfg-eth1:121 but need to extend with more addresses, so I want to copy e.g ifcfg-eth1:22 and ifcfg-eth1:23 into ifcfg-eth1:122 and ifcfg-eth1:123 and then edit the copy.

I know how to edit, but not how to copy and rename. Found a lot of renaming info on this site, but I think I don't get the : part right...

How do I handle filenames including ":" ??

Source Link
rookie
  • 65
  • 1
  • 4

how to copy and rename files with ":" and incrementing number in the filename

I need to copy and rename (and then edit) a group of files in the /etc/sysconfig/network-scripts folder. The files are ifcfg-eth1:* I have ifcfg-eth1 through ifcfg-eth1:121 but need to extend with more addresses, so I want to copy e.g ifcfg-eth1:22 and ifcfg-eth1:23 into ifcfg-eth1:122 and ifcfg-eth1:123 and then edit the copy.

I know how to edit, but not how to copy and rename.

Found a lot of renaming info on this site, but I think I don't get the : part right... How do I handle filenames including ":" ??