Search Results

Search: Posts Made By: balajesuri
Forum: Web Development 04-22-2019
1,403
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...
230
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...
616
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 ;...
1,787
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...
1,975
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 ----------...
5,197
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...
1,674
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:
...
6,518
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 -)
795
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...
709
Posted By Yoda
How about using absolute path?
How about using absolute path?
4,281
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...
1,164
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,108
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...
23,094
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...
1,118
Posted By Scrutinizer
How about: left=${A[@]#"${A[0]}"} if [ -z...
How about:
left=${A[@]#"${A[0]}"}
if [ -z "$left" ]; then
echo Ok
fi
6,445
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,084
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...
2,832
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...
11,152
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,...
3,688
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,049
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,305
Posted By Scrutinizer
@balajesuri: from man bash:
@balajesuri: from man bash:
30,381
Posted By Scrutinizer
@balajesuri: -a is also the equivalent of -e in...
@balajesuri: -a is also the equivalent of -e in older Korn Shells.
1,543
Posted By ctsgnb
sed 's/[^,]*,//5' yourfile
sed 's/[^,]*,//5' yourfile
2,113
Posted By agama
Only one sed is really necessary: sed...
Only one sed is really necessary:


sed 's/mars.*//; T; q;' input-file


If a substitution isn't made the T command causes the rest of the script to be skipped. When a substitution is made, the...
Showing results 1 to 25 of 25

 

Featured Tech Videos

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