diff --git a/docs/modular-steps-management.md b/docs/modular-steps-management.md index 9c1f07b80..b1138307a 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 089c00ee8..6686c9905 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 000000000..90ad35d7f --- /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 000000000..957225445 --- /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 3a59197d2..2a5e1a5c2 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 51e09f5db..3313e4943 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 1eb4398b8..dd2db0fe3 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 bb6722fc2..964905702 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 7c4217fef..4a6e7393b 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 4ae7c03c9..6e3962903 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 c08260f8f..f11d99434 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 073294444..c8b06eee4 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 c513a5a8a..562793381 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 a0532d173..a1ae8a3b1 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 5aaeab0d0..8895e8c2d 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 5aaeab0d0..8895e8c2d 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 1f2b7853e..bb84af50c 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 327dcd149..0ebbe840c 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 4e71f1f7f..2fcca7fee 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 203dd6dc3..a783a4aa6 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 5bc1a7d11..b5bd235a6 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 4cbefc1eb..669683023 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 93b7bde04..485dd295e 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 e0595fdb7..59fe80c4d 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 fdf395eb0..50f7769b6 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 98d1717cf..334841b6b 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 221178409..d270f821e 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 c5a6d6dfb..a78aa6987 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 a1e381095..f250b9fb3 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 1f1f6018b..347ea9fdb 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 b11ffea08..61246a18c 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 96173890d..869c538b1 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 4f93ea566..a350c684a 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 e10973c31..c83c28574 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 335380a62..1d8573364 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 75e8cccd9..9f41405bf 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 016b95a91..072828af2 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 94c3a1174..5cf1dd5e8 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 645caa46c..988cec7e8 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 448960d6a..7519b0b30 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 51dde4362..49e7d1030 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 0f82fa692..debf4df75 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 5ba7b8ef9..29e9042eb 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 dafba8b07..13f514a6d 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 93bbb7226..297d87ce8 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 3a00e4629..0f3383ab9 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 c40718200..55d3c02df 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 9fcbcac28..46389306c 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 80a1a8ab9..008bb0c99 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 dcb5706f9..fd15db5d5 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 08fea491f..865200e72 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 4326c2046..efa222f14 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 f6f241d1c..b24089599 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 9aab71e3c..762ab299b 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 de7fa8c1f..4e3d0090f 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 7ca569219..e7f571755 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 af57b5c01..5d59fba4c 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 a3920db1e..64826e842 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 e7b20b22a..bd6dff01a 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 10cd6dd90..dd6892616 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 7f3894601..826a25969 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 475d3314c..445d63e9c 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 4f378c84f..faf6c1051 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 5e903734e..ed15540be 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 56f99b061..e12683238 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 2eb6efb41..8c32b148b 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 18c5348e7..a73e81a11 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 45dcbc20d..f7cada1af 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 e64ac7d4a..dba3f97c1 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 3ac44176d..40af5df7a 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 0d806145c..974f36b10 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 ff4a3cb96..7ebb9bb4a 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 50a898ce9..b9a6d09e7 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 6c7849c79..7b68ade9f 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 408d0a066..ec919d710 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 9b728fe0f..846e71214 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 23da145f9..49f0dd578 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 e1337abe0..ac8661394 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 764a80ea4..3e5da1b82 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 4112c4367..418ca119b 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 641b529b8..a55ac162f 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 4f1acc965..6c0581f1a 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 cab80ed3a..1650ff29e 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 5ab886546..fb7472f1d 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 68ba48f79..d2a24d0dc 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 f2df851e1..1ba211318 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 bfb530861..9a1e4a5d0 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 2ac075c46..9a543e0cf 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 c227fe0ff..8805720d0 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 67f2fc8bf..eff5227d4 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 7976aae9b..c8720d77d 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 b4b7c6528..18289c174 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 aea6b1fe5..1cd22cd69 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 ba136e610..8e29bc79e 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 8f7a7ab8e..4f7050889 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 7e5b8de46..e3f3854f1 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 48b0a3ceb..86ba97e33 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 354bb6b84..576a3d2fe 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 7a36a781b..92d3d3b9e 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 bf0e0657a..dcb80f1d9 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 32521643f..ddfaa30ae 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 cb3bf0ff8..d046e9c1b 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 4839a750d..0ca007b2a 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 471abc7d3..69ea26e9f 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 8b69b8e74..f36c8a673 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 f83fc5c52..18b2da024 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 2032d571f..a02be54d6 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 d35c56faa..e13028467 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 83069c633..c98641e60 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 d6a30d1d3..c4ab04702 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 fcc07c3e1..af723e46a 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 f64227e56..1bb4d36a6 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 e45a64b78..5db933440 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 d7b25ffc8..fb4d98637 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 158a6de68..6fd35f310 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 24fab35d8..06714df3b 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 c13cebd76..5f586d30e 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 668d6d592..63476d15d 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 56d5ee3e4..8a12b3a91 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 9ea155188..4fde6a328 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 b3e9640ee..46641de18 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 8b4fb8afc..c3da457e7 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 a6cab178f..72b024ca5 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 8990e4ddc..cad98858b 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 1168fcd67..d24473296 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 9d130b1ab..62ae02a3a 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 67830f779..96059c762 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 e7927f5ee..173f6ae43 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 6d844c848..9ceeab00c 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 a7c8e0882..5ca592762 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 d4cd52feb..848882db1 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 ebaf6eb35..341311e75 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 771d35e30..96902d14c 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 f4a3da384..971862b3c 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 469550666..aeb27f8f3 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 17129d369..88897f406 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 17129d369..88897f406 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 4cd52f9e4..a89661b11 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 58bb0a088..c39355625 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 c33dd89b1..2e99ae99a 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 b0602105f..7a2264905 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 84deeaec4..98a1b6a74 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 7e1d51316..9787b6cb9 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 551400430..6fc55d07f 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 b5400f10c..f9fa9f501 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 992b66e1d..0cc00088e 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 7dd2b38ad..0f4b796b4 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 7272ad1d0..d948e1654 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 dfad63ab9..059ad7eae 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 77c9f6429..3a293d05c 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 af17bf30f..5f297414a 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 ffe99fdbc..a0bfd0472 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 c86102fc8..e8e091753 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 09b52f81d..79a0913bf 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 9540ce54f..2de841d2d 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 c9015e4a2..8cab6d15e 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 7234ef69b..21d0af35e 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 b8cf74bab..22b7f4489 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 d65ddea2c..55638c045 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 781e8f870..7e0bab04a 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 0cfbb276b..a2db51efd 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 0962260cd..3e2d0d087 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 0903a2358..c23473258 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 6bd30a8dc..da19c3a9b 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 1e2f1a1d8..c96ae4de3 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 fd9822b7c..d0ee93332 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 cf9642df9..176eb4f32 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 396e5893e..80359b983 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 393bf54db..68199723b 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 7557d75fd..a27c1ee6f 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 2f98314e3..81e018174 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 17b8f575f..dbc928c9e 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 af3fc617c..654478baf 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 d5daaba3c..fb53fa663 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 0a3584e6b..3d0f9b46c 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 e9bd15217..dbc7e466d 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 fdd47229c..99ab87c72 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 e37225270..73e9ecce9 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 886afee8e..faf259c17 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 890987951..fba0f4071 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 7cf103d72..0f4988abb 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 60aad350c..53a2537d4 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 3bb8eeac6..d9d9e036d 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 99401d14f..b4175b85d 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 670a4ef8f..3386e7e78 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 93383ec46..2841556dc 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 843d70d93..e785be33c 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 4b44eef8c..bf20c9aa2 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 3075af54d..63fdb41ee 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 acfbcb2f5..bb0087c23 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 1995d61d9..26b1ce0e2 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 f8af75df8..c9b400b84 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 bdb5aa42a..7714cfecb 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 8d31b8509..3d68628a3 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 c698dcb8e..2067a3753 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 07d15cb31..5f55dd67c 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 2d6a3d6bd..938a5872a 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 c624f9c6d..a077dd5e8 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 43067081d..98716369d 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 fdeac10a9..8ff23cfce 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 7a36a781b..92d3d3b9e 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 86f4d99d8..427bfd273 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 d7e5141ba..652035671 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 6fbde299a..408697e01 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 2deb69ec5..0ea58d91a 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 e4e614107..e59e97741 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 7f1f30eeb..bc5d8495a 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 288c5ee89..b7242d725 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 089878c8f..9f888c67f 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 83f2e49c4..b25cabe01 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 a98282ef5..b1894ba8d 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 9d8954ec5..675602a31 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 e734b91c9..9fdd634a8 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 0c79b5e74..652438d19 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 a284d06e6..1ebf4cf56 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 9bbeab3c0..1cec79494 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 6a5036bdb..4df22713b 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 3ce8b7638..3f33a0639 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 1874e2b10..0589bd063 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 3cd7cc4fd..c1c9f9167 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 c664eb704..fc013786b 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 377c1ad1c..cafa3e6d2 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 264a45c7f..a523f64c8 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 3d952344b..cca06ff62 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 4b5e675da..ccb282bbb 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 80c232f4f..a9109b8bb 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 7a9ec82d4..4cf7fbd4d 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 dd358900c..ddd2d74df 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 0e781d4e1..c39666550 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 493703d84..e676a275a 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 07a71671d..5501368a1 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 d4e8334fe..c55575f35 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 d66ea2a3a..714344d45 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 616969bf4..e287e4811 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 77489fd6b..7c640405c 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 96e12867a..80fb42b71 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 197fa0092..e6fe2018a 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 c10cb2034..0867cb645 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 f25257321..9d908100c 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 dec992574..de44801c4 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 a1a1b03f7..cfa96dca2 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 c1bdcd45a..eaaffc5fd 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 7960e6c30..59b3a274d 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 f41fde3be..c98f2b1b4 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 8f94a5cf9..e2afe042a 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 ec84a6cd7..8bd391683 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 5737a70f3..a1594082d 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 226c1ba22..840e35f78 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 4031792bc..49195b9b8 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 f5fa53a7c..63b23bd82 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 f5fa53a7c..63b23bd82 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 b11a9357e..f1b8fe72d 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 fba7e7dd8..09224cbe2 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 8a94ddcb9..7cef297e9 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 d363c01c6..d6e1b79ed 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 cc734935b..0881f9410 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 2a23f968e..8b8af2aff 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 8029554bc..4efacbae0 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 1c9ce754b..b02d0d12c 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 72d1a2b98..d85bb81dc 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 86f83c697..6860b0890 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 08ce4d212..59ff2a338 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 d0fff9354..e65da8410 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 3309edcbe..fb92ca6ce 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 03ce89a23..e5be061c7 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 53923d169..aa683d8a9 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 66d64b9bc..52b155432 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 d8fab804d..cc90bf521 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 d2dc34f82..6db8712c2 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 b1ddda5d0..82bef4324 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 c6613aa5d..555365f23 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 7d925f461..32f8495ad 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 d889014ea..61ac87a56 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 032f5ae6c..3762f2714 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 acf2878f5..7e511aad9 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 7db6a4e70..3313f028b 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 f945e2ce7..b39fb9bcf 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 ca08cad26..36174dd66 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 114f440b4..733bd7730 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 f85dd71f2..85f5fe23b 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 8b308f5b2..0797dea59 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 e910de9f0..7013a4153 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 1aba726cb..182500f63 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 3d702cd20..a8e8a7eb8 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 da6088e14..dc931013b 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 39ff1c9ea..d39ad9d40 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 566d9196f..b9b37c2c9 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 3af59c258..6485c0669 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 665ed820e..f1a943930 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 33cd843e9..c9c2f68d9 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 921a963a5..b7f789657 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 97f0e177c..4d2344d7d 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 bda419d39..fcbf250ca 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 9b7519de7..ea7e4d3b1 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 3ff808ecd..d21f41cc1 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 3f15f2777..6174cb695 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 3a3694441..482df7c8c 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 7e7d92ecb..a277fd2bd 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 d66298b26..7ab9f2830 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 d66298b26..7ab9f2830 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 e4167b37b..578a315bc 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 bb7f20c6a..b68d66430 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 25a193dbc..d7a7158f3 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 3e7e57f66..2dc772ce5 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 f644e0077..a04d27dd5 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 452661eb1..542774e0e 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 e47919622..7d5494e40 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 7913ab878..d0eb2ca4c 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 8ad96da8f..ec51d44f9 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 bd77932c2..952d87d5e 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 06dcf0078..2576801b3 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 53ecca722..14f3528f9 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 d3d5845a2..0d5b270de 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 1e8955b0a..097a95c0d 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 b5b8941fd..3f1a14ec9 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 1d1544181..69cb3efb4 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 b3be18b7f..ad01ddc4f 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 c43f92248..1b03afb3e 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 9e7f4f163..14ba16c1b 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 6364066be..39b8a0774 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 cf21ffec4..ead4759dc 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 39d66e81f..1df230ea5 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 3c3625f3a..342699099 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 d3db8dd56..fc343e71a 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 35d0a627f..e89484f39 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 7dd5fea3c..ce5205801 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 d89e24f8d..e21834053 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 84392a15c..1babd18f0 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 ad03cd1e5..6b4a34004 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 60e921200..1233a6ef9 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 8f93af12f..39d7ad703 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 c0fed9fed..a4f439a7d 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 2fbfa0c18..8301402ec 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 54049b144..81f7b2272 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 288a896e7..0d1e73a2b 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 0c73b1b82..66cc27f20 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 0f7cff6c0..caa0a62f4 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 d9e6e0c37..8413bbf12 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 408f00256..a6c1f98f6 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 9d8a19234..c6863c9cc 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 0858963a6..3a6a27a0e 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 3c108b001..16d0566fa 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 7a15ee5a6..31496b225 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 06e57c6a8..7c1059e29 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 e21269b83..3b6185479 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 d3e93e103..a09cebfe3 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 383ff3c8d..af9c66097 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 98bb863fc..338721c6a 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 8b4e4583b..b7db67a35 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 84e092283..fea6eae2f 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 5812e624c..ba6cc6ae0 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 3bc9b21f2..5f959cfd1 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 69683b170..a40ef0d55 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 d9f130535..4975d2ac9 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 a3a77c883..eb2ac4b89 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 1e5699ef6..fae5775bd 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`