Probably, your ls is aliased or defined as a function in your . Bashrc or etc/profile or elsewhere.
Up vote 0 down vote favorite share g+ share fb share tw.
I like a list(one item by line) of a dir. But last character it's a "/" ls /var/lib/mysql/ | grep -v "\. " This show: wachuwar_funkfow/ wachuwar_prueba/ webdeard_arde/ And I like wachuwar_funkfow wachuwar_prueba webdeard_arde Apreciate help linux bash sed awk link|improve this question asked Jan 28 at 10:12Abdel Karim Mateos Sanchez91.
3 It looks like your ls command is aliased, as it doesn't normally display the trailing slash. Type alias on your bash prompt and tell us if there's a line that looks like alias ls='ls -F ...' – voithos Jan 28 at 10:17.
Probably, your ls is aliased or defined as a function in your . Bashrc or /etc/profile or elsewhere. Try the full path to ls like /bin/ls /var/lib/mysql.
A lot of thanks. It's better solution because show me another question ls aliases... – Abdel Karim Mateos Sanchez Jan 28 at 10:22.
You should check your aliases for ls. For example, $> alias ls alias ls='ls --color=auto' -F flag appends directory indicator, so you should remove it from your ls aliases if you don't need it. About one item by line.
Ls have usable -1 flag, so it should works like ls -1 /var/lib/mysql/ wachuwar_funkfow wachuwar_prueba webdeard_arde.
Ls /var/lib/mysql/ | grep -v "\. " | sed 's/\/$//' The last sed commands searches for a line which has an ending / (which is backslashed) and replaces it with empty string.
A lot of thanks – Abdel Karim Mateos Sanchez Jan 28 at 10:21 Piping grep to sed is redundant; refactor the grep into the sed script. Ls | sed '/\. /d;s%/$%%' – tripleee Jan 28 at 17:04.
If you have a command that is also an alias, you can bypass the alias and execute the command directly with these methods: ls # runs the alias command ls # runs the command \ls # runs the command.
To exclude files that have a dot in their name, instead of using grep -v you can use: shopt -s extglob \ls -d!(*. *) The backslash bypasses the alias which is likely similar to one of: alias ls=ls -F alias ls=ls -p alias ls=ls --classify alias ls=ls --file-type alias ls=ls --indicator-style=WORD Where "WORD" is one of slash, file-type or classify.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.