Search Results

Search: Posts Made By: vinay4889
3,919
Posted By anbu23
$ alias NOW='echo [$(date +"%Y-%d-%m %r")]' $...
$ alias NOW='echo [$(date +"%Y-%d-%m %r")]'
$ NOW
[2013-22-07 3:31:05 PM]
$ NOW
[2013-22-07 3:31:07 PM]
3,919
Posted By vidyadhar85
looking at your req i suggest you using or...
looking at your req i suggest you using
or else it should be

vidya> v=date
vidya> echo `$v`
Mon Jul 22 12:00:44 CEST 2013
vidya> echo `$v`
Mon Jul 22 12:00:48 CEST 2013
vidya> echo `$v`...
23,616
Posted By Chubler_XL
It's amazing it can process files 20Gb in size,...
It's amazing it can process files 20Gb in size, considering the average HDD size back then was less than 240MB
23,616
Posted By Corona688
You have a 20-year-old version of gzip.
You have a 20-year-old version of gzip.
23,616
Posted By jim mcnamara
You may have a 32bit implementation of gzip -=...
You may have a 32bit implementation of gzip -= the file command will show something like below - note the text in red. I would guess 32bit in your case.

file /usr/bin/gzip
/usr/bin/gzip: ELF...
23,616
Posted By jim mcnamara
From gzip documentation - Compression is...
From gzip documentation -
Compression is always performed, even if the compressed file
is slightly larger than the original. The worst case expan-
sion is a few bytes for the gzip...
23,616
Posted By Corona688
There is of course some overhead but very little...
There is of course some overhead but very little since, as you noted, it's smart enough to switch algorithms when faced with a file that compresses badly. It's much better than some older...
23,616
Posted By Corona688
gzip won't ever make a file that much larger than...
gzip won't ever make a file that much larger than it started, so it must be meaning the opposite of what you think.
6,571
Posted By bakunin
To install "uuencode" install the package...
To install "uuencode" install the package "bos.net.uucp" (should be on first CD). "lftp" is free software and probably not available in binary form for AIX. Download it, compile it, package it to a...
18,092
Posted By Chirel
Hi Maybe that's what you mean ? $...
Hi
Maybe that's what you mean ?


$ Table_1=tbl1_c1
$ Table_2=tbl2_c1
$ Query='$Table_1 Join $Table_2'
$ echo $Query
$Table_1 Join $Table_2
$ eval echo $Query
tbl1_c1 Join tbl2_c1
18,092
Posted By DeCoTwc
I'm not quite sure what the issue you're having...
I'm not quite sure what the issue you're having is. It seems the solution Bartus posted should work. For funsies though, you could probably do it like this:

(19:12:02\[root@DeCoBoxOmega)...
18,092
Posted By bartus11
This won't work for you? Table_1=tbl1_c1 ...
This won't work for you? Table_1=tbl1_c1
Table_2=tbl2_c1
Query="$Table_1 Join $Table_2"
echo "$Query"
14,068
Posted By Corona688
I don't think those work inside [] And...
I don't think those work inside []

And anyway, your expression is simple enough there's little need.
14,068
Posted By Corona688
find . '(' -name '*_[0-1][0-9][0-3][0-9].c' -o...
find . '(' -name '*_[0-1][0-9][0-3][0-9].c' -o -name '*_[0-1][0-9][0-3][0-9].cpp' ')'
14,068
Posted By Chirel
Hi find . | egrep...
Hi


find . | egrep '.*_[0-1][0-9][0-3][0-9].(c|cpp)$'
14,068
Posted By drl
Hi. Note that with the regex option in find,...
Hi.

Note that with the regex option in find, one needs to match the entire path. Matching arbitrary strings with a regex requires .*, not a stand-alone *:
-regex pattern
...
14,068
Posted By bakunin
You probably confuse "regexps" with "shell...
You probably confuse "regexps" with "shell regexps" (aka "file globs"). "Regexp" is what commands like sed, awk, grep, etc. use. The shell (and hence "find" uses only "file globs", which are a lot...
8,198
Posted By Corona688
Shell is shell, awk is awk, they are independent...
Shell is shell, awk is awk, they are independent and unrelated. Using ksh has nothing to do with whether you get gsub.

On some systems, especially Solaris, you need to use nawk to get gsub.
8,198
Posted By complex.invoke
}' RS=";" ${1} The font in red defines the...
}' RS=";" ${1}

The font in red defines the Record Separator
I'm not familiar with ksh,sorry
8,198
Posted By complex.invoke
[root@node3 ~]# cat infile A|123|446pr; ...
[root@node3 ~]# cat infile
A|123|446pr;
B|46|hello89
krp;
C|78|ystp90
67;
D|ga|456;
[root@node3 ~]# cat 2D_awk_array.sh
awk -F\| '
{
gsub(/\n/,"",$0)
if (max_nf<NF) ...
8,198
Posted By rbatte1
What are you calling the awk with? Many shells...
What are you calling the awk with? Many shells only support single diminsion arrarys, i.e. a list. If you have few enough items, then you might get away with using a formula to convert your 2D plan...
30,095
Posted By jlliagre
One common way is to run the script...
One common way is to run the script (https://www.unix.com/man-page/OpenSolaris/1/script/) command before launching the commands you want the output to be both displayed and saved.

eg:

$ script...
30,095
Posted By Corona688
You cannot print to one file and get it to appear...
You cannot print to one file and get it to appear in two places without using an external program like tee or the like to make one line print twice. So not easily, not cleanly, and the output you...
30,095
Posted By Corona688
Yes, you can. The exec builtin can redirect file...
Yes, you can. The exec builtin can redirect file descriptors for an entire script, just like you'd redirect for external programs.

#!/bin/ksh

# Redirect the current stderr into stdout
exec...
Forum: Programming 10-12-2011
20,501
Posted By Corona688
First off, exec is nothing like the first two. ...
First off, exec is nothing like the first two. exec does a variety of things from executing a command without returning(the shell is replaced by the new command), as well as opening/closing files.
...
Showing results 1 to 25 of 26

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