Join date: May 15, 2022


Before Waking Up Rika Nishimura ramjai




If you are having trouble registering or have any questions about how to register, please email us at [email protected]Q: Parsing the output of `git ls-files` I am trying to parse the output of git ls-files, I have tried using regular expressions but it is not working. The git-ls-files command lists the files in the current directory. I am just learning regular expressions and can't figure out what I am doing wrong. Here is my code: #!/bin/bash git ls-files | while read line do filecount=`expr ${#line} - 1` for i in $line do if [ "$line" = "bla bla bla bla " ] then echo $(date +"%b %d %H:%M:%S %Y") echo $line echo ${#line} echo $filecount exit 0 fi done




Before Waking Up Rika Nishimura ramjai

More actions