Bernhard
  • Member for 10 years
  • Last seen more than 1 year ago
Splitting a PDF document in two without purchasing a PDF editing tool
Accepted answer
12 votes

You can send page 5 to 10 to a PDF-printer in such a case. Installing a printer that can print to pdf is freeware, and can be done with little loss.

View answer
How to perform two searches at once in Vim?
Accepted answer
9 votes

Easiest might be, e.g. /def transmogrify/;/foobar

View answer
Argument list too long for xargs/exec
Accepted answer
5 votes

You have multiple mistakes. You should escape the * globbing. You have to put {} between quotes (for filename security), and you have to end the -exec with \;. find ./ -iname out.\* -type f -exec mv ...

View answer
Copy Files over unstable connection
Accepted answer
5 votes

I think rsync can do this for you. In the man-pages I found the timeout flag, which you want to be non-zero, so rsync -avz --timeout=60 source/ /mnt/usb/

View answer
Putty: Refresh VIM screen
Accepted answer
4 votes

:redraw can be used to redraw everything.

View answer
How do I get the total duration of a bunch of tiny video files in a folder?
3 votes

If you select the items in the file browser, then in the bottom I can see the total length of the selected items. As requested, here are some sample screenshots (from Windows 7).

View answer
Maintain text colors when wrapping command in bash script
Accepted answer
3 votes

This will do the trick, the --color flag takes care of coloured output. In your shell it is probably aliased. #!/bin/bash grep --color -n $1 js/*/**.js grep --color -n $1 js/*.js

View answer
UNIX string comparing in large file
Accepted answer
3 votes

I would use awk in this situation awk -F"\t" '$3 == "abcdefghikl" {print}' filename > outputfile Where you set the seperator to a tab, and the print only the lines where the third column matches ...

View answer
Unix tar compressed folder not opening on windows
Accepted answer
3 votes

You probably misled the Windows utility by using extension tar on a gzipped file. As you're using gzip compression by using the -z flag, the common file-types are .tgz and .tar.gz. I have no idea ...

View answer
Copying/Pasting in VIM without overwriting register
Accepted answer
3 votes

You should use the "a to "z (named) registers, instead of the numbered registers, which stores previous deletes automatically.

View answer
in place refreshing of a large tar.gz?
2 votes

You can use the -u (--update) (add newer file if it exists) or -r (--append) to add updated files to the archive. However, this will not work for compressed archives. You do not need to untar your ...

View answer
how do i turn a whole file into uppercase?
2 votes

This would be the VI solution. If you only want to replace those characters to the uppercase equivalent :s/[actg]/\U\0/g And for all characters :s/[a-z]/\U\0/g Explanation: s(ubstite) [actg] ...

View answer
Copy and paste in VIM?
Accepted answer
2 votes

When using VIM there a many better approaches to copy text. VIM is ideally used without a mouse. To copy full lines, you can type 3yy where you can replace 3 by the amount of lines you want to copy. ...

View answer
How to grep for VIM colour schemes that do not use dark blue?
Accepted answer
2 votes

If you go to the location where the colorschemes are stored, you can easily grep inside these files cd /usr/share/vim/vimXX/colors grep -L blue *.vim Where -L, --files-without-match ...

View answer
After closing the ssh terminal, the thin server is down
1 votes

If you want a program to keep running after closing the terminal, than you can try screen to run a kind of virtual terminal that keeps active on the server, and can be used from another location at ...

View answer
How to use $date in Unix script
1 votes

man date shows all possible output options, you coud for example use $ date +%D 09/11/13

View answer
Is there anyway in which I don't need to specify the linker when compiling?
1 votes

You could consider using make and Makefiles. Of course you still need the links to libraries, but you don't need to think about it anymore when compiling. This comes in handy especially when you are ...

View answer
How to extract e-mail or domain from mixed data file in linux
1 votes

This awk one-liner gives the output that you desire awk '/From Email/ { if( !match($4,"@") ){ print $4 } }' inputfile It selects the lines containing 'From Email' and checks whether the fourth ...

View answer
How to make gnuplots fullscreen?
1 votes

You can open use the -geometry option of gnuplot to supply the size of the window. If you use gnuplot inside a script, you can do something like this: resolution=$(xrandr | grep '*') && ...

View answer
Opening a file from .netrw in a specified split
1 votes

If you are in normal mode, you can type this to open "filename" in the lower right window :exe 4 . "wincmd w|e filename"

View answer
Putting the few rows into one Excel 2007 column instead
1 votes

If you're using VI as text editor, you can easily do :%s/ /\r/g If you are willing to use sed, you can from the commandline in Linux type sed 's/ /\n/g' filename

View answer
How to delete everything in folder?
1 votes

You can use rm -rf * -r for recursive (also subdirectories) and -f for force (also write-protected files). But be careful in using this.

View answer
Bash script to delete files older than x days with subdirectories
1 votes

You can easily do this with the find command $ find -type f Which restricts the results to be of the type file

View answer
Subtitles in VLC streamer
0 votes

Via the movie submenu you can open the .srt file as subtitle track.

View answer
Eval Error in Shell
0 votes

The error message is quite clear here. Unterminated quote is probably referring to the three single quotes on the right hand side.

View answer
Linking a folder to another folder (FTP) (LINUX)
0 votes

In principle you can link this folder with a symbolic link. $ ln -s /path/to/drive symbolicfoldername But you still need to set the permissions for the users correct, which maybe your main concern

View answer