diff --git a/docs/modular-steps-management.md b/docs/modular-steps-management.md index 9c1f07b8..b1138307 100644 --- a/docs/modular-steps-management.md +++ b/docs/modular-steps-management.md @@ -69,12 +69,12 @@ In the step object you have created, 2 attributes must be filled: - `onChange` prop are ignored as the event is handled by the app. - For `switch` and `checkbox` input types, the default value has to be set as a boolean property named **value**. - More information for each inputs is available in the design documentation: - - [textInput documentation](https://01.alem.school/design/Components/FormInputs/TextInput) - used for inputs type 'text', 'tel', and 'date' - - [textArea documentation](https://01.alem.school/design/Components/FormInputs/TextArea) - - [select documentation](https://01.alem.school/design/Components/FormControls/Select) - - [radio button documentation](https://01.alem.school/design/Components/FormControls/Radio) - - [switch documentation](https://01.alem.school/design/Components/FormControls/Switch) - - [checkbox documentation](https://01.alem.school/design/Components/FormControls/Checkbox) + - [textInput documentation](https://[[DOMAIN]]/design/Components/FormInputs/TextInput) - used for inputs type 'text', 'tel', and 'date' + - [textArea documentation](https://[[DOMAIN]]/design/Components/FormInputs/TextArea) + - [select documentation](https://[[DOMAIN]]/design/Components/FormControls/Select) + - [radio button documentation](https://[[DOMAIN]]/design/Components/FormControls/Radio) + - [switch documentation](https://[[DOMAIN]]/design/Components/FormControls/Switch) + - [checkbox documentation](https://[[DOMAIN]]/design/Components/FormControls/Checkbox) ### Examples diff --git a/docs/server-installation.md b/docs/server-installation.md index 089c00ee..6686c990 100644 --- a/docs/server-installation.md +++ b/docs/server-installation.md @@ -6,8 +6,8 @@ One domain and one subdomain must point to the IP address of a [dedicated server | FQDN | Record type | Address | | -------------- | ----------- | ------- | -| {{DOMAIN}} | A | X.X.X.X | -| git.{{DOMAIN}} | A | X.X.X.X | +| [[DOMAIN]] | A | X.X.X.X | +| git.[[DOMAIN]] | A | X.X.X.X | ## Network configuration diff --git a/docs/ubuntu-persistent-installation.md b/docs/ubuntu-persistent-installation.md new file mode 100644 index 00000000..90ad35d7 --- /dev/null +++ b/docs/ubuntu-persistent-installation.md @@ -0,0 +1,50 @@ +# Ubuntu + +## OS Installation + +Install the latest version of [Virtual Box](https://www.virtualbox.org/wiki/Downloads). + +> The text instructions are more important than the screenshots + +Screenshots of the installation of Ubuntu in Virtual Box are [here](https://github.com/xpetit/vbox-ubuntu-install/blob/master/README.md). + +Download and boot the [last Ubuntu release](http://releases.ubuntu.com/19.10/ubuntu-19.10-desktop-amd64.iso). + +- Create a new virtual machine named "Ubuntu" with at least 4096 MB of RAM +- Use the fixed size storage allocation (to have more performance) +- In the settings of the VM + - System -> Motherboard : check "Enable EFI" + - System -> Processor : Select at least 2 processors + - Display -> Screen : Put "Video Memory" to the maximum + - Enable 3D acceleration + - Storage + - Remove IDE controller + - Add Optical Drive to the SATA controller + - Choose your Ubuntu ISO image + - Close the settings (click OK) +- Run the VM + +Follow the screenshots (some settings can be personalized, such as keyboard layout, location, password, login automatically, but **do not change the username**) + +Skip the welcoming window. + +Don't install updates if Ubuntu asks to. The scripts will. + +## OS configuration + +Run a terminal and type these commands : + +```shell +unset HISTFILE +sudo apt-get -y install curl +export PERSISTENT= +bash <(curl -sSL raw.githubusercontent.com/01-edu/public/master/scripts/kickstart.sh) +``` + +After reboot you should install Virtual Box additions (and reboot again) : + +```shell +sudo apt -y install virtualbox-guest-x11 +``` + +Then it is advised to use the virtual machine in full screen mode (Host key - F) diff --git a/scripts/check_installation.sh b/scripts/check_installation.sh new file mode 100755 index 00000000..95722544 --- /dev/null +++ b/scripts/check_installation.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash + +set -euo pipefail +IFS=' +' + +dir=$(cd -P "$(dirname "$BASH_SOURCE")" && pwd) + +check() { + test "$(command -v "$1")" && echo -n ✅ || echo -n ❌ + echo " $@" +} + +check go '(see : https://golang.org/dl & https://golang.org/doc/install)' +check gofmt '(see : https://golang.org/dl & https://golang.org/doc/install)' +check goimports '(run : go get golang.org/x/tools/cmd/goimports)' +check git '(see : https://git-scm.com/downloads)' +check jq '(see : https://stedolan.github.io/jq/download)' +check sed +check tar +check find +check cut +check awk +check grep +check wget +check curl +check diff +check chmod +check chown +check touch +check wc +check cat + +test "$(ls ~/.ssh/*.pub 2>/dev/null)" && echo -n ✅ || echo -n ❌ +echo " SSH public key (run : ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N '')" + +# git repository configured diff --git a/scripts/exam.sh b/scripts/exam.sh index 3a59197d..2a5e1a5c 100755 --- a/scripts/exam.sh +++ b/scripts/exam.sh @@ -6,7 +6,7 @@ script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" cd $script_dir . set.sh -wget https://01.alem.school/assets/files/exam.AppImage -O /usr/local/bin/exam.AppImage +wget https://[[DOMAIN]]/assets/files/exam.AppImage -O /usr/local/bin/exam.AppImage chmod +x /usr/local/bin/exam.AppImage cat < /home/student/.local/share/applications/appimagekit-exam.desktop diff --git a/scripts/install_client.sh b/scripts/install_client.sh index 51e09f5d..3313e494 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -63,6 +63,8 @@ ubuntu-drivers install ||: cp -r system /tmp cd /tmp/system +test -v PERSISTENT && rm -rf etc/gdm3 usr/share/initramfs-tools + # Overwrite with custom files from Git repository if test -v OVERWRITE; then folder=$(echo "$OVERWRITE" | cut -d';' -f1) @@ -94,36 +96,38 @@ cp --preserve=mode -RT . / cd $script_dir rm -rf /tmp/system -sgdisk -n0:0:+32G "$disk" -sgdisk -N0 "$disk" -sgdisk -c3:01-tmp-home "$disk" -sgdisk -c4:01-tmp-system "$disk" +if ! test -v PERSISTENT; then + sgdisk -n0:0:+32G "$disk" + sgdisk -N0 "$disk" + sgdisk -c3:01-tmp-home "$disk" + sgdisk -c4:01-tmp-system "$disk" -# Remove fsck because the system partition will be read-only (overlayroot) -rm /usr/share/initramfs-tools/hooks/fsck + # Remove fsck because the system partition will be read-only (overlayroot) + rm /usr/share/initramfs-tools/hooks/fsck -apt-get -y install overlayroot -echo 'overlayroot="device:dev=/dev/disk/by-partlabel/01-tmp-system,recurse=0"' >> /etc/overlayroot.conf + apt-get -y install overlayroot + echo 'overlayroot="device:dev=/dev/disk/by-partlabel/01-tmp-system,recurse=0"' >> /etc/overlayroot.conf -update-initramfs -u + update-initramfs -u -# Lock root password -passwd -l root + # Lock root password + passwd -l root -# Disable user password -passwd -d student + # Disable user password + passwd -d student -# Remove tty -cat <> /etc/systemd/logind.conf -NAutoVTs=0 -ReserveVT=N -EOF + # Remove tty + cat <<-EOF>> /etc/systemd/logind.conf + NAutoVTs=0 + ReserveVT=N + EOF -# Remove user abilities -gpasswd -d student sudo -gpasswd -d student lpadmin -gpasswd -d student sambashare + # Remove user abilities + gpasswd -d student sudo + gpasswd -d student lpadmin + gpasswd -d student sambashare -cp /etc/shadow /etc/shadow- + cp /etc/shadow /etc/shadow- +fi . clean.sh diff --git a/subjects/abort.en.md b/subjects/abort.en.md index 1eb4398b..dd2db0fe 100644 --- a/subjects/abort.en.md +++ b/subjects/abort.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 5 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/abort.fr.md b/subjects/abort.fr.md index bb6722fc..96490570 100644 --- a/subjects/abort.fr.md +++ b/subjects/abort.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 5 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index 7c4217fe..4a6e7393 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 3 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index 4ae7c03c..6e396290 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 3 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/addprimesum.en.md b/subjects/addprimesum.en.md index c08260f8..f11d9943 100644 --- a/subjects/addprimesum.en.md +++ b/subjects/addprimesum.en.md @@ -9,12 +9,12 @@ Write a program that takes a positive integer as argument and displays the sum o ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test 5 +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 5 10 -student@ubuntu:~/piscine-go/test$ ./test 7 +student@ubuntu:~/[[ROOT]]/test$ ./test 7 17 -student@ubuntu:~/piscine-go/test$ ./test 5 7 +student@ubuntu:~/[[ROOT]]/test$ ./test 5 7 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/addprimesum.fr.md b/subjects/addprimesum.fr.md index 07329444..c8b06eee 100644 --- a/subjects/addprimesum.fr.md +++ b/subjects/addprimesum.fr.md @@ -9,12 +9,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test 5 +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 5 10 -student@ubuntu:~/piscine-go/test$ ./test 7 +student@ubuntu:~/[[ROOT]]/test$ ./test 7 17 -student@ubuntu:~/piscine-go/test$ ./test 5 7 +student@ubuntu:~/[[ROOT]]/test$ ./test 5 7 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/advancedsortwordarr.en.md b/subjects/advancedsortwordarr.en.md index c513a5a8..56279338 100644 --- a/subjects/advancedsortwordarr.en.md +++ b/subjects/advancedsortwordarr.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/advancedsortwordarr.fr.md b/subjects/advancedsortwordarr.fr.md index a0532d17..a1ae8a3b 100644 --- a/subjects/advancedsortwordarr.fr.md +++ b/subjects/advancedsortwordarr.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/alphacount.en.md b/subjects/alphacount.en.md index 5aaeab0d..8895e8c2 100644 --- a/subjects/alphacount.en.md +++ b/subjects/alphacount.en.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 10 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/alphacount.fr.md b/subjects/alphacount.fr.md index 5aaeab0d..8895e8c2 100644 --- a/subjects/alphacount.fr.md +++ b/subjects/alphacount.fr.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 10 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/alphamirror.en.md b/subjects/alphamirror.en.md index 1f2b7853..bb84af50 100644 --- a/subjects/alphamirror.en.md +++ b/subjects/alphamirror.en.md @@ -16,12 +16,12 @@ If the number of arguments is different from 1, the program displays only a newl ### Usage ```console -student@ubuntu:~/piscine-go/alphamirror$ go build -student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror "abc" +student@ubuntu:~/[[ROOT]]/alphamirror$ go build +student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "abc" zyx -student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e +student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e Nb slihv rh Znzarmt.$ -student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror | cat -e +student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror | cat -e $ -student@ubuntu:~/piscine-go/alphamirror$ +student@ubuntu:~/[[ROOT]]/alphamirror$ ``` diff --git a/subjects/alphamirror.fr.md b/subjects/alphamirror.fr.md index 327dcd14..0ebbe840 100644 --- a/subjects/alphamirror.fr.md +++ b/subjects/alphamirror.fr.md @@ -16,12 +16,12 @@ Si le nombre d'arguments est différent de 1, le programme affiche seulement un ### Utilisation ```console -student@ubuntu:~/piscine-go/alphamirror$ go build -student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror "abc" +student@ubuntu:~/[[ROOT]]/alphamirror$ go build +student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "abc" zyx -student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e +student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e Nb slihv rh Znzarmt.$ -student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror | cat -e +student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror | cat -e $ -student@ubuntu:~/piscine-go/alphamirror$ +student@ubuntu:~/[[ROOT]]/alphamirror$ ``` diff --git a/subjects/any.en.md b/subjects/any.en.md index 4e71f1f7..2fcca7fe 100644 --- a/subjects/any.en.md +++ b/subjects/any.en.md @@ -41,9 +41,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test false true -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/any.fr.md b/subjects/any.fr.md index 203dd6dc..a783a4aa 100644 --- a/subjects/any.fr.md +++ b/subjects/any.fr.md @@ -41,9 +41,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test false true -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/appendrange.en.md b/subjects/appendrange.en.md index 5bc1a7d1..b5bd235a 100644 --- a/subjects/appendrange.en.md +++ b/subjects/appendrange.en.md @@ -39,9 +39,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/appendrange.fr.md b/subjects/appendrange.fr.md index 4cbefc1e..66968302 100644 --- a/subjects/appendrange.fr.md +++ b/subjects/appendrange.fr.md @@ -39,9 +39,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/atoi.en.md b/subjects/atoi.en.md index 93b7bde0..485dd295 100644 --- a/subjects/atoi.en.md +++ b/subjects/atoi.en.md @@ -63,8 +63,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 0 @@ -73,5 +73,5 @@ student@ubuntu:~/piscine-go/test$ ./test -1234 0 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/atoi.fr.md b/subjects/atoi.fr.md index e0595fdb..59fe80c4 100644 --- a/subjects/atoi.fr.md +++ b/subjects/atoi.fr.md @@ -63,8 +63,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 0 @@ -73,5 +73,5 @@ student@ubuntu:~/piscine-go/test$ ./test -1234 0 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/atoibase.en.md b/subjects/atoibase.en.md index fdf395eb..50f7769b 100644 --- a/subjects/atoibase.en.md +++ b/subjects/atoibase.en.md @@ -48,12 +48,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 125 125 125 125 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/atoibase.fr.md b/subjects/atoibase.fr.md index 98d1717c..334841b6 100644 --- a/subjects/atoibase.fr.md +++ b/subjects/atoibase.fr.md @@ -48,12 +48,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 125 125 125 125 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/atoiprog.en.md b/subjects/atoiprog.en.md index 22117840..d270f821 100644 --- a/subjects/atoiprog.en.md +++ b/subjects/atoiprog.en.md @@ -73,8 +73,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 0 @@ -83,5 +83,5 @@ student@ubuntu:~/piscine-go/test$ ./test -1234 0 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/basicatoi.en.md b/subjects/basicatoi.en.md index c5a6d6df..a78aa698 100644 --- a/subjects/basicatoi.en.md +++ b/subjects/basicatoi.en.md @@ -48,10 +48,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/basicatoi.fr.md b/subjects/basicatoi.fr.md index a1e38109..f250b9fb 100644 --- a/subjects/basicatoi.fr.md +++ b/subjects/basicatoi.fr.md @@ -48,10 +48,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/basicatoi2.en.md b/subjects/basicatoi2.en.md index 1f1f6018..347ea9fd 100644 --- a/subjects/basicatoi2.en.md +++ b/subjects/basicatoi2.en.md @@ -52,11 +52,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 0 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/basicatoi2.fr.md b/subjects/basicatoi2.fr.md index b11ffea0..61246a18 100644 --- a/subjects/basicatoi2.fr.md +++ b/subjects/basicatoi2.fr.md @@ -52,11 +52,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 0 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/basicjoin.en.md b/subjects/basicjoin.en.md index 96173890..869c538b 100644 --- a/subjects/basicjoin.en.md +++ b/subjects/basicjoin.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello! How are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/basicjoin.fr.md b/subjects/basicjoin.fr.md index 4f93ea56..a350c684 100644 --- a/subjects/basicjoin.fr.md +++ b/subjects/basicjoin.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello! How are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/boolean.en.md b/subjects/boolean.en.md index e10973c3..c83c2857 100644 --- a/subjects/boolean.en.md +++ b/subjects/boolean.en.md @@ -42,9 +42,9 @@ func main() { ### Usage ```console -student@ubuntu:~/piscine-go/boolean$ go build -student@ubuntu:~/piscine-go/boolean$ ./boolean "not" "odd" +student@ubuntu:~/[[ROOT]]/boolean$ go build +student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not" "odd" I have an even number of arguments -student@ubuntu:~/piscine-go/boolean$ ./boolean "not even" +student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not even" I have an odd number of arguments ``` diff --git a/subjects/boolean.fr.md b/subjects/boolean.fr.md index 335380a6..1d857336 100644 --- a/subjects/boolean.fr.md +++ b/subjects/boolean.fr.md @@ -42,9 +42,9 @@ func main() { ### Utilisation ```console -student@ubuntu:~/piscine-go/boolean$ go build -student@ubuntu:~/piscine-go/boolean$ ./boolean "not" "odd" +student@ubuntu:~/[[ROOT]]/boolean$ go build +student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not" "odd" I have an even number of arguments -student@ubuntu:~/piscine-go/boolean$ ./boolean "not even" +student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not even" I have an odd number of arguments ``` diff --git a/subjects/brackets.en.md b/subjects/brackets.en.md index 75e8cccd..9f41405b 100644 --- a/subjects/brackets.en.md +++ b/subjects/brackets.en.md @@ -13,15 +13,15 @@ If there is no argument, the program must print only a newline. ### Usage ```console -student@ubuntu:~/piscine-go/brackets$ go build -student@ubuntu:~/piscine-go/brackets$ ./brackets '(johndoe)' | cat -e +student@ubuntu:~/[[ROOT]]/brackets$ go build +student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '(johndoe)' | cat -e OK$ -student@ubuntu:~/piscine-go/brackets$ ./brackets '([)]' | cat -e +student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '([)]' | cat -e Error$ -student@ubuntu:~/piscine-go/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e +student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e OK$ OK$ -student@ubuntu:~/piscine-go/brackets$ ./brackets | cat -e +student@ubuntu:~/[[ROOT]]/brackets$ ./brackets | cat -e $ -student@ubuntu:~/piscine-go/brackets$ +student@ubuntu:~/[[ROOT]]/brackets$ ``` diff --git a/subjects/brackets.fr.md b/subjects/brackets.fr.md index 016b95a9..072828af 100644 --- a/subjects/brackets.fr.md +++ b/subjects/brackets.fr.md @@ -13,15 +13,15 @@ Si il n'y a pas d'argument, le programme affiche seulement un retour à la ligne ### Utilisation ```console -student@ubuntu:~/piscine-go/brackets$ go build -student@ubuntu:~/piscine-go/brackets$ ./brackets '(johndoe)' | cat -e +student@ubuntu:~/[[ROOT]]/brackets$ go build +student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '(johndoe)' | cat -e OK$ -student@ubuntu:~/piscine-go/brackets$ ./brackets '([)]' | cat -e +student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '([)]' | cat -e Error$ -student@ubuntu:~/piscine-go/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e +student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e OK$ OK$ -student@ubuntu:~/piscine-go/brackets$ ./brackets | cat -e +student@ubuntu:~/[[ROOT]]/brackets$ ./brackets | cat -e $ -student@ubuntu:~/piscine-go/brackets$ +student@ubuntu:~/[[ROOT]]/brackets$ ``` diff --git a/subjects/brainfuck.en.md b/subjects/brainfuck.en.md index 94c3a117..5cf1dd5e 100644 --- a/subjects/brainfuck.en.md +++ b/subjects/brainfuck.en.md @@ -22,14 +22,14 @@ Any other character is a comment. ### Usage ```console -student@ubuntu:~/piscine-go/brainfuck$ go build -student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e +student@ubuntu:~/[[ROOT]]/brainfuck$ go build +student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e Hello World!$ -student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e +student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e Hi$ -student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e +student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e abc$ -student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck | cat -e +student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck | cat -e $ -student@ubuntu:~/piscine-go/brainfuck$ +student@ubuntu:~/[[ROOT]]/brainfuck$ ``` diff --git a/subjects/brainfuck.fr.md b/subjects/brainfuck.fr.md index 645caa46..988cec7e 100644 --- a/subjects/brainfuck.fr.md +++ b/subjects/brainfuck.fr.md @@ -22,14 +22,14 @@ Tout autre caractère est un commentaire. ### Utilisation ```console -student@ubuntu:~/piscine-go/brainfuck$ go build -student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e +student@ubuntu:~/[[ROOT]]/brainfuck$ go build +student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e Hello World!$ -student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e +student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e Hi$ -student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e +student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e abc$ -student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck | cat -e +student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck | cat -e $ -student@ubuntu:~/piscine-go/brainfuck$ +student@ubuntu:~/[[ROOT]]/brainfuck$ ``` diff --git a/subjects/btreeapplybylevel.en.md b/subjects/btreeapplybylevel.en.md index 448960d6..7519b0b3 100644 --- a/subjects/btreeapplybylevel.en.md +++ b/subjects/btreeapplybylevel.en.md @@ -36,11 +36,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 1 7 5 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeapplybylevel.fr.md b/subjects/btreeapplybylevel.fr.md index 51dde436..49e7d103 100644 --- a/subjects/btreeapplybylevel.fr.md +++ b/subjects/btreeapplybylevel.fr.md @@ -36,11 +36,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 1 7 5 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeapplyinorder.en.md b/subjects/btreeapplyinorder.en.md index 0f82fa69..debf4df7 100644 --- a/subjects/btreeapplyinorder.en.md +++ b/subjects/btreeapplyinorder.en.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 4 5 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeapplyinorder.fr.md b/subjects/btreeapplyinorder.fr.md index 5ba7b8ef..29e9042e 100644 --- a/subjects/btreeapplyinorder.fr.md +++ b/subjects/btreeapplyinorder.fr.md @@ -37,11 +37,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 4 5 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeapplypostorder.en.md b/subjects/btreeapplypostorder.en.md index dafba8b0..13f514a6 100644 --- a/subjects/btreeapplypostorder.en.md +++ b/subjects/btreeapplypostorder.en.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 5 7 4 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeapplypostorder.fr.md b/subjects/btreeapplypostorder.fr.md index 93bbb722..297d87ce 100644 --- a/subjects/btreeapplypostorder.fr.md +++ b/subjects/btreeapplypostorder.fr.md @@ -37,11 +37,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/btreeinsertdata$ go build -student@ubuntu:~/piscine-go/btreeinsertdata$ ./btreeinsertdata +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ go build +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ./btreeinsertdata 1 5 7 4 -student@ubuntu:~/piscine-go/btreeinsertdata$ +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ``` diff --git a/subjects/btreeapplypreorder.en.md b/subjects/btreeapplypreorder.en.md index 3a00e462..0f3383ab 100644 --- a/subjects/btreeapplypreorder.en.md +++ b/subjects/btreeapplypreorder.en.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 1 7 5 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeapplypreorder.fr.md b/subjects/btreeapplypreorder.fr.md index c4071820..55d3c02d 100644 --- a/subjects/btreeapplypreorder.fr.md +++ b/subjects/btreeapplypreorder.fr.md @@ -37,11 +37,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 1 7 5 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreedeletenode.en.md b/subjects/btreedeletenode.en.md index 9fcbcac2..46389306 100644 --- a/subjects/btreedeletenode.en.md +++ b/subjects/btreedeletenode.en.md @@ -43,8 +43,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Before delete: 1 4 @@ -54,5 +54,5 @@ After delete: 1 5 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreedeletenode.fr.md b/subjects/btreedeletenode.fr.md index 80a1a8ab..008bb0c9 100644 --- a/subjects/btreedeletenode.fr.md +++ b/subjects/btreedeletenode.fr.md @@ -43,8 +43,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Before delete: 1 4 @@ -54,5 +54,5 @@ After delete: 1 5 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeinsertdata.en.md b/subjects/btreeinsertdata.en.md index dcb5706f..fd15db5d 100644 --- a/subjects/btreeinsertdata.en.md +++ b/subjects/btreeinsertdata.en.md @@ -47,11 +47,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/btreeinsertdata$ go build -student@ubuntu:~/piscine-go/btreeinsertdata$ ./btreeinsertdata +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ go build +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ./btreeinsertdata 1 4 5 7 -student@ubuntu:~/piscine-go/btreeinsertdata$ +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ``` diff --git a/subjects/btreeinsertdata.fr.md b/subjects/btreeinsertdata.fr.md index 08fea491..865200e7 100644 --- a/subjects/btreeinsertdata.fr.md +++ b/subjects/btreeinsertdata.fr.md @@ -47,11 +47,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/btreeinsertdata$ go build -student@ubuntu:~/piscine-go/btreeinsertdata$ ./btreeinsertdata +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ go build +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ./btreeinsertdata 1 4 5 7 -student@ubuntu:~/piscine-go/btreeinsertdata$ +student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ``` diff --git a/subjects/btreeisbinary.en.md b/subjects/btreeisbinary.en.md index 4326c204..efa222f1 100644 --- a/subjects/btreeisbinary.en.md +++ b/subjects/btreeisbinary.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeisbinary.fr.md b/subjects/btreeisbinary.fr.md index f6f241d1..b2408959 100644 --- a/subjects/btreeisbinary.fr.md +++ b/subjects/btreeisbinary.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreelevelcount.en.md b/subjects/btreelevelcount.en.md index 9aab71e3..762ab299 100644 --- a/subjects/btreelevelcount.en.md +++ b/subjects/btreelevelcount.en.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 3 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreelevelcount.fr.md b/subjects/btreelevelcount.fr.md index de7fa8c1..4e3d0090 100644 --- a/subjects/btreelevelcount.fr.md +++ b/subjects/btreelevelcount.fr.md @@ -37,8 +37,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 3 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreemax.en.md b/subjects/btreemax.en.md index 7ca56921..e7f57175 100644 --- a/subjects/btreemax.en.md +++ b/subjects/btreemax.en.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreemax.fr.md b/subjects/btreemax.fr.md index af57b5c0..5d59fba4 100644 --- a/subjects/btreemax.fr.md +++ b/subjects/btreemax.fr.md @@ -38,8 +38,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreemin.en.md b/subjects/btreemin.en.md index a3920db1..64826e84 100644 --- a/subjects/btreemin.en.md +++ b/subjects/btreemin.en.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreemin.fr.md b/subjects/btreemin.fr.md index e7b20b22..bd6dff01 100644 --- a/subjects/btreemin.fr.md +++ b/subjects/btreemin.fr.md @@ -38,8 +38,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeprintroot.en.md b/subjects/btreeprintroot.en.md index 10cd6dd9..dd689261 100644 --- a/subjects/btreeprintroot.en.md +++ b/subjects/btreeprintroot.en.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/printroot$ go build -student@ubuntu:~/piscine-go/printroot$ ./printroot +student@ubuntu:~/[[ROOT]]/printroot$ go build +student@ubuntu:~/[[ROOT]]/printroot$ ./printroot who are you -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreeprintroot.fr.md b/subjects/btreeprintroot.fr.md index 7f389460..826a2596 100644 --- a/subjects/btreeprintroot.fr.md +++ b/subjects/btreeprintroot.fr.md @@ -38,10 +38,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/printroot$ go build -student@ubuntu:~/piscine-go/printroot$ ./printroot +student@ubuntu:~/[[ROOT]]/printroot$ go build +student@ubuntu:~/[[ROOT]]/printroot$ ./printroot who are you -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreesearchitem.en.md b/subjects/btreesearchitem.en.md index 475d3314..445d63e9 100644 --- a/subjects/btreesearchitem.en.md +++ b/subjects/btreesearchitem.en.md @@ -63,11 +63,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Item selected -> 7 Parent of selected item -> 4 Left child of selected item -> 5 Right child of selected item -> nil -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreesearchitem.fr.md b/subjects/btreesearchitem.fr.md index 4f378c84..faf6c105 100644 --- a/subjects/btreesearchitem.fr.md +++ b/subjects/btreesearchitem.fr.md @@ -63,11 +63,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Item selected -> 7 Parent of selected item -> 4 Left child of selected item -> 5 Right child of selected item -> nil -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreetransplant.en.md b/subjects/btreetransplant.en.md index 5e903734..ed15540b 100644 --- a/subjects/btreetransplant.en.md +++ b/subjects/btreetransplant.en.md @@ -39,11 +39,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 3 4 5 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/btreetransplant.fr.md b/subjects/btreetransplant.fr.md index 56f99b06..e1268323 100644 --- a/subjects/btreetransplant.fr.md +++ b/subjects/btreetransplant.fr.md @@ -39,11 +39,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 3 4 5 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/capitalize.en.md b/subjects/capitalize.en.md index 2eb6efb4..8c32b148 100644 --- a/subjects/capitalize.en.md +++ b/subjects/capitalize.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello! How Are You? How+Are+Things+4you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/capitalize.fr.md b/subjects/capitalize.fr.md index 18c5348e..a73e81a1 100644 --- a/subjects/capitalize.fr.md +++ b/subjects/capitalize.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello! How Are You? How+Are+Things+4you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 45dcbc20..f7cada1a 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -23,17 +23,17 @@ Write a program that has the same behaviour as the system's `cat` command-line. - The program must be submitted inside a folder named `cat`. ```console -student@ubuntu:~/piscine-go/cat$ go build -student@ubuntu:~/piscine-go/cat$ ./cat abc +student@ubuntu:~/[[ROOT]]/cat$ go build +student@ubuntu:~/[[ROOT]]/cat$ ./cat abc open abc: no such file or directory -student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt +student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing -student@ubuntu:~/piscine-go/cat$ ./cat +student@ubuntu:~/[[ROOT]]/cat$ ./cat Hello Hello ^C -student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt +student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." -student@ubuntu:~/piscine-go/cat$ +student@ubuntu:~/[[ROOT]]/cat$ ``` diff --git a/subjects/cat.fr.md b/subjects/cat.fr.md index e64ac7d4..dba3f97c 100644 --- a/subjects/cat.fr.md +++ b/subjects/cat.fr.md @@ -25,16 +25,16 @@ ### Utilisation: ```console -student@ubuntu:~/piscine-go/cat$ go build -student@ubuntu:~/piscine-go/cat$ ./cat abc +student@ubuntu:~/[[ROOT]]/cat$ go build +student@ubuntu:~/[[ROOT]]/cat$ ./cat abc open abc: no such file or directory -student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt +student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing -student@ubuntu:~/piscine-go/cat$ ./cat +student@ubuntu:~/[[ROOT]]/cat$ ./cat Hello Hello ^C -student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt +student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." diff --git a/subjects/cl-camp2.en.md b/subjects/cl-camp2.en.md index 3ac44176..40af5df7 100644 --- a/subjects/cl-camp2.en.md +++ b/subjects/cl-camp2.en.md @@ -11,7 +11,7 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/piscine-go/test$ cat -e r +student@ubuntu:~/[[ROOT]]/test$ cat -e r R$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cl-camp2.fr.md b/subjects/cl-camp2.fr.md index 0d806145..974f36b1 100644 --- a/subjects/cl-camp2.fr.md +++ b/subjects/cl-camp2.fr.md @@ -11,7 +11,7 @@ Une ligne est une suite de caractères précédant le caractère [fin de ligne]( ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ cat -e r +student@ubuntu:~/[[ROOT]]/test$ cat -e r R$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cl-camp4.en.md b/subjects/cl-camp4.en.md index ff4a3cb9..7ebb9bb4 100644 --- a/subjects/cl-camp4.en.md +++ b/subjects/cl-camp4.en.md @@ -10,15 +10,15 @@ Create a file `myfamily.sh`, which will show a subject's family (key: relatives) - The subject will be decided depending on his ID which will be contained in the environment variable HERO_ID. -* Where to look : https://01.alem.school/assets/superhero/all.json +* Where to look : https://[[DOMAIN]]/assets/superhero/all.json * What to use : curl, jq and others... ### Usage ```console -student@ubuntu:~/piscine-go/test$ export HERO_ID=1 -student@ubuntu:~/piscine-go/test$ ./myfamily.sh +student@ubuntu:~/[[ROOT]]/test$ export HERO_ID=1 +student@ubuntu:~/[[ROOT]]/test$ ./myfamily.sh Marlo Chandler-Jones (wife); Polly (aunt); Mrs. Chandler (mother-in-law); Keith Chandler, Ray Chandler, three unidentified others (brothers-in-law); unidentified father (deceased); Jackie Shorr (alleged mother; unconfirmed) -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cl-camp4.fr.md b/subjects/cl-camp4.fr.md index 50a898ce..b9a6d09e 100644 --- a/subjects/cl-camp4.fr.md +++ b/subjects/cl-camp4.fr.md @@ -10,15 +10,15 @@ Créer un fichier `myfamily.sh`, qui affichera la famille d'un individu (clef: r - L'individu sera choisi en fonction de son ID qui sera contenu dans la variable d'environment HERO_ID. -* Où chercher : https://01.alem.school/assets/superhero/all.json +* Où chercher : https://[[DOMAIN]]/assets/superhero/all.json * Quoi utiliser : `curl`, `jq` et d'autres... ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ export HERO_ID=1 -student@ubuntu:~/piscine-go/test$ ./myfamily.sh +student@ubuntu:~/[[ROOT]]/test$ export HERO_ID=1 +student@ubuntu:~/[[ROOT]]/test$ ./myfamily.sh Marlo Chandler-Jones (wife); Polly (aunt); Mrs. Chandler (mother-in-law); Keith Chandler, Ray Chandler, three unidentified others (brothers-in-law); unidentified father (deceased); Jackie Shorr (alleged mother; unconfirmed) -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cl-camp5.en.md b/subjects/cl-camp5.en.md index 6c7849c7..7b68ade9 100644 --- a/subjects/cl-camp5.en.md +++ b/subjects/cl-camp5.en.md @@ -13,11 +13,11 @@ That command will only show the name of the files without the `.sh`. ### Usage ```console -student@ubuntu:~/piscine-go/test$ ./lookagain.sh | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./lookagain.sh | cat -e file1$ file2$ file3$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` ### Hint diff --git a/subjects/cl-camp5.fr.md b/subjects/cl-camp5.fr.md index 408d0a06..ec919d71 100644 --- a/subjects/cl-camp5.fr.md +++ b/subjects/cl-camp5.fr.md @@ -13,11 +13,11 @@ Cette commande montrera le nom des fichiers sans le`.sh`. ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ ./lookagain.sh | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./lookagain.sh | cat -e file1$ file2$ file3$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` ### Indice diff --git a/subjects/cl-camp6.en.md b/subjects/cl-camp6.en.md index 9b728fe0..846e7121 100644 --- a/subjects/cl-camp6.en.md +++ b/subjects/cl-camp6.en.md @@ -9,7 +9,7 @@ Create a file `countfiles.sh`, which will print the number **(and only the numbe ### Usage ```console -student@ubuntu:~/piscine-go/test$ ./countfiles.sh | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./countfiles.sh | cat -e 12$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cl-camp6.fr.md b/subjects/cl-camp6.fr.md index 23da145f..49f0dd57 100644 --- a/subjects/cl-camp6.fr.md +++ b/subjects/cl-camp6.fr.md @@ -9,7 +9,7 @@ Créer un fichier `countfiles.sh`, qui affichera le nombre **(et seulement le no ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ ./countfiles.sh | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./countfiles.sh | cat -e 12$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cl-camp7.en.md b/subjects/cl-camp7.en.md index e1337abe..ac866139 100644 --- a/subjects/cl-camp7.en.md +++ b/subjects/cl-camp7.en.md @@ -9,7 +9,7 @@ Create a file `"\?$*'ChouMi'*$?\"` that will contain "01" and **nothing else**. ### Usage ```console -student@ubuntu:~/piscine-go/test$ ls | cat -e +student@ubuntu:~/[[ROOT]]/test$ ls | cat -e "\?$*'ChouMi'*$?\"$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cl-camp7.fr.md b/subjects/cl-camp7.fr.md index 764a80ea..3e5da1b8 100644 --- a/subjects/cl-camp7.fr.md +++ b/subjects/cl-camp7.fr.md @@ -9,7 +9,7 @@ Créer un fichier `"\?$*'ChouMi'*$?\"` qui contiendra "01" et **rien d'autre**. ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ ls | cat -e +student@ubuntu:~/[[ROOT]]/test$ ls | cat -e "\?$*'ChouMi'*$?\" $ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/cleanstr.en.md b/subjects/cleanstr.en.md index 4112c436..418ca119 100644 --- a/subjects/cleanstr.en.md +++ b/subjects/cleanstr.en.md @@ -16,14 +16,14 @@ program displays a newline ("`\n`"). ### Usage : ```console -student@ubuntu:~/piscine-go/cleanstr$ go build -student@ubuntu:~/piscine-go/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/[[ROOT]]/cleanstr$ go build +student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e you see it's easy to display the same thing$ -student@ubuntu:~/piscine-go/cleanstr$ ./cleanstr " only it's harder " +student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " only it's harder " only it's harder$ -student@ubuntu:~/piscine-go/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?" +student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?" $ -student@ubuntu:~/piscine-go/cleanstr$ ./cleanstr "" | cat -e +student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "" | cat -e $ -student@ubuntu:~/piscine-go/cleanstr$ +student@ubuntu:~/[[ROOT]]/cleanstr$ ``` diff --git a/subjects/cleanstr.fr.md b/subjects/cleanstr.fr.md index 641b529b..a55ac162 100644 --- a/subjects/cleanstr.fr.md +++ b/subjects/cleanstr.fr.md @@ -14,14 +14,14 @@ Si le nombre d'arguments est différent de 1, ou si il n'y a pas de mots à affi ### Utilisation : ```console -student@ubuntu:~/piscine-go/cleanstr$ go build -student@ubuntu:~/piscine-go/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/[[ROOT]]/cleanstr$ go build +student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e you see it's easy to display the same thing$ -student@ubuntu:~/piscine-go/cleanstr$ ./cleanstr " only it's harder " +student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " only it's harder " only it's harder$ -student@ubuntu:~/piscine-go/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?" +student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?" $ -student@ubuntu:~/piscine-go/cleanstr$ ./cleanstr "" | cat -e +student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "" | cat -e $ -student@ubuntu:~/piscine-go/cleanstr$ +student@ubuntu:~/[[ROOT]]/cleanstr$ ``` diff --git a/subjects/collatzcountdown.en.md b/subjects/collatzcountdown.en.md index 4f1acc96..6c0581f1 100644 --- a/subjects/collatzcountdown.en.md +++ b/subjects/collatzcountdown.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test -10 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/{{ROOT}}/test$ go build +student@ubuntu:~/{{ROOT}}/test$ ./test +9 +student@ubuntu:~/{{ROOT}}/test$ ``` diff --git a/subjects/collatzcountdown.fr.md b/subjects/collatzcountdown.fr.md index cab80ed3..1650ff29 100644 --- a/subjects/collatzcountdown.fr.md +++ b/subjects/collatzcountdown.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 10 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/comcheck.en.md b/subjects/comcheck.en.md index 5ab88654..fb7472f1 100644 --- a/subjects/comcheck.en.md +++ b/subjects/comcheck.en.md @@ -11,10 +11,10 @@ Write a program `comcheck` that displays on the standard output `Alert!!!` follo ### Usage ```console -student@ubuntu:~/piscine-go/comcheck$ go build -student@ubuntu:~/piscine-go/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" +student@ubuntu:~/[[ROOT]]/comcheck$ go build +student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" Alert!!! -student@ubuntu:~/piscine-go/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" +student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" Alert!!! -student@ubuntu:~/piscine-go/comcheck$ +student@ubuntu:~/[[ROOT]]/comcheck$ ``` diff --git a/subjects/comcheck.fr.md b/subjects/comcheck.fr.md index 68ba48f7..d2a24d0d 100644 --- a/subjects/comcheck.fr.md +++ b/subjects/comcheck.fr.md @@ -11,10 +11,10 @@ ### Usage ```console -student@ubuntu:~/piscine-go/comcheck$ go build -student@ubuntu:~/piscine-go/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" +student@ubuntu:~/[[ROOT]]/comcheck$ go build +student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" Alert!!! -student@ubuntu:~/piscine-go/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" +student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" Alert!!! -student@ubuntu:~/piscine-go/comcheck$ +student@ubuntu:~/[[ROOT]]/comcheck$ ``` diff --git a/subjects/compact.en.md b/subjects/compact.en.md index f2df851e..1ba21131 100644 --- a/subjects/compact.en.md +++ b/subjects/compact.en.md @@ -53,8 +53,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test a b @@ -65,5 +65,5 @@ Size after compacting: 3 a b c -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/compact.fr.md b/subjects/compact.fr.md index bfb53086..9a1e4a5d 100644 --- a/subjects/compact.fr.md +++ b/subjects/compact.fr.md @@ -53,8 +53,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test a b @@ -65,5 +65,5 @@ Size after compacting: 3 a b c -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/compare.en.md b/subjects/compare.en.md index 2ac075c4..9a543e0c 100644 --- a/subjects/compare.en.md +++ b/subjects/compare.en.md @@ -34,10 +34,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0 -1 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/compare.fr.md b/subjects/compare.fr.md index c227fe0f..8805720d 100644 --- a/subjects/compare.fr.md +++ b/subjects/compare.fr.md @@ -34,10 +34,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0 -1 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/concat.en.md b/subjects/concat.en.md index 67f2fc8b..eff5227d 100644 --- a/subjects/concat.en.md +++ b/subjects/concat.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello! How are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/concat.fr.md b/subjects/concat.fr.md index 7976aae9..c8720d77 100644 --- a/subjects/concat.fr.md +++ b/subjects/concat.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello! How are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/concatparams.en.md b/subjects/concatparams.en.md index b4b7c652..18289c17 100644 --- a/subjects/concatparams.en.md +++ b/subjects/concatparams.en.md @@ -35,11 +35,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello how are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/concatparams.fr.md b/subjects/concatparams.fr.md index aea6b1fe..1cd22cd6 100644 --- a/subjects/concatparams.fr.md +++ b/subjects/concatparams.fr.md @@ -35,11 +35,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello how are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/convertbase.en.md b/subjects/convertbase.en.md index ba136e61..8e29bc79 100644 --- a/subjects/convertbase.en.md +++ b/subjects/convertbase.en.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 43 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/convertbase.fr.md b/subjects/convertbase.fr.md index 8f7a7ab8..4f705088 100644 --- a/subjects/convertbase.fr.md +++ b/subjects/convertbase.fr.md @@ -37,8 +37,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 43 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/countdown.en.md b/subjects/countdown.en.md index 7e5b8de4..e3f3854f 100644 --- a/subjects/countdown.en.md +++ b/subjects/countdown.en.md @@ -7,8 +7,8 @@ Write a program that displays all digits in descending order, followed by a newl ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 9876543210 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/countdown.fr.md b/subjects/countdown.fr.md index 48b0a3ce..86ba97e3 100644 --- a/subjects/countdown.fr.md +++ b/subjects/countdown.fr.md @@ -7,8 +7,8 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 9876543210 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/countif.en.md b/subjects/countif.en.md index 354bb6b8..576a3d2f 100644 --- a/subjects/countif.en.md +++ b/subjects/countif.en.md @@ -37,9 +37,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0 2 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/countif.fr.md b/subjects/countif.fr.md index 7a36a781..92d3d3b9 100644 --- a/subjects/countif.fr.md +++ b/subjects/countif.fr.md @@ -37,9 +37,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0 2 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/createelem.en.md b/subjects/createelem.en.md index bf0e0657..dcb80f1d 100644 --- a/subjects/createelem.en.md +++ b/subjects/createelem.en.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test &{1234} -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/createelem.fr.md b/subjects/createelem.fr.md index 32521643..ddfaa30a 100644 --- a/subjects/createelem.fr.md +++ b/subjects/createelem.fr.md @@ -38,8 +38,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test &{1234} -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/displaya.en.md b/subjects/displaya.en.md index cb3bf0ff..d046e9c1 100644 --- a/subjects/displaya.en.md +++ b/subjects/displaya.en.md @@ -10,12 +10,12 @@ string, the program just writes `a` followed by a newline (`'\n'`). If the numbe ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "abc" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "abc" a -student@ubuntu:~/piscine-go/test$ ./test "bcvbvA" +student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvA" a -student@ubuntu:~/piscine-go/test$ ./test "nbv" +student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" a -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/displaya.fr.md b/subjects/displaya.fr.md index 4839a750..0ca007b2 100644 --- a/subjects/displaya.fr.md +++ b/subjects/displaya.fr.md @@ -7,12 +7,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "abc" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "abc" a -student@ubuntu:~/piscine-go/test$ ./test "bcvbvA" +student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvA" a -student@ubuntu:~/piscine-go/test$ ./test "nbv" +student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" a -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/displayalpham.en.md b/subjects/displayalpham.en.md index 471abc7d..69ea26e9 100644 --- a/subjects/displayalpham.en.md +++ b/subjects/displayalpham.en.md @@ -8,8 +8,8 @@ odd letters in lowercase, followed by a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/piscine-go/displayalpham$ go build -student@ubuntu:~/piscine-go/displayalpham$ ./displayalpham | cat -e +student@ubuntu:~/[[ROOT]]/displayalpham$ go build +student@ubuntu:~/[[ROOT]]/displayalpham$ ./displayalpham | cat -e aBcDeFgHiJkLmNoPqRsTuVwXyZ$ -student@ubuntu:~/piscine-go/displayalpham$ +student@ubuntu:~/[[ROOT]]/displayalpham$ ``` diff --git a/subjects/displayalpham.fr.md b/subjects/displayalpham.fr.md index 8b69b8e7..f36c8a67 100644 --- a/subjects/displayalpham.fr.md +++ b/subjects/displayalpham.fr.md @@ -7,8 +7,8 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/displayalpham$ go build -student@ubuntu:~/piscine-go/displayalpham$ ./displayalpham | cat -e +student@ubuntu:~/[[ROOT]]/displayalpham$ go build +student@ubuntu:~/[[ROOT]]/displayalpham$ ./displayalpham | cat -e aBcDeFgHiJkLmNoPqRsTuVwXyZ$ -student@ubuntu:~/piscine-go/displayalpham$ +student@ubuntu:~/[[ROOT]]/displayalpham$ ``` diff --git a/subjects/displayalrevm.en.md b/subjects/displayalrevm.en.md index f83fc5c5..18b2da02 100644 --- a/subjects/displayalrevm.en.md +++ b/subjects/displayalrevm.en.md @@ -8,8 +8,8 @@ uppercase, and odd letters in lowercase, followed by a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/piscine-go/displayalrevm$ go build -student@ubuntu:~/piscine-go/displayalrevm$ ./displayalrevm | cat -e +student@ubuntu:~/[[ROOT]]/displayalrevm$ go build +student@ubuntu:~/[[ROOT]]/displayalrevm$ ./displayalrevm | cat -e zYxWvUtSrQpOnMlKjIhGfEdCbA$ -student@ubuntu:~/piscine-go/displayalrevm$ +student@ubuntu:~/[[ROOT]]/displayalrevm$ ``` diff --git a/subjects/displayalrevm.fr.md b/subjects/displayalrevm.fr.md index 2032d571..a02be54d 100644 --- a/subjects/displayalrevm.fr.md +++ b/subjects/displayalrevm.fr.md @@ -7,8 +7,8 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/displayalrevm$ go build -student@ubuntu:~/piscine-go/displayalrevm$ ./displayalrevm | cat -e +student@ubuntu:~/[[ROOT]]/displayalrevm$ go build +student@ubuntu:~/[[ROOT]]/displayalrevm$ ./displayalrevm | cat -e zYxWvUtSrQpOnMlKjIhGfEdCbA$ -student@ubuntu:~/piscine-go/displayalrevm$ +student@ubuntu:~/[[ROOT]]/displayalrevm$ ``` diff --git a/subjects/displayfile.en.md b/subjects/displayfile.en.md index d35c56fa..e1302846 100644 --- a/subjects/displayfile.en.md +++ b/subjects/displayfile.en.md @@ -15,13 +15,13 @@ Write a program that displays, on the standard output, the content of a file giv ### Usage : ```console -student@ubuntu:~/piscine-go/displayfile$ go build -student@ubuntu:~/piscine-go/displayfile$ ./displayfile +student@ubuntu:~/[[ROOT]]/displayfile$ go build +student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile File name missing -student@ubuntu:~/piscine-go/displayfile$ ./displayfile quest8.txt main.go +student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt main.go Too many arguments -student@ubuntu:~/piscine-go/displayfile$ ./displayfile quest8.txt +student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt Almost there!! -student@ubuntu:~/piscine-go/displayfile$ +student@ubuntu:~/[[ROOT]]/displayfile$ ``` diff --git a/subjects/displayfile.fr.md b/subjects/displayfile.fr.md index 83069c63..c98641e6 100644 --- a/subjects/displayfile.fr.md +++ b/subjects/displayfile.fr.md @@ -15,11 +15,11 @@ ### Utilisation: ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test File name missing -student@ubuntu:~/piscine-go/test$ ./test quest8.txt main.go +student@ubuntu:~/[[ROOT]]/test$ ./test quest8.txt main.go Too many arguments -student@ubuntu:~/piscine-go/test$ ./test quest8.txt +student@ubuntu:~/[[ROOT]]/test$ ./test quest8.txt Almost there!! ``` diff --git a/subjects/displayfirstparam.en.md b/subjects/displayfirstparam.en.md index d6a30d1d..c4ab0470 100644 --- a/subjects/displayfirstparam.en.md +++ b/subjects/displayfirstparam.en.md @@ -7,11 +7,11 @@ Write a program that takes `string` as arguments, and displays its first argumen ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test hello there +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test hello there hello -student@ubuntu:~/piscine-go/test$ ./test "hello there" how are you +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you hello there -student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/displayfirstparam.fr.md b/subjects/displayfirstparam.fr.md index fcc07c3e..af723e46 100644 --- a/subjects/displayfirstparam.fr.md +++ b/subjects/displayfirstparam.fr.md @@ -7,11 +7,11 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test hello there +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test hello there hello -student@ubuntu:~/piscine-go/test$ ./test "hello there" how are you +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you hello there -student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/displaylastparam.en.md b/subjects/displaylastparam.en.md index f64227e5..1bb4d36a 100644 --- a/subjects/displaylastparam.en.md +++ b/subjects/displaylastparam.en.md @@ -7,13 +7,13 @@ Write a program that takes `string` as arguments, and displays its last argument ### Expected output ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test hello there +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test hello there there -student@ubuntu:~/piscine-go/test$ ./test "hello there" how are you +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you you -student@ubuntu:~/piscine-go/test$ ./test "hello there" +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" hello there -student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/displaylastparam.fr.md b/subjects/displaylastparam.fr.md index e45a64b7..5db93344 100644 --- a/subjects/displaylastparam.fr.md +++ b/subjects/displaylastparam.fr.md @@ -7,13 +7,13 @@ ### Expected output ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test hello there +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test hello there there -student@ubuntu:~/piscine-go/test$ ./test "hello there" how are you +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you you -student@ubuntu:~/piscine-go/test$ ./test "hello there" +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" hello there -student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/displayz.en.md b/subjects/displayz.en.md index d7b25ffc..fb4d9863 100644 --- a/subjects/displayz.en.md +++ b/subjects/displayz.en.md @@ -7,12 +7,12 @@ Write a program that takes a `string`, and displays the first `z` character it e ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "xyz" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "xyz" z -student@ubuntu:~/piscine-go/test$ ./test "bcvbvZ" +student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvZ" z -student@ubuntu:~/piscine-go/test$ ./test "nbv" +student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" z -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test ``` diff --git a/subjects/displayz.fr.md b/subjects/displayz.fr.md index 158a6de6..6fd35f31 100644 --- a/subjects/displayz.fr.md +++ b/subjects/displayz.fr.md @@ -7,12 +7,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "xyz" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "xyz" z -student@ubuntu:~/piscine-go/test$ ./test "bcvbvZ" +student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvZ" z -student@ubuntu:~/piscine-go/test$ ./test "nbv" +student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" z -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test ``` diff --git a/subjects/divmod.en.md b/subjects/divmod.en.md index 24fab35d..06714df3 100644 --- a/subjects/divmod.en.md +++ b/subjects/divmod.en.md @@ -42,9 +42,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 6 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/divmod.fr.md b/subjects/divmod.fr.md index c13cebd7..5f586d30 100644 --- a/subjects/divmod.fr.md +++ b/subjects/divmod.fr.md @@ -42,9 +42,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 6 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/doop.en.md b/subjects/doop.en.md index 668d6d59..63476d15 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -23,27 +23,27 @@ The program has to handle the modulo and division operations by 0 as shown on th ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build doop.go -student@ubuntu:~/piscine-go/test$ ./doop -student@ubuntu:~/piscine-go/test$ ./doop 1 + 1 | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build doop.go +student@ubuntu:~/[[ROOT]]/test$ ./doop +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 + 1 | cat -e 2$ -student@ubuntu:~/piscine-go/test$ ./doop hello + 1 | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./doop hello + 1 | cat -e 0$ -student@ubuntu:~/piscine-go/test$ ./doop 1 p 1 | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 p 1 | cat -e 0$ -student@ubuntu:~/piscine-go/test$ ./doop 1 / 0 | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 / 0 | cat -e No division by 0$ -student@ubuntu:~/piscine-go/test$ ./doop 1 % 0 | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 % 0 | cat -e No modulo by 0$ -student@ubuntu:~/piscine-go/test$ ./doop 9223372036854775807 + 1 +student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 + 1 0 -student@ubuntu:~/piscine-go/test$ ./doop -9223372036854775809 - 3 +student@ubuntu:~/[[ROOT]]/test$ ./doop -9223372036854775809 - 3 0 -student@ubuntu:~/piscine-go/test$ ./doop 9223372036854775807 "*" 3 +student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 "*" 3 0 -student@ubuntu:~/piscine-go/test$ ./doop 1 "*" 1 +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" 1 1 -student@ubuntu:~/piscine-go/test$ ./doop 1 "*" -1 +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" -1 -1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/doop.fr.md b/subjects/doop.fr.md index 56d5ee3e..8a12b3a9 100644 --- a/subjects/doop.fr.md +++ b/subjects/doop.fr.md @@ -21,20 +21,20 @@ Le programme doit géré les opérations modulo et division par 0 comme dans les ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build doop.go -student@ubuntu:~/piscine-go/test$ ./doop -student@ubuntu:~/piscine-go/test$ ./doop 1 + 1 | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build doop.go +student@ubuntu:~/[[ROOT]]/test$ ./doop +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 + 1 | cat -e 2$ -student@ubuntu:~/piscine-go/test$ ./doop hello + 1 | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./doop hello + 1 | cat -e 0$ -student@ubuntu:~/piscine-go/test$ ./doop 1 p 1 | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 p 1 | cat -e 0$ -student@ubuntu:~/piscine-go/test$ ./doop 1 / 0 | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 / 0 | cat -e No division by 0$ -student@ubuntu:~/piscine-go/test$ ./doop 1 % 0 | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 % 0 | cat -e No modulo by 0$ -student@ubuntu:~/piscine-go/test$ ./doop 1 "*" 1 +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" 1 1 -student@ubuntu:~/piscine-go/test$ ./doop 1 "*" -1 +student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" -1 -1 ``` diff --git a/subjects/eightqueens.en.md b/subjects/eightqueens.en.md index 9ea15518..4fde6a32 100644 --- a/subjects/eightqueens.en.md +++ b/subjects/eightqueens.en.md @@ -9,8 +9,8 @@ Recursivity must be used to solve this problem. It should print something like this : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 15863724 16837425 17468253 diff --git a/subjects/eightqueens.fr.md b/subjects/eightqueens.fr.md index b3e9640e..46641de1 100644 --- a/subjects/eightqueens.fr.md +++ b/subjects/eightqueens.fr.md @@ -9,8 +9,8 @@ La récursion doit être utilisée pour résoudre ce problème. L'affichage sera quelque chose comme ça : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 15863724 16837425 17468253 diff --git a/subjects/enigma.en.md b/subjects/enigma.en.md index 8b4fb8af..c3da457e 100644 --- a/subjects/enigma.en.md +++ b/subjects/enigma.en.md @@ -74,8 +74,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 5 2 7 @@ -85,5 +85,5 @@ After using Enigma 6 5 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/enigma.fr.md b/subjects/enigma.fr.md index a6cab178..72b024ca 100644 --- a/subjects/enigma.fr.md +++ b/subjects/enigma.fr.md @@ -73,8 +73,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 5 2 7 @@ -84,5 +84,5 @@ After using Enigma 6 5 7 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/expandstr.en.md b/subjects/expandstr.en.md index 8990e4dd..cad98858 100644 --- a/subjects/expandstr.en.md +++ b/subjects/expandstr.en.md @@ -15,14 +15,14 @@ a newline. ### Usage ```console -student@ubuntu:~/piscine-go/expandstr$ go build -student@ubuntu:~/piscine-go/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/[[ROOT]]/expandstr$ go build +student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e you see it's easy to display the same thing$ -student@ubuntu:~/piscine-go/expandstr$ ./expandstr " only it's harder " | cat -e +student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " only it's harder " | cat -e only it's harder$ -student@ubuntu:~/piscine-go/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e +student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e $ -student@ubuntu:~/piscine-go/expandstr$ ./expandstr | cat -e +student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr | cat -e $ -student@ubuntu:~/piscine-go/expandstr$ +student@ubuntu:~/[[ROOT]]/expandstr$ ``` diff --git a/subjects/expandstr.fr.md b/subjects/expandstr.fr.md index 1168fcd6..d2447329 100644 --- a/subjects/expandstr.fr.md +++ b/subjects/expandstr.fr.md @@ -13,14 +13,14 @@ Si le nombre de paramètres n'est pas 1, ou si il n'y a pas de mot, le programme ### Utilisation ```console -student@ubuntu:~/piscine-go/expandstr$ go build -student@ubuntu:~/piscine-go/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/[[ROOT]]/expandstr$ go build +student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e you see it's easy to display the same thing$ -student@ubuntu:~/piscine-go/expandstr$ ./expandstr " only it's harder " | cat -e +student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " only it's harder " | cat -e only it's harder$ -student@ubuntu:~/piscine-go/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e +student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e $ -student@ubuntu:~/piscine-go/expandstr$ ./expandstr | cat -e +student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr | cat -e $ -student@ubuntu:~/piscine-go/expandstr$ +student@ubuntu:~/[[ROOT]]/expandstr$ ``` diff --git a/subjects/explain.en.md b/subjects/explain.en.md index 9d130b1a..62ae02a3 100644 --- a/subjects/explain.en.md +++ b/subjects/explain.en.md @@ -18,14 +18,14 @@ Write an `explain.sh` file that: ### Usage ```console -student@ubuntu:~/piscine-go/test$ ./explain.sh | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./explain.sh | cat -e FirstNameOfWitness LastNameOfWitness$ 123456$ Red Ferrari$ FirstNameOfSuspect1 LastNameOfSuspect1$ FirstNameOfSuspect2 LastNameOfSuspect2$ FirstNameOfSuspect3 LastNameOfSuspect3$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` ### Hint diff --git a/subjects/fibonacci.en.md b/subjects/fibonacci.en.md index 67830f77..96059c76 100644 --- a/subjects/fibonacci.en.md +++ b/subjects/fibonacci.en.md @@ -43,8 +43,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 3 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/fibonacci.fr.md b/subjects/fibonacci.fr.md index e7927f5e..173f6ae4 100644 --- a/subjects/fibonacci.fr.md +++ b/subjects/fibonacci.fr.md @@ -43,8 +43,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$go build +student@ubuntu:~/[[ROOT]]/test$ ./test 3 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/findnextprime.en.md b/subjects/findnextprime.en.md index 6d844c84..9ceeab00 100644 --- a/subjects/findnextprime.en.md +++ b/subjects/findnextprime.en.md @@ -35,9 +35,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 5 5 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/findnextprime.fr.md b/subjects/findnextprime.fr.md index a7c8e088..5ca59276 100644 --- a/subjects/findnextprime.fr.md +++ b/subjects/findnextprime.fr.md @@ -37,9 +37,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 5 5 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/firstrune.en.md b/subjects/firstrune.en.md index d4cd52fe..848882db 100644 --- a/subjects/firstrune.en.md +++ b/subjects/firstrune.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test HSO -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/firstrune.fr.md b/subjects/firstrune.fr.md index ebaf6eb3..341311e7 100644 --- a/subjects/firstrune.fr.md +++ b/subjects/firstrune.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test HSO -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/firstruneprog.fr.md b/subjects/firstruneprog.fr.md index 771d35e3..96902d14 100644 --- a/subjects/firstruneprog.fr.md +++ b/subjects/firstruneprog.fr.md @@ -7,13 +7,13 @@ ### Utilisation : ```console -student@ubuntu:~/piscine-go/firstruneprog$ go build -student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this is not happening" +student@ubuntu:~/[[ROOT]]/firstruneprog$ go build +student@ubuntu:~/[[ROOT]]/firstruneprog$ ./firstruneprog "this is not happening" t -student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "hello" | cat-e +student@ubuntu:~/[[ROOT]]/firstruneprog$ ./firstruneprog "hello" | cat-e h$ -student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this" "is" "not" "happening" -student@ubuntu:~/piscine-go/firstruneprog$ -student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog -student@ubuntu:~/piscine-go/firstruneprog$ +student@ubuntu:~/[[ROOT]]/firstruneprog$ ./firstruneprog "this" "is" "not" "happening" +student@ubuntu:~/[[ROOT]]/firstruneprog$ +student@ubuntu:~/[[ROOT]]/firstruneprog$ ./firstruneprog +student@ubuntu:~/[[ROOT]]/firstruneprog$ ``` diff --git a/subjects/firstword.en.md b/subjects/firstword.en.md index f4a3da38..971862b3 100644 --- a/subjects/firstword.en.md +++ b/subjects/firstword.en.md @@ -13,14 +13,14 @@ Write a program that takes a `string` and displays its first word, followed by a ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "hello there" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" hello -student@ubuntu:~/piscine-go/test$ ./test "hello ......... bye" +student@ubuntu:~/[[ROOT]]/test$ ./test "hello ......... bye" hello -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ ./test "hello" "there" +student@ubuntu:~/[[ROOT]]/test$ ./test "hello" "there" -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/firstword.fr.md b/subjects/firstword.fr.md index 46955066..aeb27f8f 100644 --- a/subjects/firstword.fr.md +++ b/subjects/firstword.fr.md @@ -13,14 +13,14 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "hello there" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" hello -student@ubuntu:~/piscine-go/test$ ./test "hello ......... bye" +student@ubuntu:~/[[ROOT]]/test$ ./test "hello ......... bye" hello -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ ./test "hello" "there" +student@ubuntu:~/[[ROOT]]/test$ ./test "hello" "there" -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/flags.en.md b/subjects/flags.en.md index 17129d36..88897f40 100644 --- a/subjects/flags.en.md +++ b/subjects/flags.en.md @@ -13,37 +13,37 @@ This program should : Example of output : ```console -student@ubuntu:~/piscine-go/flags$ go build -student@ubuntu:~/piscine-go/flags$ ./flags --insert=4321 --order asdad +student@ubuntu:~/[[ROOT]]/flags$ go build +student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert=4321 --order asdad 1234aadds -student@ubuntu:~/piscine-go/flags$ ./flags --insert=4321 asdad +student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert=4321 asdad asdad4321 -student@ubuntu:~/piscine-go/flags$ ./flags asdad +student@ubuntu:~/[[ROOT]]/flags$ ./flags asdad asdad -student@ubuntu:~/piscine-go/flags$ ./flags --order 43a21 +student@ubuntu:~/[[ROOT]]/flags$ ./flags --order 43a21 1234a -student@ubuntu:~/piscine-go/flags$ ./flags +student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/piscine-go/flags$ -student@ubuntu:~/piscine-go/flags$ ./flags -h +student@ubuntu:~/[[ROOT]]/flags$ +student@ubuntu:~/[[ROOT]]/flags$ ./flags -h --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/piscine-go/flags$ -student@ubuntu:~/piscine-go/flags$ ./flags --help +student@ubuntu:~/[[ROOT]]/flags$ +student@ubuntu:~/[[ROOT]]/flags$ ./flags --help --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/piscine-go/flags$ +student@ubuntu:~/[[ROOT]]/flags$ ``` diff --git a/subjects/flags.fr.md b/subjects/flags.fr.md index 17129d36..88897f40 100644 --- a/subjects/flags.fr.md +++ b/subjects/flags.fr.md @@ -13,37 +13,37 @@ This program should : Example of output : ```console -student@ubuntu:~/piscine-go/flags$ go build -student@ubuntu:~/piscine-go/flags$ ./flags --insert=4321 --order asdad +student@ubuntu:~/[[ROOT]]/flags$ go build +student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert=4321 --order asdad 1234aadds -student@ubuntu:~/piscine-go/flags$ ./flags --insert=4321 asdad +student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert=4321 asdad asdad4321 -student@ubuntu:~/piscine-go/flags$ ./flags asdad +student@ubuntu:~/[[ROOT]]/flags$ ./flags asdad asdad -student@ubuntu:~/piscine-go/flags$ ./flags --order 43a21 +student@ubuntu:~/[[ROOT]]/flags$ ./flags --order 43a21 1234a -student@ubuntu:~/piscine-go/flags$ ./flags +student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/piscine-go/flags$ -student@ubuntu:~/piscine-go/flags$ ./flags -h +student@ubuntu:~/[[ROOT]]/flags$ +student@ubuntu:~/[[ROOT]]/flags$ ./flags -h --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/piscine-go/flags$ -student@ubuntu:~/piscine-go/flags$ ./flags --help +student@ubuntu:~/[[ROOT]]/flags$ +student@ubuntu:~/[[ROOT]]/flags$ ./flags --help --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/piscine-go/flags$ +student@ubuntu:~/[[ROOT]]/flags$ ``` diff --git a/subjects/foreach.en.md b/subjects/foreach.en.md index 4cd52f9e..a89661b1 100644 --- a/subjects/foreach.en.md +++ b/subjects/foreach.en.md @@ -30,8 +30,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 123456 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/foreach.fr.md b/subjects/foreach.fr.md index 58bb0a08..c3935562 100644 --- a/subjects/foreach.fr.md +++ b/subjects/foreach.fr.md @@ -30,8 +30,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 123456 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/fprime.en.md b/subjects/fprime.en.md index c33dd89b..2e99ae99 100644 --- a/subjects/fprime.en.md +++ b/subjects/fprime.en.md @@ -13,22 +13,22 @@ Write a program that takes a positive `int` and displays its prime factors, foll ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test 225225 +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 225225 3*3*5*5*7*11*13 -student@ubuntu:~/piscine-go/test$ ./test 8333325 +student@ubuntu:~/[[ROOT]]/test$ ./test 8333325 3*3*5*5*7*11*13*37 -student@ubuntu:~/piscine-go/test$ ./test 9539 +student@ubuntu:~/[[ROOT]]/test$ ./test 9539 9539 -student@ubuntu:~/piscine-go/test$ ./test 804577 +student@ubuntu:~/[[ROOT]]/test$ ./test 804577 804577 -student@ubuntu:~/piscine-go/test$ ./test 42 +student@ubuntu:~/[[ROOT]]/test$ ./test 42 2*3*7 -student@ubuntu:~/piscine-go/test$ ./test a +student@ubuntu:~/[[ROOT]]/test$ ./test a -student@ubuntu:~/piscine-go/test$ ./test 0 +student@ubuntu:~/[[ROOT]]/test$ ./test 0 -student@ubuntu:~/piscine-go/test$ ./test 1 +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/fprime.fr.md b/subjects/fprime.fr.md index b0602105..7a226490 100644 --- a/subjects/fprime.fr.md +++ b/subjects/fprime.fr.md @@ -13,22 +13,22 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test 225225 +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 225225 3*3*5*5*7*11*13 -student@ubuntu:~/piscine-go/test$ ./test 8333325 +student@ubuntu:~/[[ROOT]]/test$ ./test 8333325 3*3*5*5*7*11*13*37 -student@ubuntu:~/piscine-go/test$ ./test 9539 +student@ubuntu:~/[[ROOT]]/test$ ./test 9539 9539 -student@ubuntu:~/piscine-go/test$ ./test 804577 +student@ubuntu:~/[[ROOT]]/test$ ./test 804577 804577 -student@ubuntu:~/piscine-go/test$ ./test 42 +student@ubuntu:~/[[ROOT]]/test$ ./test 42 2*3*7 -student@ubuntu:~/piscine-go/test$ ./test a +student@ubuntu:~/[[ROOT]]/test$ ./test a -student@ubuntu:~/piscine-go/test$ ./test 0 +student@ubuntu:~/[[ROOT]]/test$ ./test 0 -student@ubuntu:~/piscine-go/test$ ./test 1 +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/gcd.en.md b/subjects/gcd.en.md index 84deeaec..98a1b6a7 100644 --- a/subjects/gcd.en.md +++ b/subjects/gcd.en.md @@ -13,18 +13,18 @@ All arguments tested will be positive `int` values. ### Usage ```console -student@ubuntu:~/piscine-go/gcd$ go build -student@ubuntu:~/piscine-go/gcd$ ./gcd 42 10 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ go build +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 42 10 | cat -e 2$ -student@ubuntu:~/piscine-go/gcd$ ./gcd 42 12 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 42 12 | cat -e 6$ -student@ubuntu:~/piscine-go/gcd$ ./gcd 14 77 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 14 77 | cat -e 7$ -student@ubuntu:~/piscine-go/gcd$ ./gcd 17 3 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 17 3 | cat -e 1$ -student@ubuntu:~/piscine-go/gcd$ ./gcd | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd | cat -e $ -student@ubuntu:~/piscine-go/gcd$ ./gcd 50 12 4 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 50 12 4 | cat -e $ -student@ubuntu:~/piscine-go/gcd$ +student@ubuntu:~/[[ROOT]]/gcd$ ``` diff --git a/subjects/gcd.fr.md b/subjects/gcd.fr.md index 7e1d5131..9787b6cb 100644 --- a/subjects/gcd.fr.md +++ b/subjects/gcd.fr.md @@ -13,18 +13,18 @@ Tous les arguments testés seront des `int` positifs. ### Utilisation ```console -student@ubuntu:~/piscine-go/gcd$ go build -student@ubuntu:~/piscine-go/gcd$ ./gcd 42 10 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ go build +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 42 10 | cat -e 2$ -student@ubuntu:~/piscine-go/gcd$ ./gcd 42 12 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 42 12 | cat -e 6$ -student@ubuntu:~/piscine-go/gcd$ ./gcd 14 77 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 14 77 | cat -e 7$ -student@ubuntu:~/piscine-go/gcd$ ./gcd 17 3 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 17 3 | cat -e 1$ -student@ubuntu:~/piscine-go/gcd$ ./gcd | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd | cat -e $ -student@ubuntu:~/piscine-go/gcd$ ./gcd 50 12 4 | cat -e +student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 50 12 4 | cat -e $ -student@ubuntu:~/piscine-go/gcd$ +student@ubuntu:~/[[ROOT]]/gcd$ ``` diff --git a/subjects/hello.en.md b/subjects/hello.en.md index 55140043..6fc55d07 100644 --- a/subjects/hello.en.md +++ b/subjects/hello.en.md @@ -7,8 +7,8 @@ Write a program that displays "Hello World!" followed by a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello World! -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/hello.fr.md b/subjects/hello.fr.md index b5400f10..f9fa9f50 100644 --- a/subjects/hello.fr.md +++ b/subjects/hello.fr.md @@ -7,8 +7,8 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello World! -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/hiddenp.en.md b/subjects/hiddenp.en.md index 992b66e1..0cc00088 100644 --- a/subjects/hiddenp.en.md +++ b/subjects/hiddenp.en.md @@ -13,14 +13,14 @@ If the number of parameters is different from 2, the program displays a newline. ### Usage ```console -student@ubuntu:~/piscine-go/hiddenp$ go build -student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e +student@ubuntu:~/[[ROOT]]/hiddenp$ go build +student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e 1$ -student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e +student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e 1$ -student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "abc" "btarc" | cat -e +student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "abc" "btarc" | cat -e 0$ -student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp | cat -e +student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp | cat -e $ -student@ubuntu:~/piscine-go/hiddenp$ +student@ubuntu:~/[[ROOT]]/hiddenp$ ``` diff --git a/subjects/hiddenp.fr.md b/subjects/hiddenp.fr.md index 7dd2b38a..0f4b796b 100644 --- a/subjects/hiddenp.fr.md +++ b/subjects/hiddenp.fr.md @@ -13,14 +13,14 @@ Si le nombre de paramètres est différent de 2, le programme affiche un retour ### Utilisation ```console -student@ubuntu:~/piscine-go/hiddenp$ go build -student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e +student@ubuntu:~/[[ROOT]]/hiddenp$ go build +student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e 1$ -student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e +student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e 1$ -student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "abc" "btarc" | cat -e +student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "abc" "btarc" | cat -e 0$ -student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp | cat -e +student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp | cat -e $ -student@ubuntu:~/piscine-go/hiddenp$ +student@ubuntu:~/[[ROOT]]/hiddenp$ ``` diff --git a/subjects/index.en.md b/subjects/index.en.md index 7272ad1d..d948e165 100644 --- a/subjects/index.en.md +++ b/subjects/index.en.md @@ -34,10 +34,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 2 1 -1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/index.fr.md b/subjects/index.fr.md index dfad63ab..059ad7ea 100644 --- a/subjects/index.fr.md +++ b/subjects/index.fr.md @@ -34,10 +34,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 2 1 -1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/inter.en.md b/subjects/inter.en.md index 77c9f642..3a293d05 100644 --- a/subjects/inter.en.md +++ b/subjects/inter.en.md @@ -11,10 +11,10 @@ Write a program that takes two `string` and displays, without doubles, the chara ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" padinto -student@ubuntu:~/piscine-go/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd +student@ubuntu:~/[[ROOT]]/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd df6ewg4 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/inter.fr.md b/subjects/inter.fr.md index af17bf30..5f297414 100644 --- a/subjects/inter.fr.md +++ b/subjects/inter.fr.md @@ -11,10 +11,10 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" padinto -student@ubuntu:~/piscine-go/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd +student@ubuntu:~/[[ROOT]]/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd df6ewg4 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/introduction.en.md b/subjects/introduction.en.md index ffe99fdb..a0bfd047 100644 --- a/subjects/introduction.en.md +++ b/subjects/introduction.en.md @@ -4,7 +4,7 @@ #### 1- get-ready -Create in your [Gitea](https://git.01.alem.school) account the repository named `piscine-go`. +Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `[[ROOT]]`. This repository will be the folder where all the exercices must be uploaded. @@ -12,7 +12,7 @@ Once created, clone that repository on your desktop. If your username was `choumi` this is the command that will need to be used : -`git clone git@git.01.alem.school:choumi/piscine-go.git` +`git clone git@git.[[DOMAIN]]:choumi/[[ROOT]].git` This command needs to be adapted with **your own username**. @@ -21,8 +21,6 @@ Follow the steps below. #### SSH Configuration -**With the USB drive plugged in!!** - Execute the following commands: ```console @@ -33,7 +31,7 @@ cat ~/.ssh/id_ed25519.pub - Copy the result and paste it in the content field of adding an ssh key in your settings (adapt the link with your username). -[https://git.01.alem.school/choumi/settings/keys](https://git.01.alem.school/choumi/settings/keys) +[https://git.[[DOMAIN]]/choumi/settings/keys](https://git.[[DOMAIN]]/choumi/settings/keys) - Confirm by clicking on the add key button. @@ -51,9 +49,9 @@ Where `choumi` is your username If the username is `choumi` : ```console -user@host:~/piscine-go$ ./hello.sh +user@host:~/[[ROOT]]$ ./hello.sh Hello choumi! -user@host:~/piscine-go$ +user@host:~/[[ROOT]]$ ``` #### 3- go-say-hello diff --git a/subjects/introduction.fr.md b/subjects/introduction.fr.md index c86102fc..e8e09175 100644 --- a/subjects/introduction.fr.md +++ b/subjects/introduction.fr.md @@ -4,12 +4,12 @@ #### 1- get-ready -Créer dans votre compte `git` le repository nommé `piscine-go`. +Créer dans votre compte `git` le repository nommé `[[ROOT]]`. Une fois créé, cloner ce repository sur votre desktop. Si votre nom d'utilisateur `git` était `choumi` voici la commande qui devrait être utilisé : -`git clone https://01.alem.school/git/choumi/piscine-go` +`git clone https://[[DOMAIN]]/git/choumi/[[ROOT]]` Cette commande doit être adaptée avec **votre propre username**. @@ -27,9 +27,9 @@ Où `{username}` est votre `username` Si l'`{username}` est `choumi` : ```console -user@host:~/piscine-go$ ./hello.sh +user@host:~/[[ROOT]]$ ./hello.sh Hello choumi! -user@host:~/piscine-go$ +user@host:~/[[ROOT]]$ ``` #### 3- go-say-hello diff --git a/subjects/isalpha.en.md b/subjects/isalpha.en.md index 09b52f81..79a0913b 100644 --- a/subjects/isalpha.en.md +++ b/subjects/isalpha.en.md @@ -36,11 +36,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test false true false true -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isalpha.fr.md b/subjects/isalpha.fr.md index 9540ce54..2de841d2 100644 --- a/subjects/isalpha.fr.md +++ b/subjects/isalpha.fr.md @@ -36,11 +36,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test false true false true -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/islower.en.md b/subjects/islower.en.md index c9015e4a..8cab6d15 100644 --- a/subjects/islower.en.md +++ b/subjects/islower.en.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/islower.fr.md b/subjects/islower.fr.md index 7234ef69..21d0af35 100644 --- a/subjects/islower.fr.md +++ b/subjects/islower.fr.md @@ -34,9 +34,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isnegative.en.md b/subjects/isnegative.en.md index b8cf74ba..22b7f448 100644 --- a/subjects/isnegative.en.md +++ b/subjects/isnegative.en.md @@ -31,10 +31,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test F F T -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isnegative.fr.md b/subjects/isnegative.fr.md index d65ddea2..55638c04 100644 --- a/subjects/isnegative.fr.md +++ b/subjects/isnegative.fr.md @@ -31,10 +31,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test F F T -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isnumeric.en.md b/subjects/isnumeric.en.md index 781e8f87..7e0bab04 100644 --- a/subjects/isnumeric.en.md +++ b/subjects/isnumeric.en.md @@ -33,9 +33,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isnumeric.fr.md b/subjects/isnumeric.fr.md index 0cfbb276..a2db51ef 100644 --- a/subjects/isnumeric.fr.md +++ b/subjects/isnumeric.fr.md @@ -34,9 +34,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isprime.en.md b/subjects/isprime.en.md index 0962260c..3e2d0d08 100644 --- a/subjects/isprime.en.md +++ b/subjects/isprime.en.md @@ -35,9 +35,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isprime.fr.md b/subjects/isprime.fr.md index 0903a235..c2347325 100644 --- a/subjects/isprime.fr.md +++ b/subjects/isprime.fr.md @@ -35,9 +35,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isprintable.en.md b/subjects/isprintable.en.md index 6bd30a8d..da19c3a9 100644 --- a/subjects/isprintable.en.md +++ b/subjects/isprintable.en.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isprintable.fr.md b/subjects/isprintable.fr.md index 1e2f1a1d..c96ae4de 100644 --- a/subjects/isprintable.fr.md +++ b/subjects/isprintable.fr.md @@ -34,9 +34,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/issorted.en.md b/subjects/issorted.en.md index fd9822b7..d0ee9333 100644 --- a/subjects/issorted.en.md +++ b/subjects/issorted.en.md @@ -44,9 +44,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/issorted.fr.md b/subjects/issorted.fr.md index cf9642df..176eb4f3 100644 --- a/subjects/issorted.fr.md +++ b/subjects/issorted.fr.md @@ -43,9 +43,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isupper.en.md b/subjects/isupper.en.md index 396e5893..80359b98 100644 --- a/subjects/isupper.en.md +++ b/subjects/isupper.en.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/isupper.fr.md b/subjects/isupper.fr.md index 393bf54d..68199723 100644 --- a/subjects/isupper.fr.md +++ b/subjects/isupper.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test true false stude0t@ubuntu:~$ diff --git a/subjects/iterativefactorial.en.md b/subjects/iterativefactorial.en.md index 7557d75f..a27c1ee6 100644 --- a/subjects/iterativefactorial.en.md +++ b/subjects/iterativefactorial.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 24 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/iterativefactorial.fr.md b/subjects/iterativefactorial.fr.md index 2f98314e..81e01817 100644 --- a/subjects/iterativefactorial.fr.md +++ b/subjects/iterativefactorial.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 24 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/iterativepower.en.md b/subjects/iterativepower.en.md index 17b8f575..dbc928c9 100644 --- a/subjects/iterativepower.en.md +++ b/subjects/iterativepower.en.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 64 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/iterativepower.fr.md b/subjects/iterativepower.fr.md index af3fc617..654478ba 100644 --- a/subjects/iterativepower.fr.md +++ b/subjects/iterativepower.fr.md @@ -37,8 +37,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 64 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/join.en.md b/subjects/join.en.md index d5daaba3..fb53fa66 100644 --- a/subjects/join.en.md +++ b/subjects/join.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello!: How: are: you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/join.fr.md b/subjects/join.fr.md index 0a3584e6..3d0f9b46 100644 --- a/subjects/join.fr.md +++ b/subjects/join.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello!: How: are: you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/lastrune.en.md b/subjects/lastrune.en.md index e9bd1521..dbc7e466 100644 --- a/subjects/lastrune.en.md +++ b/subjects/lastrune.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test !!! -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/lastrune.fr.md b/subjects/lastrune.fr.md index fdd47229..99ab87c7 100644 --- a/subjects/lastrune.fr.md +++ b/subjects/lastrune.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test !!! -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/lastruneprog.fr.md b/subjects/lastruneprog.fr.md index e3722527..73e9ecce 100644 --- a/subjects/lastruneprog.fr.md +++ b/subjects/lastruneprog.fr.md @@ -7,13 +7,13 @@ ### Utilisation : ```console -student@ubuntu:~/piscine-go/firstruneprog$ go build -student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this is not happening" +student@ubuntu:~/[[ROOT]]/firstruneprog$ go build +student@ubuntu:~/[[ROOT]]/firstruneprog$ ./firstruneprog "this is not happening" g -student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "hello" | cat -e +student@ubuntu:~/[[ROOT]]/firstruneprog$ ./firstruneprog "hello" | cat -e o$ -student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this" "is" "not" "happening" -student@ubuntu:~/piscine-go/firstruneprog$ -student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog -student@ubuntu:~/piscine-go/firstruneprog$ +student@ubuntu:~/[[ROOT]]/firstruneprog$ ./firstruneprog "this" "is" "not" "happening" +student@ubuntu:~/[[ROOT]]/firstruneprog$ +student@ubuntu:~/[[ROOT]]/firstruneprog$ ./firstruneprog +student@ubuntu:~/[[ROOT]]/firstruneprog$ ``` diff --git a/subjects/lastword.en.md b/subjects/lastword.en.md index 886afee8..faf259c1 100644 --- a/subjects/lastword.en.md +++ b/subjects/lastword.en.md @@ -13,16 +13,16 @@ Write a program that takes a `string` and displays its last word, followed by a ### Usage ```console -student@ubuntu:~/piscine-go/lastword$ go build -student@ubuntu:~/piscine-go/lastword$ ./lastword "FOR PONY" | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ go build +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "FOR PONY" | cat -e PONY$ -student@ubuntu:~/piscine-go/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e not$ -student@ubuntu:~/piscine-go/lastword$ ./lastword " " | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword " " | cat -e $ -student@ubuntu:~/piscine-go/lastword$ ./lastword "a" "b" | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "a" "b" | cat -e $ -student@ubuntu:~/piscine-go/lastword$ ./lastword " lorem,ipsum " | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword " lorem,ipsum " | cat -e lorem,ipsum$ -student@ubuntu:~/piscine-go/lastword$ +student@ubuntu:~/[[ROOT]]/lastword$ ``` diff --git a/subjects/lastword.fr.md b/subjects/lastword.fr.md index 89098795..fba0f407 100644 --- a/subjects/lastword.fr.md +++ b/subjects/lastword.fr.md @@ -13,16 +13,16 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/lastword$ go build -student@ubuntu:~/piscine-go/lastword$ ./lastword "FOR PONY" | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ go build +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "FOR PONY" | cat -e PONY$ -student@ubuntu:~/piscine-go/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e not$ -student@ubuntu:~/piscine-go/lastword$ ./lastword " " | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword " " | cat -e $ -student@ubuntu:~/piscine-go/lastword$ ./lastword "a" "b" | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "a" "b" | cat -e $ -student@ubuntu:~/piscine-go/lastword$ ./lastword " lorem,ipsum " | cat -e +student@ubuntu:~/[[ROOT]]/lastword$ ./lastword " lorem,ipsum " | cat -e lorem,ipsum$ -student@ubuntu:~/piscine-go/lastword$ +student@ubuntu:~/[[ROOT]]/lastword$ ``` diff --git a/subjects/listat.en.md b/subjects/listat.en.md index 7cf103d7..0f4988ab 100644 --- a/subjects/listat.en.md +++ b/subjects/listat.en.md @@ -49,10 +49,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test you hello -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listat.fr.md b/subjects/listat.fr.md index 60aad350..53a2537d 100644 --- a/subjects/listat.fr.md +++ b/subjects/listat.fr.md @@ -49,10 +49,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 how are -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listclear.en.md b/subjects/listclear.en.md index 3bb8eeac..d9d9e036 100644 --- a/subjects/listclear.en.md +++ b/subjects/listclear.en.md @@ -58,11 +58,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ------list------ I -> 1 -> something -> 2 -> ------updated list------ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listclear.fr.md b/subjects/listclear.fr.md index 99401d14..b4175b85 100644 --- a/subjects/listclear.fr.md +++ b/subjects/listclear.fr.md @@ -58,11 +58,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ------list------ I -> 1 -> something -> 2 -> ------updated list------ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listfind.en.md b/subjects/listfind.en.md index 670a4ef8..3386e7e7 100644 --- a/subjects/listfind.en.md +++ b/subjects/listfind.en.md @@ -58,11 +58,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0xc42000a0a0 hello2 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` ### Note diff --git a/subjects/listfind.fr.md b/subjects/listfind.fr.md index 93383ec4..2841556d 100644 --- a/subjects/listfind.fr.md +++ b/subjects/listfind.fr.md @@ -58,11 +58,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0xc42000a0a0 hello2 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` ### Note diff --git a/subjects/listforeach.en.md b/subjects/listforeach.en.md index 843d70d9..e785be33 100644 --- a/subjects/listforeach.en.md +++ b/subjects/listforeach.en.md @@ -76,11 +76,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12 22 32 52 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listforeach.fr.md b/subjects/listforeach.fr.md index 4b44eef8..bf20c9aa 100644 --- a/subjects/listforeach.fr.md +++ b/subjects/listforeach.fr.md @@ -76,11 +76,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12 22 32 52 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listforeachif.en.md b/subjects/listforeachif.en.md index 3075af54..63fdb41e 100644 --- a/subjects/listforeachif.en.md +++ b/subjects/listforeachif.en.md @@ -117,8 +117,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1->hello->3->there->23->!->54->nil --------function applied-------- 1 @@ -128,6 +128,6 @@ student@ubuntu:~/piscine-go/test$ ./test --------function applied-------- 1->2->3->2->23->2->54->nil -student@ubuntu:~/piscine-go/test$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listforeachif.fr.md b/subjects/listforeachif.fr.md index acfbcb2f..bb0087c2 100644 --- a/subjects/listforeachif.fr.md +++ b/subjects/listforeachif.fr.md @@ -118,8 +118,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1->hello->3->there->23->!->54->nil --------function applied-------- 1 @@ -128,5 +128,5 @@ student@ubuntu:~/piscine-go/test$ ./test 54 --------function applied-------- 1->2->3->2->23->2->54->nil -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listlast.en.md b/subjects/listlast.en.md index 1995d61d..26b1ce0e 100644 --- a/subjects/listlast.en.md +++ b/subjects/listlast.en.md @@ -51,9 +51,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listlast.fr.md b/subjects/listlast.fr.md index f8af75df..c9b400b8 100644 --- a/subjects/listlast.fr.md +++ b/subjects/listlast.fr.md @@ -51,9 +51,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listmerge.en.md b/subjects/listmerge.en.md index bdb5aa42..7714cfec 100644 --- a/subjects/listmerge.en.md +++ b/subjects/listmerge.en.md @@ -73,13 +73,13 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test -----first List------ a -> b -> c -> d -> -----second List------ e -> f -> g -> h -> -----Merged List----- a -> b -> c -> d -> e -> f -> g -> h -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listmerge.fr.md b/subjects/listmerge.fr.md index 8d31b850..3d68628a 100644 --- a/subjects/listmerge.fr.md +++ b/subjects/listmerge.fr.md @@ -73,8 +73,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test a -> b -> c -> d -> e -> f -> g -> h -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listpushback.en.md b/subjects/listpushback.en.md index c698dcb8..2067a375 100644 --- a/subjects/listpushback.en.md +++ b/subjects/listpushback.en.md @@ -52,10 +52,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello man how are you -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listpushback.fr.md b/subjects/listpushback.fr.md index 07d15cb3..5f55dd67 100644 --- a/subjects/listpushback.fr.md +++ b/subjects/listpushback.fr.md @@ -52,10 +52,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Hello man how are you -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listpushfront.en.md b/subjects/listpushfront.en.md index 2d6a3d6b..938a5872 100644 --- a/subjects/listpushfront.en.md +++ b/subjects/listpushfront.en.md @@ -55,8 +55,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test how are you man Hello -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listpushfront.fr.md b/subjects/listpushfront.fr.md index c624f9c6..a077dd5e 100644 --- a/subjects/listpushfront.fr.md +++ b/subjects/listpushfront.fr.md @@ -55,8 +55,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test how are you man Hello -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listpushpara.en.md b/subjects/listpushpara.en.md index 43067081..98716369 100644 --- a/subjects/listpushpara.en.md +++ b/subjects/listpushpara.en.md @@ -9,12 +9,12 @@ Write a program that creates a new linked list and includes each command-line ar And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./listpushparams choumi is the best cat +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./listpushparams choumi is the best cat cat best the is choumi -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listpushparams.en.md b/subjects/listpushparams.en.md index fdeac10a..8ff23cfc 100644 --- a/subjects/listpushparams.en.md +++ b/subjects/listpushparams.en.md @@ -11,12 +11,12 @@ Write a program that creates a new linked list and includes each command-line ar And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./listpushparams choumi is the best cat +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./listpushparams choumi is the best cat cat best the is choumi -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ```` diff --git a/subjects/listpushparams.fr.md b/subjects/listpushparams.fr.md index 7a36a781..92d3d3b9 100644 --- a/subjects/listpushparams.fr.md +++ b/subjects/listpushparams.fr.md @@ -37,9 +37,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0 2 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listremoveif.en.md b/subjects/listremoveif.en.md index 86f4d99d..427bfd27 100644 --- a/subjects/listremoveif.en.md +++ b/subjects/listremoveif.en.md @@ -80,8 +80,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ----normal state---- 1 -> ------answer----- @@ -91,5 +91,5 @@ student@ubuntu:~/piscine-go/test$ ./test 1 -> Hello -> 1 -> There -> 1 -> 1 -> How -> 1 -> are -> you -> 1 -> ------answer----- Hello -> There -> How -> are -> you -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listremoveif.fr.md b/subjects/listremoveif.fr.md index d7e5141b..65203567 100644 --- a/subjects/listremoveif.fr.md +++ b/subjects/listremoveif.fr.md @@ -80,8 +80,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ----normal state---- 1 -> ------answer----- @@ -91,5 +91,5 @@ student@ubuntu:~/piscine-go/test$ ./test 1 -> Hello -> 1 -> There -> 1 -> 1 -> How -> 1 -> are -> you -> 1 -> ------answer----- Hello -> There -> How -> are -> you -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listreverse.en.md b/subjects/listreverse.en.md index 6fbde299..408697e0 100644 --- a/subjects/listreverse.en.md +++ b/subjects/listreverse.en.md @@ -59,13 +59,13 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 3 2 1 Tail Head &{4 0xc42000a140} -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listreverse.fr.md b/subjects/listreverse.fr.md index 2deb69ec..0ea58d91 100644 --- a/subjects/listreverse.fr.md +++ b/subjects/listreverse.fr.md @@ -59,13 +59,13 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 3 2 1 Tail Head &{4 0xc42000a140} -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listsize.en.md b/subjects/listsize.en.md index e4e61410..e59e9774 100644 --- a/subjects/listsize.en.md +++ b/subjects/listsize.en.md @@ -49,8 +49,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listsize.fr.md b/subjects/listsize.fr.md index 7f1f30ee..bc5d8495 100644 --- a/subjects/listsize.fr.md +++ b/subjects/listsize.fr.md @@ -49,8 +49,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listsort.en.md b/subjects/listsort.en.md index 288c5ee8..b7242d72 100644 --- a/subjects/listsort.en.md +++ b/subjects/listsort.en.md @@ -71,8 +71,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -> 2 -> 3 -> 4 -> 5 -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/listsort.fr.md b/subjects/listsort.fr.md index 089878c8..9f888c67 100644 --- a/subjects/listsort.fr.md +++ b/subjects/listsort.fr.md @@ -71,8 +71,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -> 2 -> 3 -> 4 -> 5 -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/makerange.en.md b/subjects/makerange.en.md index 83f2e49c..b25cabe0 100644 --- a/subjects/makerange.en.md +++ b/subjects/makerange.en.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/makerange.fr.md b/subjects/makerange.fr.md index a98282ef..b1894ba8 100644 --- a/subjects/makerange.fr.md +++ b/subjects/makerange.fr.md @@ -39,9 +39,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/map.en.md b/subjects/map.en.md index 9d8954ec..675602a3 100644 --- a/subjects/map.en.md +++ b/subjects/map.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [false true true false true false] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/map.fr.md b/subjects/map.fr.md index e734b91c..9fdd634a 100644 --- a/subjects/map.fr.md +++ b/subjects/map.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [false true true false true false] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/max.en.md b/subjects/max.en.md index 0c79b5e7..652438d1 100644 --- a/subjects/max.en.md +++ b/subjects/max.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 123 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/max.fr.md b/subjects/max.fr.md index a284d06e..1ebf4cf5 100644 --- a/subjects/max.fr.md +++ b/subjects/max.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 123 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/now-get-to-work.en.md b/subjects/now-get-to-work.en.md index 9bbeab3c..1cec7949 100644 --- a/subjects/now-get-to-work.en.md +++ b/subjects/now-get-to-work.en.md @@ -11,9 +11,9 @@ Submit your solution in the file `my_answer.sh` that will print it when executed ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ ./my_answer.sh | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./my_answer.sh | cat -e John Doe$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` ### Hint diff --git a/subjects/now-get-to-work.fr.md b/subjects/now-get-to-work.fr.md index 6a5036bd..4df22713 100644 --- a/subjects/now-get-to-work.fr.md +++ b/subjects/now-get-to-work.fr.md @@ -11,9 +11,9 @@ Rendez votre solution dans un fichier `my_answer.sh` qui l'affichera quand exéc ### Usage ```console -student@ubuntu:~/piscine-go/test$ ./my_answer.sh | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./my_answer.sh | cat -e John Doe$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` ### Hint diff --git a/subjects/nrune.en.md b/subjects/nrune.en.md index 3ce8b763..3f33a063 100644 --- a/subjects/nrune.en.md +++ b/subjects/nrune.en.md @@ -39,8 +39,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test la! -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/nrune.fr.md b/subjects/nrune.fr.md index 1874e2b1..0589bd06 100644 --- a/subjects/nrune.fr.md +++ b/subjects/nrune.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test la! -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/nruneprog.en.md b/subjects/nruneprog.en.md index 3cd7cc4f..c1c9f916 100644 --- a/subjects/nruneprog.en.md +++ b/subjects/nruneprog.en.md @@ -50,8 +50,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test la! -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/nruneprog.fr.md b/subjects/nruneprog.fr.md index c664eb70..fc013786 100644 --- a/subjects/nruneprog.fr.md +++ b/subjects/nruneprog.fr.md @@ -7,16 +7,16 @@ ### Utilisation : ```console -student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 2 +student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" 2 e -student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 4 | cat -e +student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" 4 | cat -e l$ -student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 5 +student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" 5 o -student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" -student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" f | cat -e +student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" +student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" f | cat -e "f" is not an integer value$ -student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 9 +student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" 9 Invalid position: "9" in "hello" -student@ubuntu:~/piscine-go/nruneprog$ +student@ubuntu:~/[[ROOT]]/nruneprog$ ``` diff --git a/subjects/options.en.md b/subjects/options.en.md index 377c1ad1..cafa3e6d 100644 --- a/subjects/options.en.md +++ b/subjects/options.en.md @@ -19,16 +19,16 @@ Write a program that takes an undefined number of arguments which could be consi ## Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/piscine-go/test$ ./test -abc -ijk | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test -abc -ijk | cat -e 00000000 00000000 00000111 00000111$ -student@ubuntu:~/piscine-go/test$ ./test -z | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test -z | cat -e 00000010 00000000 00000000 00000000$ -student@ubuntu:~/piscine-go/test$ ./test -abc -hijk | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test -abc -hijk | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/piscine-go/test$ ./test -% | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test -% | cat -e Invalid Option$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/options.fr.md b/subjects/options.fr.md index 264a45c7..a523f64c 100644 --- a/subjects/options.fr.md +++ b/subjects/options.fr.md @@ -19,16 +19,16 @@ ## Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/piscine-go/test$ ./test -abc -ijk | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test -abc -ijk | cat -e 00000000 00000000 00000111 00000111$ -student@ubuntu:~/piscine-go/test$ ./test -z | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test -z | cat -e 00000010 00000000 00000000 00000000$ -student@ubuntu:~/piscine-go/test$ ./test -abc -hijk | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test -abc -hijk | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/piscine-go/test$ ./test -% | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test -% | cat -e Invalid Option$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/paramcount.en.md b/subjects/paramcount.en.md index 3d952344..cca06ff6 100644 --- a/subjects/paramcount.en.md +++ b/subjects/paramcount.en.md @@ -10,12 +10,12 @@ If there is no argument, the program displays `0` followed by a newline. ### Usage ```console -student@ubuntu:~/piscine-go/paramcount$ go build -student@ubuntu:~/piscine-go/paramcount$ ./paramcount 1 2 3 5 7 24 +student@ubuntu:~/[[ROOT]]/paramcount$ go build +student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount 1 2 3 5 7 24 6 -student@ubuntu:~/piscine-go/paramcount$ ./paramcount 6 12 24 | cat -e +student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount 6 12 24 | cat -e 3$ -student@ubuntu:~/piscine-go/paramcount$ ./paramcount | cat -e +student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount | cat -e 0$ -student@ubuntu:~/piscine-go/paramcount$ +student@ubuntu:~/[[ROOT]]/paramcount$ ``` diff --git a/subjects/paramcount.fr.md b/subjects/paramcount.fr.md index 4b5e675d..ccb282bb 100644 --- a/subjects/paramcount.fr.md +++ b/subjects/paramcount.fr.md @@ -9,12 +9,12 @@ Si il n'y a pas d'argument, le programme affiche `0` suivi d'un retour à la lig ### Utilisation ```console -student@ubuntu:~/piscine-go/paramcount$ go build -student@ubuntu:~/piscine-go/paramcount$ ./paramcount 1 2 3 5 7 24 +student@ubuntu:~/[[ROOT]]/paramcount$ go build +student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount 1 2 3 5 7 24 6 -student@ubuntu:~/piscine-go/paramcount$ ./paramcount 6 12 24 | cat -e +student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount 6 12 24 | cat -e 3$ -student@ubuntu:~/piscine-go/paramcount$ ./paramcount | cat -e +student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount | cat -e 0$ -student@ubuntu:~/piscine-go/paramcount$ +student@ubuntu:~/[[ROOT]]/paramcount$ ``` diff --git a/subjects/point.en.md b/subjects/point.en.md index 80c232f4..a9109b8b 100644 --- a/subjects/point.en.md +++ b/subjects/point.en.md @@ -30,8 +30,8 @@ func main() { ### Expected output ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/point$ go build +student@ubuntu:~/[[ROOT]]/point$ ./point x = 42, y = 21 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/point$ ``` diff --git a/subjects/point.fr.md b/subjects/point.fr.md index 7a9ec82d..4cf7fbd4 100644 --- a/subjects/point.fr.md +++ b/subjects/point.fr.md @@ -31,8 +31,8 @@ func main() { ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test x = 42, y = 21 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/pointone.en.md b/subjects/pointone.en.md index dd358900..ddd2d74d 100644 --- a/subjects/pointone.en.md +++ b/subjects/pointone.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/pointone.fr.md b/subjects/pointone.fr.md index 0e781d4e..c3966655 100644 --- a/subjects/pointone.fr.md +++ b/subjects/pointone.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printalphabet.en.md b/subjects/printalphabet.en.md index 493703d8..e676a275 100644 --- a/subjects/printalphabet.en.md +++ b/subjects/printalphabet.en.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/piscine-go/printalphabet$ go build -student@ubuntu:~/piscine-go/printalphabet$ ./printalphabet +student@ubuntu:~/[[ROOT]]/printalphabet$ go build +student@ubuntu:~/[[ROOT]]/printalphabet$ ./printalphabet abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/piscine-go/printalphabet$ +student@ubuntu:~/[[ROOT]]/printalphabet$ ``` diff --git a/subjects/printalphabet.fr.md b/subjects/printalphabet.fr.md index 07a71671..5501368a 100644 --- a/subjects/printalphabet.fr.md +++ b/subjects/printalphabet.fr.md @@ -9,8 +9,8 @@ Une ligne est une suite de caractères précédant le caractère [fin de ligne]( ### Utilisation ```console -student@ubuntu:~/piscine-go/printalphabet$ go build -student@ubuntu:~/piscine-go/printalphabet$ ./printalphabet +student@ubuntu:~/[[ROOT]]/printalphabet$ go build +student@ubuntu:~/[[ROOT]]/printalphabet$ ./printalphabet abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/piscine-go/printalphabet$ +student@ubuntu:~/[[ROOT]]/printalphabet$ ``` diff --git a/subjects/printcomb.en.md b/subjects/printcomb.en.md index d4e8334f..c55575f3 100644 --- a/subjects/printcomb.en.md +++ b/subjects/printcomb.en.md @@ -31,10 +31,10 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` `000` or `999` are not valid combinations because the digits are not different. diff --git a/subjects/printcomb.fr.md b/subjects/printcomb.fr.md index d66ea2a3..714344d4 100644 --- a/subjects/printcomb.fr.md +++ b/subjects/printcomb.fr.md @@ -31,10 +31,10 @@ func main() { Voici la sortie tronquée : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` `000` et `999` ne sont pas des combinations valides parce que les chiffres ne sont pas différents. diff --git a/subjects/printcomb2.en.md b/subjects/printcomb2.en.md index 616969bf..e287e481 100644 --- a/subjects/printcomb2.en.md +++ b/subjects/printcomb2.en.md @@ -31,8 +31,8 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e 00 01, 00 02, 00 03, ..., 00 98, 00 99, 01 02, 01 03, ..., 97 98, 97 99, 98 99$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printcomb2.fr.md b/subjects/printcomb2.fr.md index 77489fd6..7c640405 100644 --- a/subjects/printcomb2.fr.md +++ b/subjects/printcomb2.fr.md @@ -31,8 +31,8 @@ func main() { Voici la sortie tronquée : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e 00 01, 00 02, 00 03, ..., 00 98, 00 99, 01 02, 01 03, ..., 97 98, 97 99, 98 99$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printcombn.en.md b/subjects/printcombn.en.md index 96e12867..80fb42b7 100644 --- a/subjects/printcombn.en.md +++ b/subjects/printcombn.en.md @@ -31,7 +31,7 @@ import piscine ".." func main() { piscine.PrintCombN(1) - piscine.PrintCombN(2) + piscine.PrintCombN(3) piscine.PrintCombN(9) } ``` @@ -39,10 +39,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 012, 013, 014, 015, 016, 017, 018, ... 679, 689, 789 012345678, 012345679, ..., 123456789 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printcombn.fr.md b/subjects/printcombn.fr.md index 197fa009..e6fe2018 100644 --- a/subjects/printcombn.fr.md +++ b/subjects/printcombn.fr.md @@ -39,10 +39,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 012, 013, 014, 015, 016, 017, 018, ... 679, 689, 789 012345678, 012345679, ..., 123456789 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printcombprog.en.md b/subjects/printcombprog.en.md index c10cb203..0867cb64 100644 --- a/subjects/printcombprog.en.md +++ b/subjects/printcombprog.en.md @@ -11,10 +11,10 @@ These combinations are separated by a comma and a space. Here is an **incomplete** output : ```console -student@ubuntu:~/piscine-go/printcombprog$ go build -student@ubuntu:~/piscine-go/printcombprog$ ./printcombprog | cat -e +student@ubuntu:~/[[ROOT]]/printcombprog$ go build +student@ubuntu:~/[[ROOT]]/printcombprog$ ./printcombprog | cat -e 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789$ -student@ubuntu:~/piscine-go/printcombprog$ +student@ubuntu:~/[[ROOT]]/printcombprog$ ``` `000` or `999` are not valid combinations because the digits are not different. diff --git a/subjects/printcombprog.fr.md b/subjects/printcombprog.fr.md index f2525732..9d908100 100644 --- a/subjects/printcombprog.fr.md +++ b/subjects/printcombprog.fr.md @@ -11,10 +11,10 @@ Les combinaisons sont séparées par une virgule et un espace. Voici une sortie **tronquée** : ```console -student@ubuntu:~/piscine-go/printcombprog$ go build -student@ubuntu:~/piscine-go/printcombprog$ ./printcombprog | cat -e +student@ubuntu:~/[[ROOT]]/printcombprog$ go build +student@ubuntu:~/[[ROOT]]/printcombprog$ ./printcombprog | cat -e 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789$ -student@ubuntu:~/piscine-go/printcombprog$ +student@ubuntu:~/[[ROOT]]/printcombprog$ ``` `000` et `999` ne sont pas des combinations valides parce que les chiffres ne sont pas différents. diff --git a/subjects/printdigits.en.md b/subjects/printdigits.en.md index dec99257..de44801c 100644 --- a/subjects/printdigits.en.md +++ b/subjects/printdigits.en.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the end of line character (`'\n'`). ### Usage ```console -student@ubuntu:~/piscine-go/printdigits$ go build -student@ubuntu:~/piscine-go/printdigits$ ./printdigits +student@ubuntu:~/[[ROOT]]/printdigits$ go build +student@ubuntu:~/[[ROOT]]/printdigits$ ./printdigits 0123456789 -student@ubuntu:~/piscine-go/printdigits$ +student@ubuntu:~/[[ROOT]]/printdigits$ ``` diff --git a/subjects/printdigits.fr.md b/subjects/printdigits.fr.md index a1a1b03f..cfa96dca 100644 --- a/subjects/printdigits.fr.md +++ b/subjects/printdigits.fr.md @@ -9,8 +9,8 @@ Une ligne est une suite de caractères précédant le caractère [fin de ligne]( ### Utilisation ```console -student@ubuntu:~/piscine-go/printdigits$ go build -student@ubuntu:~/piscine-go/printdigits$ ./printdigits +student@ubuntu:~/[[ROOT]]/printdigits$ go build +student@ubuntu:~/[[ROOT]]/printdigits$ ./printdigits 0123456789 -student@ubuntu:~/piscine-go/printdigits$ +student@ubuntu:~/[[ROOT]]/printdigits$ ``` diff --git a/subjects/printhex.en.md b/subjects/printhex.en.md index c1bdcd45..eaaffc5f 100644 --- a/subjects/printhex.en.md +++ b/subjects/printhex.en.md @@ -10,16 +10,16 @@ Write a program that takes a positive (or zero) number expressed in base 10, and ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "10" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "10" a -student@ubuntu:~/piscine-go/test$ ./test "255" +student@ubuntu:~/[[ROOT]]/test$ ./test "255" ff -student@ubuntu:~/piscine-go/test$ ./test "5156454" +student@ubuntu:~/[[ROOT]]/test$ ./test "5156454" 4eae66 -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ ./test "123 132 1" | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test "123 132 1" | cat -e 0$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printhex.fr.md b/subjects/printhex.fr.md index 7960e6c3..59b3a274 100644 --- a/subjects/printhex.fr.md +++ b/subjects/printhex.fr.md @@ -11,16 +11,16 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "10" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "10" a -student@ubuntu:~/piscine-go/test$ ./test "255" +student@ubuntu:~/[[ROOT]]/test$ ./test "255" ff -student@ubuntu:~/piscine-go/test$ ./test "5156454" +student@ubuntu:~/[[ROOT]]/test$ ./test "5156454" 4eae66 -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ ./test "123 132 1" | cat -e +student@ubuntu:~/[[ROOT]]/test$ ./test "123 132 1" | cat -e 0$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printmemory.en.md b/subjects/printmemory.en.md index f41fde3b..c98f2b1b 100644 --- a/subjects/printmemory.en.md +++ b/subjects/printmemory.en.md @@ -39,11 +39,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e 6800 0000 6500 0000 6c00 0000 6c00 0000 $ 6f00 0000 1000 0000 1500 0000 2a00 0000 $ 0000 0000 0000 0000 $ hello..*..$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printmemory.fr.md b/subjects/printmemory.fr.md index 8f94a5cf..e2afe042 100644 --- a/subjects/printmemory.fr.md +++ b/subjects/printmemory.fr.md @@ -43,11 +43,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e 6800 0000 6500 0000 6c00 0000 6c00 0000 $ 6f00 0000 1000 0000 1500 0000 2a00 0000 $ 0000 0000 0000 0000 $ hello..*..$ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printnbr.en.md b/subjects/printnbr.en.md index ec84a6cd..8bd39168 100644 --- a/subjects/printnbr.en.md +++ b/subjects/printnbr.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test -1230123 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printnbr.fr.md b/subjects/printnbr.fr.md index 5737a70f..a1594082 100644 --- a/subjects/printnbr.fr.md +++ b/subjects/printnbr.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test -1230123 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printnbrbase.en.md b/subjects/printnbrbase.en.md index 226c1ba2..840e35f7 100644 --- a/subjects/printnbrbase.en.md +++ b/subjects/printnbrbase.en.md @@ -52,12 +52,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 125 -1111101 7D -uoi NV -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printnbrbase.fr.md b/subjects/printnbrbase.fr.md index 4031792b..49195b9b 100644 --- a/subjects/printnbrbase.fr.md +++ b/subjects/printnbrbase.fr.md @@ -52,12 +52,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 125 -1111101 7D -uoi NV -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printnbrinorder.en.md b/subjects/printnbrinorder.en.md index f5fa53a7..63b23bd8 100644 --- a/subjects/printnbrinorder.en.md +++ b/subjects/printnbrinorder.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1230123 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printnbrinorder.fr.md b/subjects/printnbrinorder.fr.md index f5fa53a7..63b23bd8 100644 --- a/subjects/printnbrinorder.fr.md +++ b/subjects/printnbrinorder.fr.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1230123 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printparams.en.md b/subjects/printparams.en.md index b11a9357..f1b8fe72 100644 --- a/subjects/printparams.en.md +++ b/subjects/printparams.en.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line. Example of output : ```console -student@ubuntu:~/piscine-go/printparams$ go build -student@ubuntu:~/piscine-go/printparams$ ./printparams choumi is the best cat +student@ubuntu:~/[[ROOT]]/printparams$ go build +student@ubuntu:~/[[ROOT]]/printparams$ ./printparams choumi is the best cat choumi is the best cat -student@ubuntu:~/piscine-go/printparams$ +student@ubuntu:~/[[ROOT]]/printparams$ ``` diff --git a/subjects/printparams.fr.md b/subjects/printparams.fr.md index fba7e7dd..09224cbe 100644 --- a/subjects/printparams.fr.md +++ b/subjects/printparams.fr.md @@ -7,12 +7,12 @@ Exemple de résultat : ```console -student@ubuntu:~/piscine-go/printparams$ go build -student@ubuntu:~/piscine-go/printparams$ ./printparams choumi is the best cat +student@ubuntu:~/[[ROOT]]/printparams$ go build +student@ubuntu:~/[[ROOT]]/printparams$ ./printparams choumi is the best cat choumi is the best cat -student@ubuntu:~/piscine-go/printparams$ +student@ubuntu:~/[[ROOT]]/printparams$ ``` diff --git a/subjects/printprogramname.en.md b/subjects/printprogramname.en.md index 8a94ddcb..7cef297e 100644 --- a/subjects/printprogramname.en.md +++ b/subjects/printprogramname.en.md @@ -7,8 +7,8 @@ Write a **program** that prints the name of the program. Example of output : ```console -student@ubuntu:~/piscine-go/printprogramname$ go build main.go -student@ubuntu:~/piscine-go/printprogramname$ ./main +student@ubuntu:~/[[ROOT]]/printprogramname$ go build main.go +student@ubuntu:~/[[ROOT]]/printprogramname$ ./main ./main -student@ubuntu:~/piscine-go/printprogramname$ +student@ubuntu:~/[[ROOT]]/printprogramname$ ``` diff --git a/subjects/printprogramname.fr.md b/subjects/printprogramname.fr.md index d363c01c..d6e1b79e 100644 --- a/subjects/printprogramname.fr.md +++ b/subjects/printprogramname.fr.md @@ -7,8 +7,8 @@ Exemple de résultat : ```console -student@ubuntu:~/piscine-go/printprogramname$ go build main.go -student@ubuntu:~/piscine-go/printprogramname$ ./main +student@ubuntu:~/[[ROOT]]/printprogramname$ go build main.go +student@ubuntu:~/[[ROOT]]/printprogramname$ ./main ./main -student@ubuntu:~/piscine-go/printprogramname$ +student@ubuntu:~/[[ROOT]]/printprogramname$ ``` diff --git a/subjects/printrevcombprog.en.md b/subjects/printrevcombprog.en.md index cc734935..0881f941 100644 --- a/subjects/printrevcombprog.en.md +++ b/subjects/printrevcombprog.en.md @@ -11,10 +11,10 @@ These combinations are separated by a comma and a space. Here is an **incomplete** output : ```console -student@ubuntu:~/piscine-go/printcombprog$ go build -student@ubuntu:~/piscine-go/printcombprog$ ./printcombprog | cat -e +student@ubuntu:~/[[ROOT]]/printcombprog$ go build +student@ubuntu:~/[[ROOT]]/printcombprog$ ./printcombprog | cat -e 987, 986, 985, 984, 983, 982, 981, 980, 976, ..., 310, 210$ -student@ubuntu:~/piscine-go/printcombprog$ +student@ubuntu:~/[[ROOT]]/printcombprog$ ``` `999` or `000` are not valid combinations because the digits are not different. diff --git a/subjects/printrevcombprog.fr.md b/subjects/printrevcombprog.fr.md index 2a23f968..8b8af2af 100644 --- a/subjects/printrevcombprog.fr.md +++ b/subjects/printrevcombprog.fr.md @@ -11,10 +11,10 @@ Les combinaisons sont séparées par une virgule et un espace. Voici une sortie **tronquée** : ```console -student@ubuntu:~/piscine-go/printcombprog$ go build -student@ubuntu:~/piscine-go/printcombprog$ ./printcombprog | cat -e +student@ubuntu:~/[[ROOT]]/printcombprog$ go build +student@ubuntu:~/[[ROOT]]/printcombprog$ ./printcombprog | cat -e 987, 986, 985, 984, 983, 982, 981, 980, 976, ..., 310, 210$ -student@ubuntu:~/piscine-go/printcombprog$ +student@ubuntu:~/[[ROOT]]/printcombprog$ ``` `999` et `000` ne sont pas des combinations valides parce que les chiffres ne sont pas différents. diff --git a/subjects/printreversealphabet.en.md b/subjects/printreversealphabet.en.md index 8029554b..4efacbae 100644 --- a/subjects/printreversealphabet.en.md +++ b/subjects/printreversealphabet.en.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/piscine-go/printreversealphabet$ go build -student@ubuntu:~/piscine-go/printreversealphabet$ ./printreversealphabet +student@ubuntu:~/[[ROOT]]/printreversealphabet$ go build +student@ubuntu:~/[[ROOT]]/printreversealphabet$ ./printreversealphabet zyxwvutsrqponmlkjihgfedcba -student@ubuntu:~/piscine-go/printreversealphabet$ +student@ubuntu:~/[[ROOT]]/printreversealphabet$ ``` diff --git a/subjects/printreversealphabet.fr.md b/subjects/printreversealphabet.fr.md index 1c9ce754..b02d0d12 100644 --- a/subjects/printreversealphabet.fr.md +++ b/subjects/printreversealphabet.fr.md @@ -11,8 +11,8 @@ Attention il faut bien noter que le `casting` n'est pas autorisé pour cet exerc ### Utilisation ```console -student@ubuntu:~/piscine-go/printreversealphabet$ go build -student@ubuntu:~/piscine-go/printreversealphabet$ ./printreversealphabet +student@ubuntu:~/[[ROOT]]/printreversealphabet$ go build +student@ubuntu:~/[[ROOT]]/printreversealphabet$ ./printreversealphabet zyxwvutsrqponmlkjihgfedcba -student@ubuntu:~/piscine-go/printreversealphabet$ +student@ubuntu:~/[[ROOT]]/printreversealphabet$ ``` diff --git a/subjects/printstr.en.md b/subjects/printstr.en.md index 72d1a2b9..d85bb81d 100644 --- a/subjects/printstr.en.md +++ b/subjects/printstr.en.md @@ -30,8 +30,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e Hello World!% -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printstr.fr.md b/subjects/printstr.fr.md index 86f83c69..6860b089 100644 --- a/subjects/printstr.fr.md +++ b/subjects/printstr.fr.md @@ -30,8 +30,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e Hello World!% -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printstrprog.en.md b/subjects/printstrprog.en.md index 08ce4d21..59ff2a33 100644 --- a/subjects/printstrprog.en.md +++ b/subjects/printstrprog.en.md @@ -7,11 +7,11 @@ ### Expected output : ```console -student@ubuntu:~/piscine-go/printstrprog$ go build -student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog "Hello World!" | cat -e +student@ubuntu:~/[[ROOT]]/printstrprog$ go build +student@ubuntu:~/[[ROOT]]/printstrprog$ ./printstrprog "Hello World!" | cat -e Hello World!$ -student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog -student@ubuntu:~/piscine-go/printstrprog$ -student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog "Hello" "World" -student@ubuntu:~/piscine-go/printstrprog$ +student@ubuntu:~/[[ROOT]]/printstrprog$ ./printstrprog +student@ubuntu:~/[[ROOT]]/printstrprog$ +student@ubuntu:~/[[ROOT]]/printstrprog$ ./printstrprog "Hello" "World" +student@ubuntu:~/[[ROOT]]/printstrprog$ ``` diff --git a/subjects/printstrprog.fr.md b/subjects/printstrprog.fr.md index d0fff935..e65da841 100644 --- a/subjects/printstrprog.fr.md +++ b/subjects/printstrprog.fr.md @@ -7,11 +7,11 @@ ### Utilisation : ```console -student@ubuntu:~/piscine-go/printstrprog$ go build -student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog "Hello World!" | cat -e +student@ubuntu:~/[[ROOT]]/printstrprog$ go build +student@ubuntu:~/[[ROOT]]/printstrprog$ ./printstrprog "Hello World!" | cat -e Hello World!$ -student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog -student@ubuntu:~/piscine-go/printstrprog$ -student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog "Hello" "World" -student@ubuntu:~/piscine-go/printstrprog$ +student@ubuntu:~/[[ROOT]]/printstrprog$ ./printstrprog +student@ubuntu:~/[[ROOT]]/printstrprog$ +student@ubuntu:~/[[ROOT]]/printstrprog$ ./printstrprog "Hello" "World" +student@ubuntu:~/[[ROOT]]/printstrprog$ ``` diff --git a/subjects/printwordstables.en.md b/subjects/printwordstables.en.md index 3309edcb..fb92ca6c 100644 --- a/subjects/printwordstables.en.md +++ b/subjects/printwordstables.en.md @@ -35,11 +35,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build main.go -student@ubuntu:~/piscine-go/test$ ./main +student@ubuntu:~/[[ROOT]]/test$ go build main.go +student@ubuntu:~/[[ROOT]]/test$ ./main Hello how are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printwordstables.fr.md b/subjects/printwordstables.fr.md index 03ce89a2..e5be061c 100644 --- a/subjects/printwordstables.fr.md +++ b/subjects/printwordstables.fr.md @@ -36,11 +36,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build main.go -student@ubuntu:~/piscine-go/test$ ./main +student@ubuntu:~/[[ROOT]]/test$ go build main.go +student@ubuntu:~/[[ROOT]]/test$ ./main Hello how are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1a.en.md b/subjects/raid1a.en.md index 53923d16..aa683d8a 100644 --- a/subjects/raid1a.en.md +++ b/subjects/raid1a.en.md @@ -37,12 +37,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test o---o | | o---o -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test o---o -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #3 @@ -85,10 +85,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test o -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #4 @@ -108,12 +108,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test o | | | o -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1a.fr.md b/subjects/raid1a.fr.md index 66d64b9b..52b15543 100644 --- a/subjects/raid1a.fr.md +++ b/subjects/raid1a.fr.md @@ -35,12 +35,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test o---o | | o---o -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #2 @@ -60,10 +60,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test o---o -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #3 @@ -83,10 +83,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test o -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #4 @@ -106,12 +106,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test o | | | o -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1b.en.md b/subjects/raid1b.en.md index d8fab804..cc90bf52 100644 --- a/subjects/raid1b.en.md +++ b/subjects/raid1b.en.md @@ -37,12 +37,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test /***\ * * \***/ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test /***\ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #3 @@ -85,10 +85,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test / -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #4 @@ -108,12 +108,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test / * * * \ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1b.fr.md b/subjects/raid1b.fr.md index d2dc34f8..6db8712c 100644 --- a/subjects/raid1b.fr.md +++ b/subjects/raid1b.fr.md @@ -35,12 +35,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test /***\ * * \***/ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #2 @@ -60,10 +60,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test /***\ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #3 @@ -83,10 +83,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test / -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #4 @@ -106,12 +106,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test / * * * \ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1c.en.md b/subjects/raid1c.en.md index b1ddda5d..82bef432 100644 --- a/subjects/raid1c.en.md +++ b/subjects/raid1c.en.md @@ -37,12 +37,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBA B B CBBBC -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBA -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #3 @@ -85,10 +85,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #4 @@ -108,12 +108,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A B B B C -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1c.fr.md b/subjects/raid1c.fr.md index c6613aa5..555365f2 100644 --- a/subjects/raid1c.fr.md +++ b/subjects/raid1c.fr.md @@ -35,12 +35,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBA B B CBBBC -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #2 @@ -60,10 +60,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBA -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #3 @@ -83,10 +83,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #4 @@ -106,12 +106,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A B B B C -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1d.en.md b/subjects/raid1d.en.md index 7d925f46..32f8495a 100644 --- a/subjects/raid1d.en.md +++ b/subjects/raid1d.en.md @@ -37,12 +37,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBC B B ABBBC -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBC -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #3 @@ -85,10 +85,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #4 @@ -108,12 +108,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A B B B A -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1d.fr.md b/subjects/raid1d.fr.md index d889014e..61ac87a5 100644 --- a/subjects/raid1d.fr.md +++ b/subjects/raid1d.fr.md @@ -35,12 +35,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBC B B ABBBC -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #2 @@ -60,10 +60,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBC -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #3 @@ -83,10 +83,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #4 @@ -106,12 +106,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A B B B A -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1e.en.md b/subjects/raid1e.en.md index 032f5ae6..3762f271 100644 --- a/subjects/raid1e.en.md +++ b/subjects/raid1e.en.md @@ -37,12 +37,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBC B B CBBBA -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBC -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #3 @@ -85,10 +85,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Program #4 @@ -108,12 +108,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A B B B C -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid1e.fr.md b/subjects/raid1e.fr.md index acf2878f..7e511aad 100644 --- a/subjects/raid1e.fr.md +++ b/subjects/raid1e.fr.md @@ -35,12 +35,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBC B B CBBBA -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #2 @@ -60,10 +60,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test ABBBC -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #3 @@ -83,10 +83,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` Programme #4 @@ -106,12 +106,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test A B B B C -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/raid2.en.md b/subjects/raid2.en.md index 7db6a4e7..3313f028 100644 --- a/subjects/raid2.en.md +++ b/subjects/raid2.en.md @@ -13,8 +13,8 @@ Example of output for one valid sudoku : ```console -student@ubuntu:~/piscine-go/raid2$ go build -student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/[[ROOT]]/raid2$ go build +student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e 3 9 6 2 4 5 7 8 1$ 1 7 8 3 6 9 5 2 4$ 5 2 4 8 1 7 3 9 6$ @@ -24,7 +24,7 @@ student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." " 7 1 2 6 3 8 4 5 9$ 6 5 9 1 7 4 8 3 2$ 8 4 3 5 9 2 1 6 7$ -student@ubuntu:~/piscine-go/raid2$ +student@ubuntu:~/[[ROOT]]/raid2$ ``` #### Example 2: @@ -32,11 +32,11 @@ student@ubuntu:~/piscine-go/raid2$ Examples of output for invalid input or sudokus : ```console -student@ubuntu:~/piscine-go/raid2$ ./raid2 1 2 3 4 | cat -e +student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 1 2 3 4 | cat -e Error$ -student@ubuntu:~/piscine-go/raid2$ ./raid2 | cat -e +student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 | cat -e Error$ -student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e Error$ -student@ubuntu:~/piscine-go/raid2$ +student@ubuntu:~/[[ROOT]]/raid2$ ``` diff --git a/subjects/raid2.fr.md b/subjects/raid2.fr.md index f945e2ce..b39fb9bc 100644 --- a/subjects/raid2.fr.md +++ b/subjects/raid2.fr.md @@ -13,8 +13,8 @@ Exemple d'output pour un sudoku valide : ```console -student@ubuntu:~/piscine-go/raid2$ go build -student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/[[ROOT]]/raid2$ go build +student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e 3 9 6 2 4 5 7 8 1$ 1 7 8 3 6 9 5 2 4$ 5 2 4 8 1 7 3 9 6$ @@ -24,7 +24,7 @@ student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." " 7 1 2 6 3 8 4 5 9$ 6 5 9 1 7 4 8 3 2$ 8 4 3 5 9 2 1 6 7$ -student@ubuntu:~/piscine-go/raid2$ +student@ubuntu:~/[[ROOT]]/raid2$ ``` #### Example 2: @@ -32,11 +32,11 @@ student@ubuntu:~/piscine-go/raid2$ Examples d'outputs pour des inputs ou un sudoku invalides : ```console -student@ubuntu:~/piscine-go/raid2$ ./raid2 1 2 3 4 | cat -e +student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 1 2 3 4 | cat -e Error$ -student@ubuntu:~/piscine-go/raid2$ ./raid2 | cat -e +student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 | cat -e Error$ -student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e Error$ -student@ubuntu:~/piscine-go/raid2$ +student@ubuntu:~/[[ROOT]]/raid2$ ``` diff --git a/subjects/raid3.en.md b/subjects/raid3.en.md index ca08cad2..36174dd6 100644 --- a/subjects/raid3.en.md +++ b/subjects/raid3.en.md @@ -17,51 +17,46 @@ Create a program `raid3` that takes a `string` as an argument and displays the n - If it's `radi1a` ```console -student@ubuntu:~/piscine-go/raid3$ ls -l --rw-r--r-- 1 student student nov 23 14:30 raid3.go +student@ubuntu:~/[[ROOT]]/raid3$ ls -l +-rw-r--r-- 1 student student nov 23 14:30 main.go -rwxr-xr-x 1 student student nov 23 19:18 raid3 -rwxr-xr-x 1 student student nov 23 19:50 raid1a -drwxr-xr-x 2 student student nov 23 19:02 raid1aProg -rwxr-xr-x 1 student student nov 23 19:50 raid1b -drwxr-xr-x 2 student student nov 22 23:36 raid1bProg -rwxr-xr-x 1 student student nov 23 19:50 raid1c -drwxr-xr-x 2 student student nov 23 19:02 raid1cProg -rwxr-xr-x 1 student student nov 23 19:50 raid1d -drwxr-xr-x 2 student student nov 23 00:40 raid1dProg -rwxr-xr-x 1 student student nov 23 19:50 raid1e -drwxr-xr-x 2 student student nov 23 19:02 raid1eProg -student@ubuntu:~/piscine-go/raid3$ ./raid1a 3 3 | ./raid3 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1a 3 3 | ./raid3 [raid1a] [3] [3] -student@ubuntu:~/piscine-go/raid3$ -student@ubuntu:~/piscine-go/raid3$ -student@ubuntu:~/piscine-go/raid3$ -student@ubuntu:~/piscine-go/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ ``` - If it's `raidc 1 1` : ```console -student@ubuntu:~/piscine-go/raid3$ ./raid1c 1 1 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 1 A -student@ubuntu:~/piscine-go/raid3$ ./raid1d 1 1 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1d 1 1 A -student@ubuntu:~/piscine-go/raid3$ ./raid1e 1 1 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 1 A -student@ubuntu:~/piscine-go/raid3$ ./raid1c 1 1 | ./raid3 -[raid1c] [2] [1] || [raid1d] [2] [1] || [raid1e] [2] [1] -student@ubuntu:~/piscine-go/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 1 | ./raid3 +[raid1c] [1] [1] || [raid1d] [1] [1] || [raid1e] [1] [1] +student@ubuntu:~/[[ROOT]]/raid3$ ``` - If it's `raidc 1 2` : ```console -student@ubuntu:~/piscine-go/raid3$ ./raid1e 1 2 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 2 A C -student@ubuntu:~/piscine-go/raid3$ ./raid1c 1 2 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 2 A C -student@ubuntu:~/piscine-go/raid3$ ./raid1e 1 2 | ./raid3 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 2 | ./raid3 [raid1c] [1] [2] || [raid1e] [1] [2] -student@ubuntu:~/piscine-go/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ ``` diff --git a/subjects/raid3.fr.md b/subjects/raid3.fr.md index 114f440b..733bd773 100644 --- a/subjects/raid3.fr.md +++ b/subjects/raid3.fr.md @@ -17,7 +17,7 @@ Créer un programme `raid3` qui prend une `string` comme argument et qui affiche - Si c'est `radi1a` ```console -student@ubuntu:~/piscine-go/raid3$ ls -l +student@ubuntu:~/[[ROOT]]/raid3$ ls -l -rw-r--r-- 1 student student nov 23 14:30 raid3.go -rwxr-xr-x 1 student student nov 23 19:18 raid3 -rwxr-xr-x 1 student student nov 23 19:50 raid1a @@ -30,38 +30,38 @@ drwxr-xr-x 2 student student nov 23 19:02 raid1cProg drwxr-xr-x 2 student student nov 23 00:40 raid1dProg -rwxr-xr-x 1 student student nov 23 19:50 raid1e drwxr-xr-x 2 student student nov 23 19:02 raid1eProg -student@ubuntu:~/piscine-go/raid3$ ./raid1a 3 3 | ./raid3 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1a 3 3 | ./raid3 [raid1a] [3] [3] -student@ubuntu:~/piscine-go/raid3$ -student@ubuntu:~/piscine-go/raid3$ -student@ubuntu:~/piscine-go/raid3$ -student@ubuntu:~/piscine-go/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ ``` - Si c'est `raidc 1 1` : ```console -student@ubuntu:~/piscine-go/raid3$ ./raid1c 1 1 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 1 A -student@ubuntu:~/piscine-go/raid3$ ./raid1d 1 1 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1d 1 1 A -student@ubuntu:~/piscine-go/raid3$ ./raid1e 1 1 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 1 A -student@ubuntu:~/piscine-go/raid3$ ./raid1c 1 1 | ./raid3 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 1 | ./raid3 [raid1c] [2] [1] || [raid1d] [2] [1] || [raid1e] [2] [1] -student@ubuntu:~/piscine-go/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ ``` - Si c'est `raidc 1 2` : ```console -student@ubuntu:~/piscine-go/raid3$ ./raid1e 1 2 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 2 A C -student@ubuntu:~/piscine-go/raid3$ ./raid1c 1 2 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 2 A C -student@ubuntu:~/piscine-go/raid3$ ./raid1e 1 2 | ./raid3 +student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 2 | ./raid3 [raid1c] [1] [2] || [raid1e] [1] [2] -student@ubuntu:~/piscine-go/raid3$ +student@ubuntu:~/[[ROOT]]/raid3$ ``` diff --git a/subjects/rectangle.en.md b/subjects/rectangle.en.md index f85dd71f..85f5fe23 100644 --- a/subjects/rectangle.en.md +++ b/subjects/rectangle.en.md @@ -46,8 +46,8 @@ func main() { ### Expected output ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test area of the rectangle: 6 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/rectangle.fr.md b/subjects/rectangle.fr.md index 8b308f5b..0797dea5 100644 --- a/subjects/rectangle.fr.md +++ b/subjects/rectangle.fr.md @@ -45,8 +45,8 @@ func main() { ### Expected output ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test area of the rectangle: 6 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/recursivefactorial.en.md b/subjects/recursivefactorial.en.md index e910de9f..7013a415 100644 --- a/subjects/recursivefactorial.en.md +++ b/subjects/recursivefactorial.en.md @@ -35,8 +35,8 @@ func main() { ``` ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 24 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/recursivefactorial.fr.md b/subjects/recursivefactorial.fr.md index 1aba726c..182500f6 100644 --- a/subjects/recursivefactorial.fr.md +++ b/subjects/recursivefactorial.fr.md @@ -37,8 +37,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 24 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/recursivepower.en.md b/subjects/recursivepower.en.md index 3d702cd2..a8e8a7eb 100644 --- a/subjects/recursivepower.en.md +++ b/subjects/recursivepower.en.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 64 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/repeatalpha.en.md b/subjects/repeatalpha.en.md index da6088e1..dc931013 100644 --- a/subjects/repeatalpha.en.md +++ b/subjects/repeatalpha.en.md @@ -16,16 +16,16 @@ If the number of arguments is different from 1, the program displays a newline ( ### Usage ```console -student@ubuntu:~/piscine-go/repeatalpha$ go build -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "abc" | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ go build +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "abc" | cat -e abbccc -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "Choumi." | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "Choumi." | cat -e CCChhhhhhhhooooooooooooooouuuuuuuuuuuuuuuuuuuuummmmmmmmmmmmmiiiiiiiii.$ -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "abacadaba 01!" | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "abacadaba 01!" | cat -e abbacccaddddabba 01!$ -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha | cat -e $ -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "" | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "" | cat -e $ -student@ubuntu:~/piscine-go/repeatalpha$ +student@ubuntu:~/[[ROOT]]/repeatalpha$ ``` diff --git a/subjects/repeatalpha.fr.md b/subjects/repeatalpha.fr.md index 39ff1c9e..d39ad9d4 100644 --- a/subjects/repeatalpha.fr.md +++ b/subjects/repeatalpha.fr.md @@ -15,16 +15,16 @@ Si le nombre d'arguments est différent de 1, le programme affiche un retour à ### Utilisation ```console -student@ubuntu:~/piscine-go/repeatalpha$ go build -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "abc" | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ go build +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "abc" | cat -e abbccc -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "Choumi." | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "Choumi." | cat -e CCChhhhhhhhooooooooooooooouuuuuuuuuuuuuuuuuuuuummmmmmmmmmmmmiiiiiiiii.$ -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "abacadaba 01!" | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "abacadaba 01!" | cat -e abbacccaddddabba 01!$ -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha | cat -e $ -student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "" | cat -e +student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "" | cat -e $ -student@ubuntu:~/piscine-go/repeatalpha$ +student@ubuntu:~/[[ROOT]]/repeatalpha$ ``` diff --git a/subjects/reversestrcap.en.md b/subjects/reversestrcap.en.md index 566d9196..b9b37c2c 100644 --- a/subjects/reversestrcap.en.md +++ b/subjects/reversestrcap.en.md @@ -14,14 +14,14 @@ If there are no parameter, the program displays a newline. ### Usage ```console -student@ubuntu:~/piscine-go/reversestrcap$ go build -student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e +student@ubuntu:~/[[ROOT]]/reversestrcap$ go build +student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e firsT smalL tesT$ -student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e +student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e seconD tesT iS A littlE easieR$ bewarE it'S noT harD wheN $ gO A dernieR 0123456789 foR thE roaD E$ -student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap | cat -e +student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap | cat -e $ -student@ubuntu:~/piscine-go/reversestrcap$ +student@ubuntu:~/[[ROOT]]/reversestrcap$ ``` diff --git a/subjects/reversestrcap.fr.md b/subjects/reversestrcap.fr.md index 3af59c25..6485c066 100644 --- a/subjects/reversestrcap.fr.md +++ b/subjects/reversestrcap.fr.md @@ -13,14 +13,14 @@ Si il n'y a pas de paramètre, le programme affiche un retour à la ligne. ### Utilisation ```console -student@ubuntu:~/piscine-go/reversestrcap$ go build -student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e +student@ubuntu:~/[[ROOT]]/reversestrcap$ go build +student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e firsT smalL tesT$ -student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e +student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e seconD tesT iS A littlE easieR$ bewarE it'S noT harD wheN $ gO A dernieR 0123456789 foR thE roaD E$ -student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap | cat -e +student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap | cat -e $ -student@ubuntu:~/piscine-go/reversestrcap$ +student@ubuntu:~/[[ROOT]]/reversestrcap$ ``` diff --git a/subjects/revparams.en.md b/subjects/revparams.en.md index 665ed820..f1a94393 100644 --- a/subjects/revparams.en.md +++ b/subjects/revparams.en.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line in a Example of output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./revparams choumi is the best cat +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./revparams choumi is the best cat cat best the is choumi -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/revparams.fr.md b/subjects/revparams.fr.md index 33cd843e..c9c2f68d 100644 --- a/subjects/revparams.fr.md +++ b/subjects/revparams.fr.md @@ -7,12 +7,12 @@ Exemple de résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./revparams choumi is the best cat +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./revparams choumi is the best cat cat best the is choumi -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/revwstr.en.md b/subjects/revwstr.en.md index 921a963a..b7f78965 100644 --- a/subjects/revwstr.en.md +++ b/subjects/revwstr.en.md @@ -13,14 +13,14 @@ Write a program that takes a `string` as a parameter, and prints its words in re ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "the time of contempt precedes that of indifference" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "the time of contempt precedes that of indifference" indifference of that precedes contempt of time the -student@ubuntu:~/piscine-go/test$ ./test "abcdefghijklm" +student@ubuntu:~/[[ROOT]]/test$ ./test "abcdefghijklm" abcdefghijklm -student@ubuntu:~/piscine-go/test$ ./test "he stared at the mountain" +student@ubuntu:~/[[ROOT]]/test$ ./test "he stared at the mountain" mountain the at stared he -student@ubuntu:~/piscine-go/test$ ./test "" | cat-e +student@ubuntu:~/[[ROOT]]/test$ ./test "" | cat-e $ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/revwstr.fr.md b/subjects/revwstr.fr.md index 97f0e177..4d2344d7 100644 --- a/subjects/revwstr.fr.md +++ b/subjects/revwstr.fr.md @@ -13,14 +13,14 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "the time of contempt precedes that of indifference" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "the time of contempt precedes that of indifference" indifference of that precedes contempt of time the -student@ubuntu:~/piscine-go/test$ ./test "abcdefghijklm" +student@ubuntu:~/[[ROOT]]/test$ ./test "abcdefghijklm" abcdefghijklm -student@ubuntu:~/piscine-go/test$ ./test "he stared at the mountain" +student@ubuntu:~/[[ROOT]]/test$ ./test "he stared at the mountain" mountain the at stared he -student@ubuntu:~/piscine-go/test$ ./test "" | cat-e +student@ubuntu:~/[[ROOT]]/test$ ./test "" | cat-e $ -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/rostring.en.md b/subjects/rostring.en.md index bda419d3..fcbf250c 100644 --- a/subjects/rostring.en.md +++ b/subjects/rostring.en.md @@ -16,14 +16,14 @@ If the number of arguments is different from 1, the program displays a newline. ### Usage ```console -student@ubuntu:~/piscine-go/rostring$ go build -student@ubuntu:~/piscine-go/rostring$ ./rostring "abc " | cat -e +student@ubuntu:~/[[ROOT]]/rostring$ go build +student@ubuntu:~/[[ROOT]]/rostring$ ./rostring "abc " | cat -e abc$ -student@ubuntu:~/piscine-go/rostring$ ./rostring "Let there be light" +student@ubuntu:~/[[ROOT]]/rostring$ ./rostring "Let there be light" there be light Let -student@ubuntu:~/piscine-go/rostring$ ./rostring " AkjhZ zLKIJz , 23y" +student@ubuntu:~/[[ROOT]]/rostring$ ./rostring " AkjhZ zLKIJz , 23y" zLKIJz , 23y AkjhZ -student@ubuntu:~/piscine-go/rostring$ ./rostring | cat -e +student@ubuntu:~/[[ROOT]]/rostring$ ./rostring | cat -e $ -student@ubuntu:~/piscine-go/rostring$ +student@ubuntu:~/[[ROOT]]/rostring$ ``` diff --git a/subjects/rostring.fr.md b/subjects/rostring.fr.md index 9b7519de..ea7e4d3b 100644 --- a/subjects/rostring.fr.md +++ b/subjects/rostring.fr.md @@ -15,14 +15,14 @@ Si le nombre d'arguments est différent de 1, le programme affiche un retour à ### Utilisation ```console -student@ubuntu:~/piscine-go/rostring$ go build -student@ubuntu:~/piscine-go/rostring$ ./rostring "abc " | cat -e +student@ubuntu:~/[[ROOT]]/rostring$ go build +student@ubuntu:~/[[ROOT]]/rostring$ ./rostring "abc " | cat -e abc$ -student@ubuntu:~/piscine-go/rostring$ ./rostring "Let there be light" +student@ubuntu:~/[[ROOT]]/rostring$ ./rostring "Let there be light" there be light Let -student@ubuntu:~/piscine-go/rostring$ ./rostring " AkjhZ zLKIJz , 23y" +student@ubuntu:~/[[ROOT]]/rostring$ ./rostring " AkjhZ zLKIJz , 23y" zLKIJz , 23y AkjhZ -student@ubuntu:~/piscine-go/rostring$ ./rostring | cat -e +student@ubuntu:~/[[ROOT]]/rostring$ ./rostring | cat -e $ -student@ubuntu:~/piscine-go/rostring$ +student@ubuntu:~/[[ROOT]]/rostring$ ``` diff --git a/subjects/rot13.en.md b/subjects/rot13.en.md index 3ff808ec..d21f41cc 100644 --- a/subjects/rot13.en.md +++ b/subjects/rot13.en.md @@ -14,14 +14,14 @@ letters by the letter 13 spaces ahead in alphabetical order. ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "abc" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "abc" nop -student@ubuntu:~/piscine-go/test$ ./test "hello there" +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" uryyb gurer -student@ubuntu:~/piscine-go/test$ ./test "HELLO, HELP" +student@ubuntu:~/[[ROOT]]/test$ ./test "HELLO, HELP" URYYB, URYC -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/rot13.fr.md b/subjects/rot13.fr.md index 3f15f277..6174cb69 100644 --- a/subjects/rot13.fr.md +++ b/subjects/rot13.fr.md @@ -13,12 +13,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "abc" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "abc" nop -student@ubuntu:~/piscine-go/test$ ./test "hello there" +student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" uryyb gurer -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/rot14.en.md b/subjects/rot14.en.md index 3a369444..482df7c8 100644 --- a/subjects/rot14.en.md +++ b/subjects/rot14.en.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Vszzc Vck ofs Mci -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/rot14.fr.md b/subjects/rot14.fr.md index 7e7d92ec..a277fd2b 100644 --- a/subjects/rot14.fr.md +++ b/subjects/rot14.fr.md @@ -40,8 +40,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test Vszzc Vck ofs Mci -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/rotatevowels.en.md b/subjects/rotatevowels.en.md index d66298b2..7ab9f283 100644 --- a/subjects/rotatevowels.en.md +++ b/subjects/rotatevowels.en.md @@ -11,18 +11,18 @@ Write a **program** that checks the arguments for vowels. Example of output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./rotatevowels "Hello World" | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "Hello World" | cat -e Hollo Werld$ -student@ubuntu:~/piscine-go/test$ ./rotatevowels "HEllO World" "problem solved" +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "HEllO World" "problem solved" Hello Werld problom sOlvEd -student@ubuntu:~/piscine-go/test$ ./rotatevowels "str" "shh" "psst" +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "str" "shh" "psst" str shh psst -student@ubuntu:~/piscine-go/test$ ./rotatevowels "happy thoughts" "good luck" +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "happy thoughts" "good luck" huppy thooghts guod lack -student@ubuntu:~/piscine-go/test$ ./rotatevowels "aEi" "Ou" +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "aEi" "Ou" uOi Ea -student@ubuntu:~/piscine-go/test$ ./rotatevowels +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/rotatevowels.fr.md b/subjects/rotatevowels.fr.md index d66298b2..7ab9f283 100644 --- a/subjects/rotatevowels.fr.md +++ b/subjects/rotatevowels.fr.md @@ -11,18 +11,18 @@ Write a **program** that checks the arguments for vowels. Example of output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./rotatevowels "Hello World" | cat -e +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "Hello World" | cat -e Hollo Werld$ -student@ubuntu:~/piscine-go/test$ ./rotatevowels "HEllO World" "problem solved" +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "HEllO World" "problem solved" Hello Werld problom sOlvEd -student@ubuntu:~/piscine-go/test$ ./rotatevowels "str" "shh" "psst" +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "str" "shh" "psst" str shh psst -student@ubuntu:~/piscine-go/test$ ./rotatevowels "happy thoughts" "good luck" +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "happy thoughts" "good luck" huppy thooghts guod lack -student@ubuntu:~/piscine-go/test$ ./rotatevowels "aEi" "Ou" +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "aEi" "Ou" uOi Ea -student@ubuntu:~/piscine-go/test$ ./rotatevowels +student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/rpncalc.en.md b/subjects/rpncalc.en.md index e4167b37..578a315b 100644 --- a/subjects/rpncalc.en.md +++ b/subjects/rpncalc.en.md @@ -47,16 +47,16 @@ Or: ### Usage ```console -student@ubuntu:~/piscine-go/rpncalc$ go build -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ go build +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e 10$ -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc "1 2 3 4 +" | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc "1 2 3 4 +" | cat -e Error$ -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc | cat -e Error$ -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e 1 -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e Error$ -student@ubuntu:~/piscine-go/rpncalc$ +student@ubuntu:~/[[ROOT]]/rpncalc$ ``` diff --git a/subjects/rpncalc.fr.md b/subjects/rpncalc.fr.md index bb7f20c6..b68d6643 100644 --- a/subjects/rpncalc.fr.md +++ b/subjects/rpncalc.fr.md @@ -41,16 +41,16 @@ ou: ### Utilisation ```console -student@ubuntu:~/piscine-go/rpncalc$ go build -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ go build +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e 10$ -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc 1 2 3 4 +" | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc 1 2 3 4 +" | cat -e Error$ -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc | cat -e Error$ -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e 1 -student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e +student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e Error$ -student@ubuntu:~/piscine-go/rpncalc$ +student@ubuntu:~/[[ROOT]]/rpncalc$ ``` diff --git a/subjects/searchreplace.en.md b/subjects/searchreplace.en.md index 25a193db..d7a7158f 100644 --- a/subjects/searchreplace.en.md +++ b/subjects/searchreplace.en.md @@ -11,12 +11,12 @@ Write a program that takes 3 arguments, the first argument is a `string` in whic ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "hella there" "a" "o" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "hella there" "a" "o" hello there -student@ubuntu:~/piscine-go/test$ ./test "abcd" "z" "l" +student@ubuntu:~/[[ROOT]]/test$ ./test "abcd" "z" "l" abcd -student@ubuntu:~/piscine-go/test$ ./test "something" "a" "o" "b" "c" +student@ubuntu:~/[[ROOT]]/test$ ./test "something" "a" "o" "b" "c" -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/searchreplace.fr.md b/subjects/searchreplace.fr.md index 3e7e57f6..2dc772ce 100644 --- a/subjects/searchreplace.fr.md +++ b/subjects/searchreplace.fr.md @@ -11,12 +11,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "hella there" "a" "o" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "hella there" "a" "o" hello there -student@ubuntu:~/piscine-go/test$ ./test "abcd" "z" "l" +student@ubuntu:~/[[ROOT]]/test$ ./test "abcd" "z" "l" abcd -student@ubuntu:~/piscine-go/test$ ./test "something" "a" "o" "b" "c" +student@ubuntu:~/[[ROOT]]/test$ ./test "something" "a" "o" "b" "c" -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortedlistmerge.en.md b/subjects/sortedlistmerge.en.md index f644e007..a04d27dd 100644 --- a/subjects/sortedlistmerge.en.md +++ b/subjects/sortedlistmerge.en.md @@ -68,8 +68,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test -2 -> 3 -> 5 -> 7 -> 9 -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortedlistmerge.fr.md b/subjects/sortedlistmerge.fr.md index 452661eb..542774e0 100644 --- a/subjects/sortedlistmerge.fr.md +++ b/subjects/sortedlistmerge.fr.md @@ -68,8 +68,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test -2 -> 3 -> 5 -> 7 -> 9 -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortintegertable.en.md b/subjects/sortintegertable.en.md index e4791962..7d5494e4 100644 --- a/subjects/sortintegertable.en.md +++ b/subjects/sortintegertable.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test -[0,1,2,3,4,5] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test +[0 1 2 3 4 5] +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortintegertable.fr.md b/subjects/sortintegertable.fr.md index 7913ab87..d0eb2ca4 100644 --- a/subjects/sortintegertable.fr.md +++ b/subjects/sortintegertable.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [0,1,2,3,4,5] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortlistinsert.en.md b/subjects/sortlistinsert.en.md index 8ad96da8..ec51d44f 100644 --- a/subjects/sortlistinsert.en.md +++ b/subjects/sortlistinsert.en.md @@ -69,9 +69,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -> 4 -> 9 -> -2 -> 1 -> 2 -> 4 -> 9 -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortlistinsert.fr.md b/subjects/sortlistinsert.fr.md index bd77932c..952d87d5 100644 --- a/subjects/sortlistinsert.fr.md +++ b/subjects/sortlistinsert.fr.md @@ -70,9 +70,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -> 4 -> 9 -> -2 -> 1 -> 2 -> 4 -> 9 -> -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortparams.en.md b/subjects/sortparams.en.md index 06dcf007..2576801b 100644 --- a/subjects/sortparams.en.md +++ b/subjects/sortparams.en.md @@ -7,8 +7,8 @@ Write a **program** that prints the arguments received in the command line in AS Example of output : ```console -student@ubuntu:~/piscine-go/sortparams$ go build -student@ubuntu:~/piscine-go/sortparams$ ./sortparams 1 a 2 A 3 b 4 C +student@ubuntu:~/[[ROOT]]/sortparams$ go build +student@ubuntu:~/[[ROOT]]/sortparams$ ./sortparams 1 a 2 A 3 b 4 C 1 2 3 @@ -17,5 +17,5 @@ A C a b -student@ubuntu:~/piscine-go/sortparams$ +student@ubuntu:~/[[ROOT]]/sortparams$ ``` diff --git a/subjects/sortparams.fr.md b/subjects/sortparams.fr.md index 53ecca72..14f3528f 100644 --- a/subjects/sortparams.fr.md +++ b/subjects/sortparams.fr.md @@ -7,8 +7,8 @@ Exemple de résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./sortparams 1 a 2 A 3 b 4 C +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./sortparams 1 a 2 A 3 b 4 C 1 2 3 @@ -17,5 +17,5 @@ A C a b -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortwordarr.en.md b/subjects/sortwordarr.en.md index d3d5845a..0d5b270d 100644 --- a/subjects/sortwordarr.en.md +++ b/subjects/sortwordarr.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sortwordarr.fr.md b/subjects/sortwordarr.fr.md index 1e8955b0..097a95c0 100644 --- a/subjects/sortwordarr.fr.md +++ b/subjects/sortwordarr.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/split.en.md b/subjects/split.en.md index b5b8941f..3f1a14ec 100644 --- a/subjects/split.en.md +++ b/subjects/split.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/split.fr.md b/subjects/split.fr.md index 1d154418..69cb3efb 100644 --- a/subjects/split.fr.md +++ b/subjects/split.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/splitprog.en.md b/subjects/splitprog.en.md index b3be18b7..ad01ddc4 100644 --- a/subjects/splitprog.en.md +++ b/subjects/splitprog.en.md @@ -46,8 +46,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/splitprog.fr.md b/subjects/splitprog.fr.md index c43f9224..1b03afb3 100644 --- a/subjects/splitprog.fr.md +++ b/subjects/splitprog.fr.md @@ -48,8 +48,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/splitwhitespaces.en.md b/subjects/splitwhitespaces.en.md index 9e7f4f16..14ba16c1 100644 --- a/subjects/splitwhitespaces.en.md +++ b/subjects/splitwhitespaces.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/splitwhitespaces.fr.md b/subjects/splitwhitespaces.fr.md index 6364066b..39b8a077 100644 --- a/subjects/splitwhitespaces.fr.md +++ b/subjects/splitwhitespaces.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sqrt.en.md b/subjects/sqrt.en.md index cf21ffec..ead4759d 100644 --- a/subjects/sqrt.en.md +++ b/subjects/sqrt.en.md @@ -36,9 +36,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 2 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/sqrt.fr.md b/subjects/sqrt.fr.md index 39d66e81..1df230ea 100644 --- a/subjects/sqrt.fr.md +++ b/subjects/sqrt.fr.md @@ -36,9 +36,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 2 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/strlen.en.md b/subjects/strlen.en.md index 3c3625f3..34269909 100644 --- a/subjects/strlen.en.md +++ b/subjects/strlen.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/strlen.fr.md b/subjects/strlen.fr.md index d3db8dd5..fc343e71 100644 --- a/subjects/strlen.fr.md +++ b/subjects/strlen.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/strlenprog.en.md b/subjects/strlenprog.en.md index 35d0a627..e89484f3 100644 --- a/subjects/strlenprog.en.md +++ b/subjects/strlenprog.en.md @@ -44,8 +44,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/strlenprog.fr.md b/subjects/strlenprog.fr.md index 7dd5fea3..ce520580 100644 --- a/subjects/strlenprog.fr.md +++ b/subjects/strlenprog.fr.md @@ -45,8 +45,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/strrev.en.md b/subjects/strrev.en.md index d89e24f8..e2183405 100644 --- a/subjects/strrev.en.md +++ b/subjects/strrev.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test !dlroW olleH -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/strrev.fr.md b/subjects/strrev.fr.md index 84392a15..1babd18f 100644 --- a/subjects/strrev.fr.md +++ b/subjects/strrev.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test !dlroW olleH -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/strrevprog.en.md b/subjects/strrevprog.en.md index ad03cd1e..6b4a3400 100644 --- a/subjects/strrevprog.en.md +++ b/subjects/strrevprog.en.md @@ -7,9 +7,9 @@ ### Expected output : ```console -student@ubuntu:~/piscine-go/strrevprog$ go build -student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog "Hello World!" | cat -e +student@ubuntu:~/[[ROOT]]/strrevprog$ go build +student@ubuntu:~/[[ROOT]]/strrevprog$ ./strrevprog "Hello World!" | cat -e !dlroW olleH$ -student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog -student@ubuntu:~/piscine-go/strrevprog$ +student@ubuntu:~/[[ROOT]]/strrevprog$ ./strrevprog +student@ubuntu:~/[[ROOT]]/strrevprog$ ``` diff --git a/subjects/strrevprog.fr.md b/subjects/strrevprog.fr.md index 60e92120..1233a6ef 100644 --- a/subjects/strrevprog.fr.md +++ b/subjects/strrevprog.fr.md @@ -7,9 +7,9 @@ ### Utilisation : ```console -student@ubuntu:~/piscine-go/strrevprog$ go build -student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog "Hello World!" | cat -e +student@ubuntu:~/[[ROOT]]/strrevprog$ go build +student@ubuntu:~/[[ROOT]]/strrevprog$ ./strrevprog "Hello World!" | cat -e !dlroW olleH$ -student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog -student@ubuntu:~/piscine-go/strrevprog$ +student@ubuntu:~/[[ROOT]]/strrevprog$ ./strrevprog +student@ubuntu:~/[[ROOT]]/strrevprog$ ``` diff --git a/subjects/swap.en.md b/subjects/swap.en.md index 8f93af12..39d7ad70 100644 --- a/subjects/swap.en.md +++ b/subjects/swap.en.md @@ -36,9 +36,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/swap.fr.md b/subjects/swap.fr.md index c0fed9fe..a4f439a7 100644 --- a/subjects/swap.fr.md +++ b/subjects/swap.fr.md @@ -36,9 +36,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 0 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/switchcase.en.md b/subjects/switchcase.en.md index 2fbfa0c1..8301402e 100644 --- a/subjects/switchcase.en.md +++ b/subjects/switchcase.en.md @@ -13,10 +13,10 @@ Write a program that takes a `string` and reverses the case of all its letters. ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "SometHingS iS WronG" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "SometHingS iS WronG" sOMEThINGs Is wRONg -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/switchcase.fr.md b/subjects/switchcase.fr.md index 54049b14..81f7b227 100644 --- a/subjects/switchcase.fr.md +++ b/subjects/switchcase.fr.md @@ -13,10 +13,10 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "SometHingS iS WronG" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "SometHingS iS WronG" sOMEThINGs Is wRONg -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/tabmult.en.md b/subjects/tabmult.en.md index 288a896e..0d1e73a2 100644 --- a/subjects/tabmult.en.md +++ b/subjects/tabmult.en.md @@ -9,8 +9,8 @@ Write a program that displays a number's multiplication table. ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test 9 +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 9 1 x 9 = 9 2 x 9 = 18 3 x 9 = 27 @@ -20,7 +20,7 @@ student@ubuntu:~/piscine-go/test$ ./test 9 7 x 9 = 63 8 x 9 = 72 9 x 9 = 81 -student@ubuntu:~/piscine-go/test$ ./test 19 +student@ubuntu:~/[[ROOT]]/test$ ./test 19 1 x 19 = 19 2 x 19 = 38 3 x 19 = 57 @@ -30,7 +30,7 @@ student@ubuntu:~/piscine-go/test$ ./test 19 7 x 19 = 133 8 x 19 = 152 9 x 19 = 171 -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/tabmult.fr.md b/subjects/tabmult.fr.md index 0c73b1b8..66cc27f2 100644 --- a/subjects/tabmult.fr.md +++ b/subjects/tabmult.fr.md @@ -9,8 +9,8 @@ ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test 9 +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 9 1 x 9 = 9 2 x 9 = 18 3 x 9 = 27 @@ -20,7 +20,7 @@ student@ubuntu:~/piscine-go/test$ ./test 9 7 x 9 = 63 8 x 9 = 72 9 x 9 = 81 -student@ubuntu:~/piscine-go/test$ ./test 19 +student@ubuntu:~/[[ROOT]]/test$ ./test 19 1 x 19 = 19 2 x 19 = 38 3 x 19 = 57 @@ -30,7 +30,7 @@ student@ubuntu:~/piscine-go/test$ ./test 19 7 x 19 = 133 8 x 19 = 152 9 x 19 = 171 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ -student@ubuntu:~/piscine-go/ +student@ubuntu:~/[[ROOT]]/ ``` diff --git a/subjects/to-git-or-not-to-git.en.md b/subjects/to-git-or-not-to-git.en.md index 0f7cff6c..caa0a62f 100644 --- a/subjects/to-git-or-not-to-git.en.md +++ b/subjects/to-git-or-not-to-git.en.md @@ -9,7 +9,7 @@ Only the numbers will appear. Here is the base command that needs to be adapted with your username and more : ``` -curl -s https://01.alem.school/api/graphql-engine/v1/graphql --data '{"query":"{user(where:{githubLogin:{_eq:\"choumi\"}}){id}}"}' +curl -s https://[[DOMAIN]]/api/graphql-engine/v1/graphql --data '{"query":"{user(where:{githubLogin:{_eq:\"choumi\"}}){id}}"}' ``` ### Usage diff --git a/subjects/to-git-or-not-to-git.fr.md b/subjects/to-git-or-not-to-git.fr.md index d9e6e0c3..8413bbf1 100644 --- a/subjects/to-git-or-not-to-git.fr.md +++ b/subjects/to-git-or-not-to-git.fr.md @@ -5,7 +5,7 @@ Écrire dans un fichier `to-git-or-not-to-git.sh` la commande qui isoles votre `id git`. Seulement les chiffres apparaitront. -> Documentation de l'API locale https://01.alem.school/git/api/swagger +> Documentation de l'API locale https://[[DOMAIN]]/git/api/swagger ### Utilisation diff --git a/subjects/tolower.en.md b/subjects/tolower.en.md index 408f0025..a6c1f98f 100644 --- a/subjects/tolower.en.md +++ b/subjects/tolower.en.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test hello! how are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/tolower.fr.md b/subjects/tolower.fr.md index 9d8a1923..c6863c9c 100644 --- a/subjects/tolower.fr.md +++ b/subjects/tolower.fr.md @@ -32,8 +32,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test hello! how are you? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/toupper.en.md b/subjects/toupper.en.md index 0858963a..3a6a27a0 100644 --- a/subjects/toupper.en.md +++ b/subjects/toupper.en.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test HELLO! HOW ARE YOU? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/toupper.fr.md b/subjects/toupper.fr.md index 3c108b00..16d0566f 100644 --- a/subjects/toupper.fr.md +++ b/subjects/toupper.fr.md @@ -32,8 +32,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test HELLO! HOW ARE YOU? -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/trimatoi.en.md b/subjects/trimatoi.en.md index 7a15ee5a..31496b22 100644 --- a/subjects/trimatoi.en.md +++ b/subjects/trimatoi.en.md @@ -58,8 +58,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 12345 @@ -67,5 +67,5 @@ student@ubuntu:~/piscine-go/test$ ./test 1234 -1234 1234 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/trimatoi.fr.md b/subjects/trimatoi.fr.md index 06e57c6a..7c1059e2 100644 --- a/subjects/trimatoi.fr.md +++ b/subjects/trimatoi.fr.md @@ -59,8 +59,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 12345 12345 12345 @@ -68,5 +68,5 @@ student@ubuntu:~/piscine-go/test$ ./test 1234 -1234 1234 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/ultimatedivmod.en.md b/subjects/ultimatedivmod.en.md index e21269b8..3b618547 100644 --- a/subjects/ultimatedivmod.en.md +++ b/subjects/ultimatedivmod.en.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 6 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/ultimatedivmod.fr.md b/subjects/ultimatedivmod.fr.md index d3e93e10..a09cebfe 100644 --- a/subjects/ultimatedivmod.fr.md +++ b/subjects/ultimatedivmod.fr.md @@ -40,9 +40,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 6 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/ultimatepointone.en.md b/subjects/ultimatepointone.en.md index 383ff3c8..af9c6609 100644 --- a/subjects/ultimatepointone.en.md +++ b/subjects/ultimatepointone.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/ultimatepointone.fr.md b/subjects/ultimatepointone.fr.md index 98bb863f..338721c6 100644 --- a/subjects/ultimatepointone.fr.md +++ b/subjects/ultimatepointone.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/union.en.md b/subjects/union.en.md index 8b4e4583..b7db67a3 100644 --- a/subjects/union.en.md +++ b/subjects/union.en.md @@ -11,16 +11,16 @@ If the number of arguments is different from 2, then the program displays newlin ### Usage ```console -student@ubuntu:~/piscine-go/union$ go build -student@ubuntu:~/piscine-go/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e +student@ubuntu:~/[[ROOT]]/union$ go build +student@ubuntu:~/[[ROOT]]/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e zpadintoqefwjy$ -student@ubuntu:~/piscine-go/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e df6vewg4thras$ -student@ubuntu:~/piscine-go/union$ ./union "rien" "cette phrase ne cache rien" | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union "rien" "cette phrase ne cache rien" | cat -e rienct phas$ -student@ubuntu:~/piscine-go/union$ ./union | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union | cat -e $ -student@ubuntu:~/piscine-go/union$ ./union "rien" | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union "rien" | cat -e $ -student@ubuntu:~/piscine-go/union$ +student@ubuntu:~/[[ROOT]]/union$ ``` diff --git a/subjects/union.fr.md b/subjects/union.fr.md index 84e09228..fea6eae2 100644 --- a/subjects/union.fr.md +++ b/subjects/union.fr.md @@ -11,16 +11,16 @@ Si le nombre d'arguments est différent de 2, le programme affiche un retour à ### Utilisation ```console -student@ubuntu:~/piscine-go/union$ go build -student@ubuntu:~/piscine-go/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e +student@ubuntu:~/[[ROOT]]/union$ go build +student@ubuntu:~/[[ROOT]]/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e zpadintoqefwjy$ -student@ubuntu:~/piscine-go/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e df6vewg4thras$ -student@ubuntu:~/piscine-go/union$ ./union "rien" "cette phrase ne cache rien" | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union "rien" "cette phrase ne cache rien" | cat -e rienct phas$ -student@ubuntu:~/piscine-go/union$ ./union | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union | cat -e $ -student@ubuntu:~/piscine-go/union$ ./union "rien" | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union "rien" | cat -e $ -student@ubuntu:~/piscine-go/union$ +student@ubuntu:~/[[ROOT]]/union$ ``` diff --git a/subjects/unmatch.en.md b/subjects/unmatch.en.md index 5812e624..ba6cc6ae 100644 --- a/subjects/unmatch.en.md +++ b/subjects/unmatch.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/unmatch.fr.md b/subjects/unmatch.fr.md index 3bc9b21f..5f959cfd 100644 --- a/subjects/unmatch.fr.md +++ b/subjects/unmatch.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test 4 -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/wdmatch.en.md b/subjects/wdmatch.en.md index 69683b17..a40ef0d5 100644 --- a/subjects/wdmatch.en.md +++ b/subjects/wdmatch.en.md @@ -11,17 +11,17 @@ If the number of arguments is different from 2, the program displays a newline. ### Usage ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" faya -student@ubuntu:~/piscine-go/test$ ./test "faya" "fgvvfdxcacpolhyghbred" +student@ubuntu:~/[[ROOT]]/test$ ./test "faya" "fgvvfdxcacpolhyghbred" -student@ubuntu:~/piscine-go/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh +student@ubuntu:~/[[ROOT]]/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh -student@ubuntu:~/piscine-go/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " +student@ubuntu:~/[[ROOT]]/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " quarante deux -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/wdmatch.fr.md b/subjects/wdmatch.fr.md index d9f13053..4975d2ac 100644 --- a/subjects/wdmatch.fr.md +++ b/subjects/wdmatch.fr.md @@ -11,17 +11,17 @@ Si le nombre d'arguments est différent de 2, le programme affiche un retour à ### Utilisation ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" faya -student@ubuntu:~/piscine-go/test$ ./test "faya" "fgvvfdxcacpolhyghbred" +student@ubuntu:~/[[ROOT]]/test$ ./test "faya" "fgvvfdxcacpolhyghbred" -student@ubuntu:~/piscine-go/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh +student@ubuntu:~/[[ROOT]]/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh -student@ubuntu:~/piscine-go/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " +student@ubuntu:~/[[ROOT]]/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " quarante deux -student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/who-are-you.en.md b/subjects/who-are-you.en.md index a3a77c88..eb2ac4b8 100644 --- a/subjects/who-are-you.en.md +++ b/subjects/who-are-you.en.md @@ -8,6 +8,6 @@ The only though that comes to your mind is a tag that says: `subject Id: 70`" Create the file `who-are-you.sh` which will remind you who you are by showing your name only. -- Where to look : https://01.alem.school/assets/superhero/all.json +- Where to look : https://[[DOMAIN]]/assets/superhero/all.json - What to use : `curl` and `jq` diff --git a/subjects/who-are-you.fr.md b/subjects/who-are-you.fr.md index 1e5699ef..fae5775b 100644 --- a/subjects/who-are-you.fr.md +++ b/subjects/who-are-you.fr.md @@ -8,6 +8,6 @@ Tout ce qui vous vient à l'esprit est une étiquette sur laquelle est écrite: Créer le fichier `who-are-you.sh` qui vous rappellera qui vous êtes en affichant votre Nom seulement. -- Où chercher : https://01.alem.school/assets/superhero/all.json +- Où chercher : https://[[DOMAIN]]/assets/superhero/all.json - Quoi utiliser : `curl` et `jq`