Skip to content

Instantly share code, notes, and snippets.

@daparic
Last active October 4, 2023 04:42
Show Gist options
  • Select an option

  • Save daparic/3cecfd6009da8d138fde9d8e123c9e62 to your computer and use it in GitHub Desktop.

Select an option

Save daparic/3cecfd6009da8d138fde9d8e123c9e62 to your computer and use it in GitHub Desktop.
add_configs ()
{
if [ ! -d $1 ]; then
echo "*** cannot find ***";
return;
fi;
local x=$(find $1 -type d -name configs);
tar xf ~/configs.tar -C $x/c++test --strip-components=1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment