Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

files

bitwise-OR 2 binary files

by IT Nursery

Python with open(‘file1’, ‘rb’) as in1, open(‘file2’, ‘rb’) as in2, open(‘outfile’, ‘wb’) as out: while True: bytes1 = in1.read(1024) bytes2 = in2.read(1024) if … Read more

Tags data-recovery, ddrescue, files

Emulating “while IFS= read -r line” in bash’s C-style for loop

by IT Nursery

I do fully agree with @ilkkachu here. But FWIW, to be able to use that read command as part of the for condition, … Read more

Tags bash, command-line, files, ksh, scripting

List files created on Sundays

by IT Nursery

In *nix operating systems there is no way to get the file creation date. mtime will give you last modification time and atime … Read more

Tags bash, date, files, find, shell

Replace a string in a file and overwrite the file

by IT Nursery

Replace a string in a file and overwrite the file

Tags bash, files, text-processing

Asking the user to select two items (which file & file format) before clicking download button

by IT Nursery

This situation is exactly the same as selecting variations in an online store before shopping: the client select the variation type first and … Read more

Tags download, file-extension, file-input, files, users

Can a file be edited with the ‘write’ permission on it but not on its parent directory?

by IT Nursery

As the other answers have stated: Yes, the file can be edited/modified.  And, at the risk of splitting hairs, allow me to point … Read more

Tags directory, files, permissions

Delete all but the most recent n file for each group of files that share the same prefix in a directory

by IT Nursery

As requested, this answer tends towards “robust and safe” as you requested, as opposed to quick & dirty. Portability: This answer works on … Read more

Tags bash, files, shell-script, timestamps

CLI equivalent of Gnome’s recent files feature

by IT Nursery

Ideally, the CLI equivalent would do it via gvfs schemes so as to be able to use the recent:/// location as an argument, … Read more

Tags directory, files, shell-script

Need design that allows users to pick from existing documents

by IT Nursery

You’ll want to figure out if your users are expecting to search or browse and design accordingly. If a user knows a document … Read more

Tags document, files, organization, picker, uploading-documents

Is there a way to tell the system to keep a folder to reside in memory?

by IT Nursery

Normally the system puts everything into cache as long there is free memory available, so normally this step does not seem to be … Read more

Tags cache, files, linux, memory
Older posts
Page1 Page2 … Page107 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery
x
x