How to `awk` print a space-separated field which contains space characters?

Advertisements I am trying to print the list of all files and folders including hidden files: ls -al | awk -F’ ‘ ‘{print $9}’ | xargs do_something However, some of the files and/or folders contain space characters. How could I achieve this? Thanks. >Solution : $ find . -mindepth 1 -maxdepth 1 -printf "%P\n"|xargs -i… Read More How to `awk` print a space-separated field which contains space characters?

How to don't allow set only the same characters and only special sign – regex js

Advertisements I’m looking for some regex pattern to: not allow set the same characters not allow only special signs. So: 11111111 – not allow 1111811111 – allow rrrrrrrr – not allow rrrrrrrrrr5 – allow 11111111% – allow %$!@$!@@@@ – not allow %%%%%%%%%1 – allow I found regex which is helpful for recognize that string has… Read More How to don't allow set only the same characters and only special sign – regex js