1.Excel で「Documents.csv」を開きます。
2.[ID] と [Name (名前)] 以外のすべての列を削除します。他の列をすべて削除すると、[ID] が列 A に含まれ、[Name (名前)] が列 B に含まれます。
3.次の行の数式をコピーしてセル C2 に貼り付けます。
="mv "&A2&" """&B2&""""
4.結果のセルは次のようになります。
** ドキュメントの 015
mv 015300000046RlaEAE "Technical Specifications V1_2.docx"
5.セル C2 の右下隅をダブルクリックして、列 C のすべてにコピーします。
6.列 C を選択してコピーします。
7.Mac の TextEdit に貼り付けます。
8.Command+Shif+T キーを押して、プレーンテキストとして保存します。
9.エクスポートされたドキュメントフォルダにファイルを「rename.sh」として保存します。これは、名前変更するレコードが配置される場所です。
10.ターミナルを開きます。
** Mac の虫眼鏡をクリックするか、Spotlight 検索でターミナルを探します
11.「cd」と入力し、「rename.sh」ファイルを含む添付ファイルフォルダをターミナルにドラッグし、「pwd」を追加して、Enter キーを押します。
** 次のようになります。 Dans-MacBook-Pro:~ dancarlo$ cd /Users/dancarlo/Downloads/DataExport/Documents pwd
12.sudo chmod 777 "rename.sh" と入力します (引用符なし。ここにファイル名を入力します。大文字と小文字を区別します)。パスワードの入力を要求されます。これにより、ファイルを実行するための権限がシステムに付与されます。
** パスワードとして入力した文字は表示されません。パスワードを入力して、Enter キーを押します
** 次のようになります
*** Dans-MacBook-Pro:Documents dancarlo$ sudo chmod 777 rename.sh
Password:
13.sudo ./"rename.sh " と入力します (引用符なしでファイル名のみを入力し、Enter キーを押します)。
** 次のようになります。 Dans-MacBook-Pro:Documents dancarlo$ sudo ./rename.sh
14.コマンドが実行された後、フォルダ内のすべての名前が更新されます。
15.変更を保存せずに、Excel で「Documents.csv」を閉じます。
000381782

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.