can anyone tell me what the \/$ means? from
grep \/$
can anyone tell me what the \/$ means? from
grep \/$
Show all lines that have a slash as last character in the line.
ah .. thanks
The backslash escapes the slash and the $ stands for end of line in regular expressions.
oo so the grep \ means show all character with \
and / means escape and $ for eol ?
\
is escape (which probably isn't needed in this case, but it may depend on your grep)
/
is a character literal (i.e. just a slash)
$
is EOL
hmm if i use
ls -Rs | grep /
does it print out all it's sub directory and it's size?
---------- Post updated at 08:45 AM ---------- Previous update was at 08:45 AM ----------
oo it's just the sub directory
It prints out any lines containing the character '/' -- nothing more, nothing less. It doesn't understand ls's output.
ah ic... thanks again