You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\item BASH itself doesn't recognize regular expressions --- its wildcards have some of functions of regular expressions (from slide~\ref{regexp}) and can look similarly, but behave differently --- Do not confuse!
1676
+
\item BASH itself doesn't recognize regular expressions (from slide~\ref{regexp}) --- its wildcards have some of functions of regular expressions and can look similarly, but behave differently --- Do not confuse!
1677
1677
\item\texttt{?} --- Replaces any single character
1678
1678
\item\texttt{*} --- Replaces any number of any characters (\texttt{ls a*} lists all files starting with \enquote{a})
1679
1679
\item\texttt{[]} --- Range or a~list --- \texttt{[abcdef]} and \texttt{[a-f]} are same
@@ -1741,7 +1741,7 @@ \subsection{Variables}
1741
1741
VARIABLE='variablevalue' # Set new variable and its value
1742
1742
# Or replace existing variable by new value
1743
1743
export EDITOR='/usr/bin/vim' # Set new default text editor
1744
-
LISTFILES="$(ls -1)" # Get output of command 'ls -1' into the variable
1744
+
LISTFILES="$(ls)" # Get output of command 'ls -1' into the variable
1745
1745
echo "${LISTFILES}" # See content of the variable LISTFILES
1746
1746
export GREP_OPTIONS='--color=auto' # Colored grep (see further)
0 commit comments