Portál AbcLinuxu, 19. května 2024 02:39
$ man bash
..urcite to zvladnete . Kdybych napsal vic, tak by uz to bylo reseni samotne - a cilem te domaci prace asi bylo neco se naucit, ze?
PS: pokud nahodou nevladnete anglictinou, tak kdyz tady na ABCčku do toho policka vpravo nahore napisete "bash uvod" a stisknete hledat
, tak to najde pekny serial o BASHi.
dave@amd64 ~ $ echo 1, 2, 3 > file dave@amd64 ~ $ if [[ -f file ]]; then no=$(<file); expr ${no//,/ +}; else read a; expr ${a//,/ +}; fi 6 dave@amd64 ~ $ rm file dave@amd64 ~ $ if [[ -f file ]]; then no=$(<file); expr ${no//,/ +}; else read a; expr ${a//,/ +}; fi 1, 2, 3, 4 10
if [[ -f file ]]; then a=$(<file) else read a fi expr ${a//,/ +}
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.