summarylogtreecommitdiffstats
path: root/fakeAUR.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fakeAUR.sh')
-rwxr-xr-xfakeAUR.sh24
1 files changed, 10 insertions, 14 deletions
diff --git a/fakeAUR.sh b/fakeAUR.sh
index bb78aa0b3782..823db204df06 100755
--- a/fakeAUR.sh
+++ b/fakeAUR.sh
@@ -34,9 +34,9 @@ for i in "$@"
echo "and now reduced"
pac=$(echo $processes | grep -o -P "(?<=00:00:00).*(?=$USER)" | grep -o -P "(?<=00:00:00).*(?=00:00:00)")
echo $pac
- one=$(echo $pac | cut -d' ' -f1)
+ helper=$(echo $pac | cut -d' ' -f1)
two=$(echo $pac | cut -d' ' -f2)
- pac=$one" "$two
+ pac=$helper" "$two
echo concat
echo $pac
echo concat end
@@ -55,42 +55,39 @@ for i in "$@"
description=$(echo -ne '\n' | eval "${pac}" | grep " ")
name=$(echo ${pac} | grep -Eo "[^ ]+$")
- helper=$(echo ${pac} | grep -o '^\S*')
echo ${PS1@P}$helper btwiusearch
echo -ne '\n' | eval ${pac} | sed -e "s/$name/btwiusearch/" | sed -e "s/$description/A very important and easy to use package to show the world that you run the best distro/"
;;
-btw )
processes=$(> >(ps -f))
pac=$(echo $processes | grep -o -P "(?<=00:00:00).*(?=$USER)" | grep -o -P "(?<=00:00:00).*(?=00:00:00)")
- one=$(echo $pac | cut -d' ' -f1)
+ helper=$(echo $pac | cut -d' ' -f1)
two=$(echo $pac | cut -d' ' -f2)
- pac=$one" "$two
+ pac=$helper" "$two
description=$(echo -ne '\n' | eval "${pac}" | grep " ")
name=$(echo ${pac} | grep -Eo "[^ ]+$")
- helper=$(echo ${pac} | grep -o '^\S*')
echo ${PS1@P}$helper btwiusearch
echo -ne '\n' | eval ${pac} | sed -e "s/$name/btwiusearch/" | sed -e "s/$description/A very important and easy to use package to show the world that you run the best distro/"
;;
-nani )
processes=$(> >(ps -f))
pac=$(echo $processes | grep -o -P "(?<=00:00:00).*(?=$USER)" | grep -o -P "(?<=00:00:00).*(?=00:00:00)")
- one=$(echo $pac | cut -d' ' -f1)
+ helper=$(echo $pac | cut -d' ' -f1)
two=$(echo $pac | cut -d' ' -f2)
- pac=$one" "$two
+ pac=$helper" "$two
description=$(echo -ne '\n' | eval "${pac}" | grep " ")
name=$(echo ${pac} | grep -Eo "[^ ]+$")
- helper=$(echo ${pac} | grep -o '^\S*')
echo ${PS1@P}$helper nani
echo -ne '\n' | eval ${pac} | sed -e "s/$name/nani/" | sed -e "s/$description/now you can speak japanese/"
;;
-grep)
processes=$(> >(ps -f))
pac=$(echo $processes | grep -o -P "(?<=00:00:00).*(?=$USER)" | grep -o -P "(?<=00:00:00).*(?=00:00:00)")
- one=$(echo $pac | cut -d' ' -f1)
+ helper=$(echo $pac | cut -d' ' -f1)
two=$(echo $pac | cut -d' ' -f2)
- pac=$one" "$two
+ pac=$helper" "$two
description=$(echo -ne '\n' | eval "${pac}" | grep " ")
echo $description
@@ -98,13 +95,12 @@ for i in "$@"
*)
processes=$(> >(ps -f))
pac=$(echo $processes | grep -o -P "(?<=00:00:00).*(?=$USER)" | grep -o -P "(?<=00:00:00).*(?=00:00:00)")
- one=$(echo $pac | cut -d' ' -f1)
+ helper=$(echo $pac | cut -d' ' -f1)
two=$(echo $pac | cut -d' ' -f2)
- pac=$one" "$two
+ pac=$helper" "$two
description=$(echo -ne '\n' | eval "${pac}" | grep " ")
name=$(echo ${pac} | grep -Eo "[^ ]+$")
- helper=$(echo ${pac} | grep -o '^\S*')
echo ${PS1@P}$helper $1
echo -ne '\n' | eval ${pac} | sed -e "s/$name/$1/" | sed -e "s/$description/$2/"
;;