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

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