Search Results

Search: Posts Made By: verdepollo
6,019
Posted By Chubler_XL
I'm guessing that all the appliance names do not...
I'm guessing that all the appliance names do not start with the text "app".

A bit more of a generic approach might be to treat lines with only one field as an appliance name (assuming here that...
6,019
Posted By jim mcnamara
Using awk - $ awk '/^app/ {pre=$0; next} ...
Using awk -

$ awk '/^app/ {pre=$0; next}
length($0) {print pre " " $0 } ' filename > newfile

$ cat newfile
applianceName1 1.0 123 some
applianceName1 5.3 456 random
applianceName1 3.5...
3,769
Posted By Corona688
I don't think wall takes a file -- it'd just...
I don't think wall takes a file -- it'd just print 'duplex_error' instead of printing the message from that file.

xargs wall < duplex_error
143,583
Posted By complex.invoke
Tetris Game -- The Art Of Shell Programming
GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages (https://github.com/deepgrace/tetris)

Usage: bash Tetris_Game [ <runlevel> [ <previewlevel> [ <speedlevel> [...
Forum: SuSE 10-06-2011
5,914
Posted By Corona688
If it says it was in use I suspect it meant it; ...
If it says it was in use I suspect it meant it; you might have had things mounted, etc, preventing it from unloading that module.
Forum: Solaris 12-15-2010
3,768
Posted By DukeNuke2
boot from an external media and check your...
boot from an external media and check your filesystems and the configuration of /etc/vfstab and the log files for error messages.
22,712
Posted By methyl
Please state what Operating System you have and...
Please state what Operating System you have and describe your hardware configuration including memory and discs and enything relevant to performance.

Is it safe to assume that the filesystem will...
22,712
Posted By citaylor
When you say somewhere else, I guess you mean a...
When you say somewhere else, I guess you mean a different server ?
I imagine the "gzip" and the ssl encryption in scp are both adding quite an overhead.

There is a tradeoff between network...
22,712
Posted By jim mcnamara
Here is your problem - you are reading millions...
Here is your problem - you are reading millions of directory entries and writing to a tarfile.
Then you copy the tarfile somewhere, then extract. Tons of I/O writing the tarball, I/O copying it, ...
6,256
Posted By jim mcnamara
Really large directories (lots and lots of...
Really large directories (lots and lots of entries) are very slow to read. Use the filesystem stats:

/* ffcnt.c fast file count
print the number of files in a filesystem
usage: ffcnt...
6,256
Posted By achenle
This might be faster: #include <stdio.h> ...
This might be faster:


#include <stdio.h>
#include <ftw.h>

static long file_count = 0L;

int ftw_callback( const char *path, const struct stat *sb, int flag )
{
if ( FTW_F == flag )
...
6,256
Posted By Corona688
Anything that counts files will have to do so the...
Anything that counts files will have to do so the same way: checking directory entries. So there's no special "faster ls". (If there was, why wouldn't we use it for everything?)

If you can...
Forum: Solaris 10-14-2010
19,604
Posted By jlliagre
There is no "zpool rename" command. A pool need...
There is no "zpool rename" command. A pool need to be reimported to have its name changed. You can change its file systems mountpoints but they must not be in use for the command to succeed so that...
Showing results 1 to 13 of 13

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