User Tools

Site Tools


Sidebar


Start


Teaching:

Feedback


os_cp:redirects_pipes:solutions

This is an old revision of the document!


1cat /etc/motd
cat /etc/SUSE-brand /etc/os-release
2cat
foo
baz
# press Ctrl+d
3cat /usr/share/doc/mpich/user.pdf
cat -v /usr/share/doc/mpich/user.pdf
4paste /etc/os-release /etc/os-release
5hexdump -C /usr/share/themes/Breeze/assets/line-h.png
11date > file
12date >> file
13cat /etc/motd /etc/shadow 2> file
14find /var/spool/ 2> /dev/null
15find /var/spool/ > out 2> err
16find /var/spool/ &> out_and_err
17echo 'print("hello " + __file__)' > file
python < file
# compare with python file
18hexdump -C << EOF
foo
baz
bar€and®foobar
EOF
19bc
sqrt(2.0000)
quit
bc <<< 'sqrt(2.0000)'
20bc <<< 'sqrt(2.0000)' > file
21cat /etc/motd >&-
find /var/spool/ 2>&-
22cp /etc/services .
hexdump <>services 1>&0
# hexdump reads a chunk of data, outputs (in the middle of the file) the hex dump,
# and repeats this until it processes whole file.
23cat /etc/motd /etc/shadow 3>&1 1>&2 2>&3 | rev
25echo 'some text' | xxd
26ls | cat
ls | cat -n
27ps -eF | fold
28 Work in progress...
|
29|
30|
31|
32|
33|
34|
35|
36|
37|
38|
39|
40|
41|
42|
43|
44|
45|
46|
47|

os_cp/redirects_pipes/solutions.1679445863.txt.gz · Last modified: 2023/03/22 01:44 (external edit)