Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 -print0 | xargs -0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?find -exec + vs find | xargs: which one to choose?

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 -print0 | xargs -0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 -print0 | xargs -0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 -print0 | xargs -0 -print0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 | xargs -0 -print0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 -print0 | xargs -0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?

added 8 characters in body
Source Link
Michael Durrant
  • 43.7k
  • 73
  • 176
  • 237

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 | xargs -0 -print0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 | xargs -0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?

You could try:

find . -inum 12321475 -exec mv {} new-filename \;

or

find . -inum 12321475 | xargs -0 -print0 mv -t new-filename

Generally I prefer xargs over exec. Google for why. It's tricky though. See find -exec + vs find | xargs: which one to choose?

added 172 characters in body
Source Link
Michael Durrant
  • 43.7k
  • 73
  • 176
  • 237
Loading
edited body
Source Link
Michael Durrant
  • 43.7k
  • 73
  • 176
  • 237
Loading
added 65 characters in body
Source Link
Michael Durrant
  • 43.7k
  • 73
  • 176
  • 237
Loading
Source Link
Michael Durrant
  • 43.7k
  • 73
  • 176
  • 237
Loading