File: run_toupper

package info (click to toggle)
paexec 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 904 kB
  • sloc: sh: 3,435; ansic: 1,959; makefile: 174; pascal: 19
file content (18 lines) | stat: -rwxr-xr-x 388 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env sh

# Converts all strings to upper case in parallel.
# Subprocesses are run on the same host where paexec is run.
# Input may contains empty lines.

input (){
    cat <<'EOF'
My English is awesome.
Who is absent?
My name is Aleksey.
I was born in USSR.
London is a capital of Great Britain.
Who is on duty today? :-)
EOF
}

input | paexec -c "`pwd`/cmd" -n +2 | cut -b 2-