Gauffke · Stack Overflow

Score of 1

7 answers

338 views

Scan directories and copy those that have more than n files

I have an mp3 library in a music folder structured by artist/album/song.mp3 (or other extension, but the folder contain audio only, so extension doesn't matter here). I wish to copy this music ...

  • reputation score 49

Score of 0

1 answer

63 views

Script commands run but only after being manually run

I have a script being used to transfer updated files between RHEL servers, the script runs the following loop: for RHOST in $RHOSTS; do ssh $RHOST cp -p "$CMD_DIR/$CMD" "$CMD_DIR/${...

  • reputation score 6

Score of -1

1 answer

129 views

ansifilter doesn't filter ANSI escape codes

I have a written the below C++ program wherein I'm trying to imitate processing status in a console. Everything runs/displays correctly. When I redirect the program output to a file and then use ...

  • reputation score 4574

Score of 1

1 answer

171 views

Setting prompt color based on last command status

I'm attempting to set the prompt of tcsh according to the status of the last command, as given by $status, but I'm encountering difficulties managing that. Displaying the status itself is no trouble; ...

  • reputation score 123

Score of -2

2 answers

123 views

xml: uncapturable attribute

xidel 'https://en.wikipedia.org/wiki/List_of_trigonometric_identities' -e '/html/body/div[3]/div/div[3]/main/div[3]/div[3]/div[2]/table[1]/tbody/tr[2]/td/span/a/img' --output-format=xml outputs <?...

  • reputation score 479

Score of 0

3 answers

166 views

Bash PS1 containing Sixels

PS1 has either $(cat arch_prompt.sixels) or $(chafa arch_prompt.png) so I get that garbled mess. Sed doesn't work. The image gets garbled and doesn't work if it's removed, but as you see the small ...

  • reputation score 1

Score of 0

1 answer

46 views

Make `find` output quoted or escaped paths? [duplicate]

I have a number of scripts that use find -depth to trawl directories in a "clever" way, e.g. to set file and directory times from EXIF metadata. Every now and then I will forget about white ...

  • reputation score 860

Score of 1

1 answer

235 views

Determine target platform without installing Rust

TL;DR: how can I determine the Rust target platform triple without installing Rust or Cargo? I would like to download the appropriate pre-compiled binary program file. The pre-compiled binary program ...

  • reputation score 7573

Score of 0

0 answers

62 views

Error rebuilding Spotlight indices with shell script

Spotlight wasn't finding stuff I knew was there, so I ran this Applescript: do shell script"sudo mdutil -Ea"with administrator privileges and got this error: Error: CoreSpotlight reset ...

  • reputation score 1

Score of 4

3 answers

193 views

Rexexp fails when in Bash script

There is a string I've extracted from a zip file: 866275 2016-02-06 11:25 Documents/familystuff/Household/Agri Stuff/Sheep/sheep Photos/2014 ewe lambs/074Cleo 6Feb16a.jpg I want the first field (...

  • reputation score 49

Read the original on stackoverflow.com ↗