Search Results

Search: Posts Made By: balajesuri
Forum: What is on Your Mind? 02-19-2020
20,173
Posted By Neo
Milestone: Users Answer Over 100,000 Computer Trivia Questions
Today marks another milestone (https://www.unix.com/trivia_stats.php) in the computer trivia app:

100,000 Computer Trivia Questions Answered by Users

Some notes to mention at this milestone:
...
Forum: What is on Your Mind? 12-24-2019
7,729
Posted By Neo
Computer Trivia Feature Tops 50,000 Questions Answered
Just noticed that our successful computer trivia feature (stats here) (https://www.unix.com/trivia_stats.php) has surpassed over 50,000 questions answered by users:
...
Forum: Web Development 04-22-2019
11,422
Posted By Neo
Hi Ravinder, It seems, at least based on...
Hi Ravinder,

It seems, at least based on your posts, that you are still thinking about web development in terms of the "obsolete" or more politely the "legacy" or "original" model of the web where...
1,002
Posted By bakunin
The thread as a whole (at least my following...
The thread as a whole (at least my following post) might be suited better to the Lounge part of the forum. Depending on which direction the following takes i might transfer it to there eventually but...
1,307
Posted By drl
Hi. I didn't look at the entire code, but it...
Hi.

I didn't look at the entire code, but it seems to be a rule in bash, ksh, zsh, and dash:
#!/usr/bin/env bash

# @(#) s1 Demonstrate placement of function definitions.

LC_ALL=C ;...
7,335
Posted By Corona688
GNU date can be used more simply than that with...
GNU date can be used more simply than that with its -r reference file option:

DT=$(date -r summary_file.sql +"%y/%m/%d %H:%M:%S")

GNU date might be available on some Solaris as gdate or...
3,565
Posted By RudiC
man grep:So Corona688's proposal should be...
man grep:So Corona688's proposal should be slightly modified likeecho "ABC,123" | awk '$0 ~ "(^|[^A-Za-z0-9_])"P"($|[^A-Za-z0-9_])"' P="ABC"
ABC,123
---------- Post updated at 10:13 ----------...
21,286
Posted By Don Cragun
For a US English translation of the integers in...
For a US English translation of the integers in the range from 0 up to and including 999999999999999999999999999999999999 into ordinal numbers, you could try something like:
#!/bin/ksh
awk '
BEGIN...
3,702
Posted By cfajohnson
Rather than whereis, use type; It tells you what...
Rather than whereis, use type; It tells you what the shell will actually use:


$ type [
[ is a shell builtin


With the -a option, it gives all the possible commands that could be executed:
...
11,665
Posted By jim mcnamara
Hmm. try this - cd /XYZ mkdir /ABC find...
Hmm. try this -

cd /XYZ
mkdir /ABC
find . -type f -mtime +14 |
while read fname
do
tar cf - $fname
done | (cd /ABC && tar xf -)
1,306
Posted By bakunin
Dear Users of this Board! i would like to...
Dear Users of this Board!

i would like to thank all the good and knowledgeable experts - you - for your ongoing support. You have helped countless people with your expertise and the willingness to...
1,144
Posted By Yoda
How about using absolute path?
How about using absolute path?
7,389
Posted By alister
In-place move to the top of the file of the final...
In-place move to the top of the file of the final 5 lines without using any variables or temp files:

dd if=/dev/null of=fname bs=1 seek=$(tail -n5 fname | tee >(wc -c) 1<>fname)

Note: The...
2,391
Posted By Scott
If you need to write the password to a file as...
If you need to write the password to a file as "*****" just write a literal "*****" to the file. So long as you know there's no way to read it back as the entered password!

Here's something to...
1,786
Posted By Don Cragun
In any version of ksh newer than November 16,...
In any version of ksh newer than November 16, 1988, you can also use:
for ((i=2; i<=6; i++))
do <statements>
done
Although not available in the original 1993 version of ksh, the:
for ctcol in...
32,726
Posted By Don Cragun
Not quite. The first time through this loop with...
Not quite. The first time through this loop with the sample data specified by the OP would try to move /Data/Data/abc.csv to /archive/Data/abc_timestamp.csv.

I would tend to parameterize it a...
2,012
Posted By Scrutinizer
How about: left=${A[@]#"${A[0]}"} if [ -z...
How about:
left=${A[@]#"${A[0]}"}
if [ -z "$left" ]; then
echo Ok
fi
10,835
Posted By sv0081493
Hi Balajesuri, Sorry if anything goes wrong...
Hi Balajesuri,

Sorry if anything goes wrong from my side I am new to this forum.. Yes I accept i should mention that but forgot to mention.I will take care of these things in future posting...
Forum: What is on Your Mind? 08-05-2012
2,723
Posted By Neo
We definitely plan to keep the option to disable...
We definitely plan to keep the option to disable the toolbar and also plan to add more options to disable other features when members think important.

Based on the various forums I visit, we are...
3,744
Posted By Scrutinizer
Hi pravin, The '-flag is not in the POSIX...
Hi pravin,

The '-flag is not in the POSIX specification of the printf utility itself:printf utility: extended description...
15,859
Posted By itkamaraj
$ cat one.pl #!/bin/perl use Time::Local; ...
$ cat one.pl
#!/bin/perl
use Time::Local;
my $date = $ARGV[0];
$date =~ s/\s+$//;
$date =~ s/^\s*//;
my ($year, $month, $day) = unpack "A4 A2 A2", $date;
eval{
timelocal(0,0,0,$day,...
4,613
Posted By methyl
[ $(du -b archive.tar | awk '{print $1}') -gt ...
[ $(du -b archive.tar | awk '{print $1}') -gt 1600000000 ] && echo "file size is high" || echo "file size is low"

1) The du command posted gives the result in 512 byte blocks.
2) The -b...
1,684
Posted By Scrutinizer
What does $LOG_DIR/lastrun contain ? -- ...
What does $LOG_DIR/lastrun contain ?

--
Actually, POSIX compliant shells should not require dollar signs when using integers in an arithmetic expansion:


Shell Command Language: 2.6.4...
2,847
Posted By Scrutinizer
@balajesuri: from man bash:
@balajesuri: from man bash:
38,792
Posted By Scrutinizer
@balajesuri: -a is also the equivalent of -e in...
@balajesuri: -a is also the equivalent of -e in older Korn Shells.
Showing results 1 to 25 of 27

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