1,473 reputation
1412
bio website
location
age
visits member for 1 year, 5 months
seen 15 hours ago

Aug
27
comment wget download using list of urls
If this is the problem, it would be trivial to fix the file with sed, ed, vim, or any other editor with regular expressions. Something like: sed -i '/^http:\/\//!s/^/http:\/\//' url.txt.
Aug
27
comment unix (batch file )
Here's a good website for learning basic-to-intermediate shell scripting. Greg's Wiki is a good reference when you're done there. Also see help read, man cat, man touch and man chmod on your own system. If you have any specific individual problems feel free to ask here, but as @Jan wrote, we're not going to do your homework for you.
Aug
24
awarded  Necromancer
Aug
3
comment How do you remember command options?
Q: How do you get to Carnegie Hall? A: Practice!
Jul
26
comment How do I convert FLAC files to AAC (preferrably VBR 320k+)?
@macmadness86 That's interesting but I think (I'm not a lawyer, obviously) that since FDK-AAC is incompatible with the GPL license that ffmpeg uses, it's actually illegal to distribute a version of ffmpeg with FDK-AAC installed. Whoever is doing that over homebrew could potentially get themselves into a spot of bother.
Jul
9
comment ls content of a directory ignoring symlinks
You could also use find ... -exec grep 'pattern' '{}' \+ -- using a plus instead of a semicolon tells find to pass as many files as possible to the grep, rather than limiting it to one file at a time. This will also be much more efficient, spawning fewer grep processes.
Jul
8
comment Removing a specific line from a file
ed answers always deserve a +1
Jul
2
awarded  Curious
Jun
1
comment rm -rf all files and all hidden files w/o . & .. error?
@CMCDragonkai that should be a different question, but you can find the solution in Gilles' answer (rm ..?* .[!.]* should do it).
Apr
20
comment How can I print out all but the last n characters in bash?
How does this work with multibyte characters, like UTF-8?
Mar
19
awarded  Yearling
Mar
18
comment The ls command is not working for a directory with a huge number of files
@Mikel More than that, I'm pretty sure that 5 million files is over the point where globbing will break entirely.
Mar
9
comment Check if $REPLY is in a range of numbers
AFAIK, Vorbis isn't a valid audio codec in an MP4 file (you want to use AAC or possibly MP3)...
Mar
8
comment Find the maximum length of characters in a field
@orion you can generally use <file.txt command_foo | command_bar rather than cat file.txt | command_foo | command_bar -- the < redirection doesn't have to go at the end of the command.
Feb
27
comment What happens in UNIX/Linux when a program is bigger then size of memory?
I would assume that embedded systems wouldn't have any programs that big.
Feb
9
comment Is there a command reverse search in vim?
I wish I could +10, having this feature makes using the vim command mode much nicer. I personally use a few remaps to make it easier to access.
Feb
4
comment Use of ls with wc command
Uch. +1 because you are entirely correct, but this ridiculous situation of allowing newlines in filenames is just... ugh.
Feb
4
comment Use of ls with wc command
@Kiwy most modern versions of ls automatically go to 'one file per line'-mode when the output is a pipe rather than an interactive terminal.
Jan
30
answered grep for string like xxx12345
Jan
30
revised How do I join the next line when a line matches a regex for whole document in VI?
added 1 characters in body