Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: file

Linux

lftp delete multiples files with Bash

admin November 12, 2019

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 …

bashfilelftplinuxxargs
Linux

Reversing every line in file using read() system call

admin November 5, 2019

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 …

cfilelinux
Arrays

Is there a way to split up each line of a file into an element of an array | PHP

admin November 3, 2019

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 …

arraysexplodefilelinephp
Linux

How to store a word with # in .cfg file [closed]

admin August 17, 2019

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 …

filelinuxpython
Linux

jobs -l is not printing output to a file when written inside a script

admin May 5, 2019

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 >…

bashfilejobslinuxshell
Linux

Is there a linux command that shows string of specified length in a file?

admin April 5, 2019

I need a linux command that print on shell all string of specified length contained in a specific file.

filelinuxshellstring
Linux

Best way to read name value pair in c

admin March 29, 2019

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 …

cfilelinuxstring
Linux

Give access to my application to read/write a file on var/www

admin January 28, 2019

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 …

filelinuxserver
Linux

What should use mmap, malloc or File I/O

admin November 3, 2018

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 …

cfilelinuxmallocmmap
Arrays

Python: How do I calculate the sum of numbers from a file?

admin August 17, 2018

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 …

arrayscalculationfilepython

Posts navigation

Previous 1 2 3 … 12 Next
Privacy Policy