When we list files in unix using ls -l command the output is a table with space as a separator, for example the following I want to convert to a ta ...
When we list files in unix using ls -l command the output is a table with space as a separator, for example the following I want to convert to a ta ...
I'm trying to get an array of all files in a remote folder using bash and SSH: declare -a existing_files=$(ssh -q -i $SSH_KEY_PATH -t $PROXY_SERVER \ ...
I try to program a simple implementation of ls for school It has a few bugs: When the printf line marked above is not commented out, the progra ...
I want to search for a file that has 1033 bytes of size. Therefore, I write ls -lRA, which outputs around 200 files, in around 20 folders. When I grep ...
iamth@DESKTOP-TQE8AEJ MINGQ64 ~ (master) $ cd .. iamth@DESKTOP-TQE8AEJ MINGQ64 /c/Users $ cd ../.. iamth@DESKTOP-TQE8AEJ MINGQ64 / $ ls LICENSE.txt ...
I want to list all .jpg files in all subdirectories using ls. For the same directory this works fine: ls *.jpg However, when using the -R for recur ...
I need to extract in linux bash from a string a set of characters which are included between a static string and the first number. A simple example s ...
I am using a web terminal ubuntu 20.04 to learn shell and everything was working fine. suddenly I started getting this error message when I invoked th ...
when I do ls | grep -e *-folder1 it prints my-folder1 thats the name of the folder matched in the command in current directory. Is there a way I can a ...
if [ "$(ls -A $path)" ];then echo $path dirpath = "$mainPath/$path" fi ...
I have a set of directories of my interest that I want to do sed and grep on files under only these directories. What I did is that I put all the path ...
enter image description here '''ls: cannot open directory '.': Permission denied''' ...
I am using -ls to check if my files exist. The problem is when I run this: I get what I want: But when I run the same command on a different d ...
I am trying to implement the ls command and am getting stuck in the -i option using the stat() function to list inode numbers. The format is ./myls [ ...
I want a to display ALL files (including hidden ones) on a directory in Powershell opened in Windows VsCode. I want the Powershell equivalent of 'ls - ...
I have tried using LSD and I have a small problem when I use it in CMD it looks very good. LSD in CMD But when I type LSD in Git Bash the colors are ...
I'm looking at doing a recursive Get-ChildItem -r to get lastWriteTime, length and group for count by extension. I get a bunch of errors, e.g., 'Get- ...
I'm trying to recapture some of the simplicity of the c-shell and tcsh. I had a simple alias that allowed me to list directories (alias lsdd 'ls | gre ...
I am encountering a really weird issue when trying to "cd" into a specific directory (e.g. directory_A) along a path. Whenever I try to "cd", my linux ...
I have many directories with different number of CSV files in each of them. I am interested in getting a list of those directories with a their respec ...