Skip to content

Renaming JSON files based on their contents

I have loads of geographical json files with date_geohash.json name format and I have to convert them to date_latitude-longotude.json format. For example I need to convert 2017-03-28_u13hhyn.json to 2017-03-28_N52.76-E1.62.json.   I’m trying to write a bash script to rename these json files using &#8216…

Anaconda for linux 32 bit OS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

How can I specify a regex in a zgrep/zcat command?

I want to find in a list of words, every words with a least 3 times the same letter in it. To achieve that I did .*(w).*1.*1.*1.* and you can test it here http://www.regexplanet.com/advanced/java/index.html but I don’t know how to put it in my zgrep command. How can I insert this regex in a zgrep comman…

How to use zgrep and regular expression?

I’m trying to do some research in a .gz file so I found out I should use zcat / zgrep now after a bit of research I can’t figure out how to use a regex with zgrep I tried to do it like this zgrep ‘[sS]{10,}’ a.gz but nothing comes out even if there are string of minimum 10 characters

C Linux Check free space in mount

When I running df -h I can see that in /dev I use 6M and the size is 40M , and Available size is 34M . How can I get this information with c code? Answer From here: Use the statvfs API: and the prototype of the statvfs is The results will be filled to the buf statvfs struct: The