Search Results

Search: Posts Made By: blastit.fr
1,072
Posted By blastit.fr
You should use either curl or wget . If you're...
You should use either curl or wget .
If you're not allowed to install such software, you should try perl with LWP.
See: A Simple way to download many web pages using Perl...
2,203
Posted By blastit.fr
A very short script : $awk -F'[/_]' -vOFS=/...
A very short script :
$awk -F'[/_]' -vOFS=/ '{$10=$10+0 ;print "http:","",$3,"report/latex",$10 ".pdf" }' urls.txt
http://xxx.xx.xxx.xx/report/latex/32.pdf...
3,616
Posted By blastit.fr
What a funny contest. On the same way : $...
What a funny contest.
On the same way :
$ awk 'FNR == 1 && NR != 1{last=NR-1}NR == FNR{next}FNR == 1 || FNR ==last{gsub(",",X)} 1 ' file.txt file.txt
3,616
Posted By blastit.fr
The shortest way : $ awk -v last=$(wc -l...
The shortest way :
$ awk -v last=$(wc -l <file.txt) 'NR==1 || NR==last{gsub(",","")}1' file.txt
1,510
Posted By blastit.fr
Hi The find tool is really the best one for...
Hi
The find tool is really the best one for such process.
See:
$find tmp/ -type f -name '*' -exec echo File name is {} \;

# creation of 2 empty files
$ touch tmp/fileone tmp/filetwo
$ find...
3,814
Posted By blastit.fr
Hi, See this sample running on one input...
Hi,

See this sample running on one input file :

$ cat cont1db.txt
size
waist-(on-half)
hip-(on-half)
inseam
CONTINUE
alt
14"
24-3/4"
34"
CONTINUE
axlt
15"
26-3/4"
34-1/2"
CONTINUE
1,199
Posted By blastit.fr
The shortest awk resolution: $ awk...
The shortest awk resolution:

$ awk '/ddd/{next}/aaa/,/fff/' data.txt
aaa
bbb
cccc
eee
ffff
2,242
Posted By blastit.fr
Another way is to considere any line whith no...
Another way is to considere any line whith no visible character as a paragraph separator.
Using blank as the default separator , the awk NF variable will by equal to 0 in case you have either blank...
1,736
Posted By blastit.fr
Sure. Your scripting shell might be ksh and...
Sure.
Your scripting shell might be ksh and your working shell bash.
You can change the shell in your script by adding this in first line

#!/bin/bash

# here comes your commands:
echo ...
3,861
Posted By blastit.fr
Why not using SQL
I don't know if it's really out of purpose , but you 'll get such result using a single table in SQL.
This is a complete demo using sqlite ( sqllite3 under CYGWIN on my Windows PC

This code is...
11,426
Posted By blastit.fr
This problem is only from the Excel side. If...
This problem is only from the Excel side.
If you simply create a sample excel file, with leading zeroes, they will disappears as useless in type number.
Then try to change the cells format to text...
3,715
Posted By blastit.fr
Maybe my suggestion is outside your main concern...
Maybe my suggestion is outside your main concern on temp files, but you can also try this.
Both input files should be sorted
$ join -t\@ -v1 incomplete.list source.list

join is a very...
Showing results 1 to 12 of 12

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