Search Results

Search: Posts Made By: tayyabq8
8,153
Posted By RudiC
OK, add sub (/_0+/, "_", FNN) just below the...
OK, add sub (/_0+/, "_", FNN) just below the first gsub.
8,153
Posted By RudiC
Would it suffice to "anchor" the gsub search...
Would it suffice to "anchor" the gsub search pattern likegsub (/^0+|.jpg/, "", FNN)? Be aware that the files' sequence number will have leading zeroes, then.
8,153
Posted By MadeInGermany
The probelm with a *${var}_* glob is that it is...
The probelm with a *${var}_* glob is that it is missing a leading anchor.
E.g. $var==2795 will match 002795_001.jpg and 012795_001.jpg :(
Reason enough to go for the less efficient but correct `ls...
8,153
Posted By RudiC
No surprise. Your post #1 input sample provided...
No surprise. Your post #1 input sample provided the wrong structure, contained wrong data, and the sample file names didn't reflect reality either. What would you expect? With your "revised" data and...
8,153
Posted By Scrutinizer
Here is another example you could try, all in...
Here is another example you could try, all in bash shell without external utilities or subshells except for the mv command, so it should be reasonably quick.

#!/bin/bash
oldIFS=$IFS
while...
8,153
Posted By MadeInGermany
Here is a standard shell script. It does not...
Here is a standard shell script. It does not remove the .jpg extensions.
It only echoes things, so you get an idea what it could do.
#!/bin/sh
while IFS="," read f_reg vin s_id rest
do
# do...
8,153
Posted By RudiC
Try awk ' NR == 2 {("ls -x *" $3 "*") |...
Try
awk '
NR == 2 {("ls -x *" $3 "*") | getline L
gsub (/0+/, "", L)
gsub ($3, $2, L)
gsub (/[ ]+/, ",", L)
$0 = $0 "\t" L}
1
' file
Full...
Forum: War Stories 02-15-2015
6
5,789
Posted By bakunin
This is because latin nouns ending in...
This is because latin nouns ending in "-<vowel>-x" are of the third declension (consonantic) and the nominativus pluralis is "-(i)ces". For instance: "vortex"-> "vortices", "codex" -> "codices",...
Forum: War Stories 05-12-2013
13,950
Posted By bakunin
First observation: sh!t happens! That is a...
First observation: sh!t happens! That is a proven, reliable fact and an environment which can't cope with that is designed wrongly from the start. If you need a service to be not disrupted you...
Forum: War Stories 02-08-2012
21,423
Posted By Neo
I agree with zxmaus and the old saying: "No...
I agree with zxmaus and the old saying:

"No good deed goes unpunished."

When in a political (territorial) situation as described; just fix the problem and don't tell anyone you fixed it, since...
Forum: War Stories 02-07-2012
21,423
Posted By zxmaus
so you learned your lesson: if you fix things...
so you learned your lesson: if you fix things that are broken but not owned by you - don't tell anyone :)
Forum: Solaris 12-06-2010
3,344
Posted By DukeNuke2
if you need a sparc system (which 2, 3 and 4 are...
if you need a sparc system (which 2, 3 and 4 are not) and a v880 is for a 10 times bigger business you should maybe go for a M3000 system. the bigger M series server might be a little oversize.
if...
Showing results 1 to 12 of 12

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