First  |  Prev |  Next  |  Last
Pages: 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
find errors "paths must precede expression: %d" ..., "missing argument to `-exec'"
~ it amazes me how fragile bash scripting is ~ you try first things on the command prompt which works just find but then when you paste your command on a bash files thing stops working. As I see "I am not the only one". I'd wish I could not the reason why that happens to be smarter about this ~ I am just try... 6 Feb 2010 07:28
Man vs. standards
>>>>> "S" == Seebs <usenet-nospam(a)seebs.net> writes: "IS" == Ivan Shmakov <ivan(a)main.uusia.org> wrote: [...] S> The way to show that something is not standard would be to show that S> the standard doesn't specify it, not to appeal to whether a S> particular system has it. Many systems lack many feat... 4 Feb 2010 17:58
stratifying values in a file ...
~ I was wonderign if you know of a more efificient way to stratify values in a column of a file ~ Say you have a file with data on each line and you would like to know how many times the data was found in it. File could look like this: ~ // __ f00.txt ~ 6456 qweRt aAbCC aAbCC aabCC 96 qwert 96 645 ... 7 Feb 2010 18:42
Automatically rename a downloaded file by curl to avoidfilename conflict.
On 2010-02-04, Hongyi Zhao wrote: Hi all, When I download a file by curl, I use -o switch to write the file as a local file, say, myfile. The issue is: if a file with the same filename already exists in the target folder, the original file will be overwrited. So, I want to rename this downloaded fil... 9 Feb 2010 16:16
Automatically rename a downloaded file by curl to avoid filename conflict.
Hi all, When I download a file by curl, I use -o switch to write the file as a local file, say, myfile. The issue is: if a file with the same filename already exists in the target folder, the original file will be overwrited. So, I want to rename this downloaded file to something like this: myfile.1 in order t... 9 Feb 2010 23:01
trying to parametrize find ...
I have some script to find files that works just fine and looks like this: ~ #!/bin/bash # FIND SEARCH DIRECTORY _FND_DIR=/ # EXCLUDING _XKLD="" find ${_FND_DIR} -noleaf -wholename '/media/sda1' -prune -o -wholename '/proc' -prune -o -type f -printf '%T@,%A@,%C@,"%P"\n' > found.txt ~ I would like for... 10 Feb 2010 23:34
x12a403
<a href="http://400762.com">275af4</a> | [url=http://ccb6e4.com]4bce70[/url] | [link=http://f97570.com]42064f[/link] | http://e652b1.com | 3616e7 | [http://7b2994.com fc2e55] --- frmsrcurl: http://compgroups.net/comp.unix.shell ... 2 Feb 2010 15:48
Man vs. Info: documenting the software
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 "S" == Seebs <usenet-nospam(a)seebs.net> writes: "IS" == Ivan Shmakov <ivan(a)main.uusia.org> wrote: [...] S> An index on a whole bunch of separate documents is often less useful S> than a single all-in-one searchable text document. The people doing ... 4 Feb 2010 09:59
Remove certain characters in a filename
Hi, I want my shell to input a file using $argv[1] and cut the .gz part in it.i.e. if the input file name taken by $argv[1] is xyz.gz, I want $argv[1] to be assigned as xyz. How can I do this using cut command. Thanks in advance Unix Baby ... 2 Feb 2010 15:48
Do some simple addition operations under bash by using expr
On comp.unix.shell, Ivan Shmakov <ivan(a)main.uusia.org> wrote: "SL" == Sidney Lambe <sidneylambe(a)nospam.invalid> writes: [...] SL> Bash: SL> (( $aa + $bb = cc }} SL> if [ "$cc" -lt 10 ] SL> then cc=$(echo "$cc" | sed 's/.*/0&/') SL> fi SL> There are surely better ways to... 2 Feb 2010 15:48
First  |  Prev |  Next  |  Last
Pages: 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52