I have a text file filename for which I want to substitute a certain numerical string in row row_numby another one that starts with leading zeros. That row is: And I would like to substitute the last four digits so that the desired end result is: The command I am using is: The problem is that linux interprets…
Tag: linux
Loop to filter out lines from apache log files
I have several apache access files that I would like to clean up a bit before I analyze them. I am trying to use grep in the following way: I have several terms that I want to grep, so I am piping every grep action as follow: Until here my rudimentary script works as expected! But I have many apache
Execute mirror and mget lftp commands in bash script
Current code Objective Download all csv files and mirror my local directory folder with the remote server, so when the code is run again it won’t download a second file. Error received open: *.csv: Name or service not known Comments From what I understood of the lftp man page I should be able to get all…
shell linux don’t execute commande
I have this command and it works fine on shell. I want to run it with php but it does not work what i missed : edited : $arg=”arg1″; $arg2= “arg2”; after this change no error on output but still commande not executed edited : the original commande is like this : and i want to around th…
node script just stops
I have a very large multi section script with a LOT of loops and some recursion in it. When I run it on a Very Large dataset, the script will simply stop running. It stops with a 0 exit code. It VERY clearly does not actually finish running…it just…stops. What I’m looking for: Why would a sc…
Linux Process is live but associated jar is down [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago. Improve this question In Linux the process is showing but the jar which is up by the process showing as deleted ? …
YOCTO Change kernel version and select drivers
I am trying to compile a new Linux kernel obtained from https://github.com/qoriq-open-source/linux (version 4.9) for T1042D4RDB-64B embedded board using Yocto. It’s currently using 4.1.35-rt41. I followed these steps: bitbake virtual/kernel -c cleansstate bitbake virtual/kernel -c patch replacing git fo…
Trying to understand the amount of data transfered on wwan0?
I have linux system which is connected to the internet via an lte modem and I am communicating with it via modemManager. So I am having a little bit of difficulty in understanding the number of data bytes consumed. So according to modem manager. I am consuming 150 bytes of data to send a ping to opendns and I…
Add a job to linux cron list programmatically with Nodejs
I have a job with Nodejs that I want to do it each 30 minutes to scan the Database and Update Products Data in An Ecommerce API with my Nodejs Program, note that the Nodejs Program is serving an REST API (Backend) for a react js web application So I searched for that and I found that I can do
How to use Grep commands to find specific value in text file
I need to grep a file called daily_fails_count.csv but only find the number of failures. Inside that file is this, on a shorter scale: It’s format is “month,day,hours,failures.” It goes through all months. The last value is the number of failures found at that time. I know here it all says 0…