lftp delete multiples files with Bash
I try to create a script who delete all the olds files except the three more recent files on my backup directory with lftp. I have try to do this with ls -1tr who return all the files in ascending …
Start Learning to Code
I try to create a script who delete all the olds files except the three more recent files on my backup directory with lftp. I have try to do this with ls -1tr who return all the files in ascending …
I am trying to get the read() system call to read my file line by line and reverse each line to stdout. My issue is getting read() to read my file line by line because normally it just reads the whole …
Straight up: No, it’s not the “usual question” and yes – I’ve read the other StackOverflow articles regarding this topic and they didn’t help me. If you create the array within a file and look at the …
How to store a password containing # in a config file .I have a config file of frmat .cfg and when i try to store password finally#! in the variable password the #! gets commented.I am using python to …
I want output of “jobs -l“ written to a file and the jobs -l command is written inside a shell script program “jobs -l“ command works when simply given in terminal even it prints to file “jobs -l >…
I need a linux command that print on shell all string of specified length contained in a specific file.
What is the best way to read name and its value from a configuration file in c programming? Sample configuration file: NAME=xxxx AGE=44 DOB=mmddyyyy WORK=zzzz This is the code which I am using. It …
In my application, I need to write a file.json in /myserver/home/www/var/myApplicationFolder/file.json but it does not work. (there is no problem in the code as it has already been tested) I think it …
Background Our kernel level program invokes a process in user space for making some decisions on the basis of values in a file. The user space program is a short lived process that compares value …
How do I calculate the sum of numbers from a .txt file? Data in file is formatted as: 7 8 14 18 16 8 23 … I read the data from the file and assign every line value to ‘line’ vatiable, but I want …