This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
475 B

  1. #!/bin/bash
  2. json_directory="$1"
  3. # Check if the specified directory exists
  4. if [ ! -d "$json_directory" ]; then
  5. echo "Error: Directory $json_directory not found. Provide as arg \$1"
  6. exit 1
  7. fi
  8. # Iterate over all JSON files in the directory
  9. for json_file in "$json_directory"/*.json; do
  10. # Check if there are matching files
  11. if [ -e "$json_file" ]; then
  12. bn=$(basename $json_file)
  13. name="${bn%.*}"
  14. mv $json_file "${json_directory}/${name}-cpu.json"
  15. fi
  16. done