Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
11
Task/Copy-stdin-to-stdout/Ada/copy-stdin-to-stdout.adb
Normal file
11
Task/Copy-stdin-to-stdout/Ada/copy-stdin-to-stdout.adb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
with Ada.Text_IO;
|
||||
|
||||
procedure Copy_Stdin_To_Stdout is
|
||||
use Ada.Text_IO;
|
||||
C : Character;
|
||||
begin
|
||||
while not End_Of_File loop
|
||||
Get_Immediate (C);
|
||||
Put (C);
|
||||
end loop;
|
||||
end Copy_Stdin_To_Stdout;
|
||||
|
|
@ -0,0 +1 @@
|
|||
findstr ^^
|
||||
|
|
@ -0,0 +1 @@
|
|||
findstr "^"
|
||||
|
|
@ -0,0 +1 @@
|
|||
findstr $
|
||||
|
|
@ -0,0 +1 @@
|
|||
find/v ""
|
||||
|
|
@ -0,0 +1 @@
|
|||
more
|
||||
|
|
@ -0,0 +1 @@
|
|||
copy con[:] con[:]
|
||||
|
|
@ -0,0 +1 @@
|
|||
type con[:]
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
@setlocal enabledelayedexpansion
|
||||
@<con (for /l %%# in (0 0 1) do @set/p input=&echo:!input!)
|
||||
20
Task/Copy-stdin-to-stdout/Fortran/copy-stdin-to-stdout-1.f
Normal file
20
Task/Copy-stdin-to-stdout/Fortran/copy-stdin-to-stdout-1.f
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
! Copy stdin to stdout
|
||||
! tested with GNU Fortran (Ubuntu 15.2.0-4ubuntu4) 15.2.0 on Kubuntu 25.10
|
||||
! uses non-standard function fget and gput, both are available in gfortran only.
|
||||
! ------------------------------------------------------------------------------------------
|
||||
!
|
||||
program cp
|
||||
|
||||
implicit none
|
||||
|
||||
character :: c ! The chcaracter to read
|
||||
integer :: ios ! IO Status
|
||||
|
||||
|
||||
do
|
||||
ios = fget (c) ! gfortran only
|
||||
if (ios .ne. 0) exit
|
||||
call fput(c) ! gfortran only
|
||||
end do
|
||||
|
||||
end program cp
|
||||
20
Task/Copy-stdin-to-stdout/Fortran/copy-stdin-to-stdout-2.f
Normal file
20
Task/Copy-stdin-to-stdout/Fortran/copy-stdin-to-stdout-2.f
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
! Copy stdin to stdout
|
||||
! tested with Intel ifx (IFX) 2025.2.1 20250806 on Kubuntu 25.10
|
||||
!
|
||||
! can also be compiled with gfortran but fails at run-time because it cannot change the access parameter
|
||||
! -------------------------------------------------------------------------------------------------------
|
||||
!
|
||||
program cp
|
||||
character :: c
|
||||
integer:: ios
|
||||
|
||||
open (unit=5, form='unformatted', access='stream', action ='read')
|
||||
open (unit=6, form='unformatted', access='stream', action ='write')
|
||||
|
||||
do
|
||||
read (5, iostat=ios) c
|
||||
if (ios .ne. 0) exit
|
||||
write (6) c
|
||||
end do
|
||||
|
||||
end program cp
|
||||
3
Task/Copy-stdin-to-stdout/Icon/copy-stdin-to-stdout.icon
Normal file
3
Task/Copy-stdin-to-stdout/Icon/copy-stdin-to-stdout.icon
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
procedure main()
|
||||
every write(!&input)
|
||||
end
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
MODULE CopyStdinToStdout;
|
||||
IMPORT In, Out;
|
||||
VAR c : CHAR;
|
||||
BEGIN
|
||||
In.Char( c );
|
||||
WHILE In.Done DO
|
||||
Out.Char( c );
|
||||
In.Char( c )
|
||||
END
|
||||
END CopyStdinToStdout.
|
||||
|
|
@ -0,0 +1 @@
|
|||
cat
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
NAME
|
||||
cat - concatenate files and print on the standard output
|
||||
|
||||
SYNOPSIS
|
||||
cat [OPTION]... [FILE]...
|
||||
|
||||
DESCRIPTION
|
||||
Concatenate FILE(s) to standard output.
|
||||
:
|
||||
With no FILE(s), or when FILE is -, read standard input.
|
||||
:
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
do
|
||||
s=wscript.stdin.readline
|
||||
wscript.stdout.writeline s
|
||||
loop until asc(left(s,1))=26
|
||||
Loading…
Add table
Add a link
Reference in a new issue