Search Results

Search: Posts Made By: Praveen Pandit
2,452
Posted By Scrutinizer
Try creating a reverse list first of files to be...
Try creating a reverse list first of files to be deleted:
ls | comm -23 - textfile
The files in "textfile" need to be in sorted order
Then check if it is correct and then delete those files...
...
7,136
Posted By MadeInGermany
There are different "locale"s, that can have...
There are different "locale"s, that can have different character sets.
Print the current locale:
locale
List the installed locales:
locale -a
Set a UTF (multibyte) locale, for example:
export...
7,136
Posted By RudiC
You must be kidding! Where in your feed.txt file...
You must be kidding! Where in your feed.txt file are the header columns updated_at and created_at? And, you specified one column to find only! What a waste of time!

---------- Post updated at...
7,136
Posted By gull04
Hi, To utilise the method that I've used...
Hi,

To utilise the method that I've used you'll have to increase the number of column variables and loops to match your first input file. Which is more than the four or so that I was expecting, I...
7,136
Posted By MadeInGermany
awk ' BEGIN { FS=OFS=";" } NR==FNR { #...
awk '
BEGIN { FS=OFS=";" }
NR==FNR {
# 1st file: build hd[]
for (i=1; i<=NF; i++) { hd[$i] }
next
}
FNR==1 {
# header of 2nd file: if in hd[] note that column in col[]
for (i=1;...
7,136
Posted By gull04
Hi, If you want to delete the additional...
Hi,

If you want to delete the additional data from the new input file, what is the reason for capturing what the additional column headings were?

Regards

Dave

---------- Post updated at...
7,136
Posted By RudiC
For which I presented a proposal that works with...
For which I presented a proposal that works with the data you presented.
7,136
Posted By RudiC
Take this as a starting point:awk -F\; 'NR==FNR ...
Take this as a starting point:awk -F\; 'NR==FNR {split ($0, HD)
DEC=$0
next
}
...
9,101
Posted By RudiC
Not sure I understand your problem. Are...
Not sure I understand your problem. Are respective file and folder named identically (except for the .csv extension)? Use ls | tail -2 or ls | sort -r | head -2.
9,101
Posted By Don Cragun
If they are always different, why are the all the...
If they are always different, why are the all the same in your example??? Why do you even have directories if all of your directories and *.csv files are all in a single directory?

Is "the...
9,101
Posted By Don Cragun
This is totally untested, but if you want today's...
This is totally untested, but if you want today's files, I think you want something like:
latest_dir=$(date "+%Y%M%D-*[0-9]")
host="put remote hostname here"
ftp <<<-EOF
ftp $host
cd...
1,728
Posted By Don Cragun
This should give you a template you can use to...
This should give you a template you can use to get the variables you want. I use the Korn shell, but this will work with any shell that recognizes the shell variable expansions required by the POSIX...
1,650
Posted By balajesuri
filename='.thumb-320.jpg' filename=${filename#.}
filename='.thumb-320.jpg'
filename=${filename#.}
Showing results 1 to 13 of 13

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