Search Results

Search: Posts Made By: pixelbeat
4,049
Posted By pixelbeat
The 2 find commands work differently as the...
The 2 find commands work differently as
the second passes 2 files to grep for
each invocation, in which case grep outputs
the filenames to distinguish. Yes it's a hack.

A better/more efficient...
72,271
Posted By pixelbeat
export LANG=C #for speed find -name "*.css" -o...
export LANG=C #for speed
find -name "*.css" -o -name "*.js" -print0 |
xargs -r0 grep --color -FH searchBg

see also:
http://www.pixelbeat.org/scripts/findrepo
38,139
Posted By pixelbeat
I think what your saying is output the contents...
I think what your saying is output the contents of
file1 that are not in file2...

export LANG=C #for speed
sort input1.txt input2.txt input2.txt | uniq -u
44,936
Posted By pixelbeat
gnu copy (as is on linux) has the -u option. ...
gnu copy (as is on linux) has the -u option.
Also have a look at rsync
16,853
Posted By pixelbeat
http://www.raoul.shacknet.nu/2005/11/10/ssh-with-k...
http://www.raoul.shacknet.nu/2005/11/10/ssh-with-keys/
16,853
Posted By pixelbeat
setup keys on the remote machine
setup keys on the remote machine
3,780
Posted By pixelbeat
Nope 1999 was the last time I used FTP. It...
Nope 1999 was the last time I used FTP.
It truely is an evil protocol.
3,780
Posted By pixelbeat
The FTP protocol directly supports server to...
The FTP protocol directly supports server to server transfer.
You initiate it with the proxy client command.
Ages ago I wrote a script to automate this:
http://www.linux.ie/old-list/9073.html
17,585
Posted By pixelbeat
in bash at least it is "wait" You can wait for...
in bash at least it is "wait"
You can wait for jobs, pids or all children.

Perl no doubt has something similar
4,683
Posted By pixelbeat
Using GNU tools you can do: numfiles=10...
Using GNU tools you can do:

numfiles=10 #number to process
find $dir -name "*.xml" -printf "%T@\t%p\n" |
sort -k1,1n |
tail -$numfiles |
cut -f2- |
while read file; do
echo processing...
20,884
Posted By pixelbeat
find dir/ -name 'Results*.dat' | xargs cp -a...
find dir/ -name 'Results*.dat' | xargs cp -a --target-directory=/dest/dir --parents
25,251
Posted By pixelbeat
Ah OK, you need to use interfaces in your...
Ah OK, you need to use interfaces
in your program that allow you to have
files > 2GB.

For linux (glibc) you can do it explicitly
in the source by defining _LARGEFILE64_SOURCE
and then calling...
25,251
Posted By pixelbeat
what version of unix/sort exactly? gnu sort for...
what version of unix/sort exactly?
gnu sort for example supports files > 2GB,
and efficiently sorts/merges files > RAM size
10,177
Posted By pixelbeat
Looks like a bug. You could try the latest...
Looks like a bug.
You could try the latest version:
ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.90.tar.bz2
A compresssed version of your problematic input file would be useful
1,624
Posted By pixelbeat
On linux at least you can do: find / -type f...
On linux at least you can do:

find / -type f -print0 | LANG=C xargs -r0 zgrep -Fl 199006307
2,511
Posted By pixelbeat
I really don't understand exactly what you want...
I really don't understand exactly what you want but this may help:

find . -maxdepth 1 -printf "%A@ %AT %CT %P\n" | sort -k1,1n
7,389
Posted By pixelbeat
right so your uniq can only skip fields or chars....
right so your uniq can only skip fields or chars.
How about swaping the fields using sed like:

sed 's/\([^ ]*\) *\(.*\)$/\2 \1/' |
uniq -f1
sed 's/\([^ ]*\) *\(.*\)$/\2 \1/'
7,389
Posted By pixelbeat
assuming the first field is always 16 chars you...
assuming the first field is always 16 chars you can:

uniq -w16
16,722
Posted By pixelbeat
0x0A man ascii or: echo -ne "\n" | od...
0x0A

man ascii or:

echo -ne "\n" | od -Ax -tx1z -v
4,198
Posted By pixelbeat
for a set of characters you need to use [] so...
for a set of characters you need to use []
so you want something like:

LANG=C grep -Ev "[ -~]"

note a literal tab and a space are the first 2 of the 4 chars within []
To type a literal...
27,535
Posted By pixelbeat
search for 444 here: ...
search for 444 here:
http://www.pixelbeat.org/cmdline.html
13,679
Posted By pixelbeat
works fine on linux/bash. What system/shell...
works fine on linux/bash.

What system/shell are you trying on?

That 377 error is weird?

$ echo -e "\377" | recode l1..
ÿ
2,130,180
Posted By pixelbeat
uniq file > file.new If the files are not...
uniq file > file.new

If the files are not already sorted then:

sort file | uniq > file.new
24,897
Posted By pixelbeat
If you combine the following scripts you should...
If you combine the following scripts you should get what you want:

http://www.pixelbeat.org/scripts/find_mm_yyyy
http://www.pixelbeat.org/scripts/add

The following might work straight off?
...
89,991
Posted By pixelbeat
with gnu date you can do: date --date="-1 days"...
with gnu date you can do: date --date="-1 days" +%Y%m%d
Showing results 1 to 25 of 60

 
All times are GMT -4. The time now is 03:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy