Hot answers tagged

1

egrep -o '[0-9]+text' filename From the egrep man page: -o, --only-matching Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.


1

Since you are going to grep the file content, -l listing the zip file won't be enough. you need to actually unzip it. so: temp=`mktemp -d` find . -iname '*.zip' -print -exec unzip -d $temp {} \; 2> error.txt grep -ir vbs $temp


1

You probably don't want to launch bash, you want to launch a terminal which runs bash within it. The cygwin installation should have placed a shortcut to 'Cygwin Terminal' on your desktop. Pin that to the taskbar/Start menu and off you go. If you don't see a shortcut for it (it actually launches the mintty terminal program) just run the cygwin setup through ...


1

The excess of DENY showed by icacls can be caused by the recent changes in cygwin dll (between 2.3 and current 2.5) . It took some round to be right and could have left files or directory with puzzling ACL. To sanitize the ACLs, a -b switch was added to setfacl setfacl -b foo For reference https://cygwin.com/cygwin-ug-net/ov-new.html#ov-new2.4s


1

for x in *; do sed '1,4d' $x > $(basename $x .txt)2.txt done or for x in *; do sed '1,4d' $x > ${x/./2.} done


1

Assuming you are running bash and you want to pass the full windows path to cmd, you should use single apostrophe and not double cmd /c 'C:\Program Files (x86)\Adobe\Reader 10.0\Reader\acrord32.exe' works fine for me.


1

What I want to know is how can I find out what ate my password, and when? Check the Windows Security Event Log for any of the following events: 4723: An attempt was made to change an account's password 4724: An attempt was made to reset an accounts password Look at the links for details about the events, and at the event details in your log for more ...


1

Copied from my answer on Stack Overflow: Instead of creating a passwd file, which Cygwin recommends against1, you could edit /etc/nsswitch.conf. Add or edit the following line: db_shell: /usr/bin/zsh The down/up side of this method is that, if you have multiple users, this change affects all of them. The up/up side is that it's dead simple. The ...



Only top voted, non community-wiki answers of a minimum length are eligible