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

csv

Truncate an CSV column using CsvKit

by IT Nursery

I didn’t think it was directly possible with CSVKit, until shown otherwise. However, I do know that it can be done with Miller: … Read more

Tags csv, csvkit

sed/awk to remove double quotes ” that are inside of curly braces {}

by IT Nursery

Try this using sed: $ sed -r ‘ :L; s/(\{[^”}]*)”(([^”}]*”)*)([^”}]*\})/\1\2\4/g; tL; ‘ file

Tags awk, csv, delete, sed

How can SQLite command “.import” read directly from standard input?

by IT Nursery

How can SQLite command “.import” read directly from standard input?

Tags bash, csv, io-redirection, shell-script, sqlite

Adding suffix to filename during for loop in bash

by IT Nursery

Adding suffix to filename during for loop in bash

Tags bash, csv, for, rename

adding an empty first line inside csv file

by IT Nursery

Use sed as follows to insert a blank line in the beginning of a file x.txt: sed ‘1 i \ ‘ x.txt

Tags csv, echo

How to join two csv with same number of rows

by IT Nursery

How to join two csv with same number of rows

Tags awk, csv, linux, sed

Replacing the values in one file with the values in another file in bash

by IT Nursery

Some notes: Bash is a terrible language for database emulation. Are you sure you cannot use a relational database for this? Avoid useless … Read more

Tags bash, csv, shell-script, text-processing

How to use Unix Shell to show only the first n columns and last n columns?

by IT Nursery

perl: echo a,b,X,X,X,X,c,d | perl -F, -slane ‘print join “,”, @F[0..$n-1, -$n..-1]’ — -n=2 a,b,c,d

Tags awk, csv, cut, sed

Executable common files (*.pdf, etc.)

by IT Nursery

The green in your ls display means that the files have execute permissions, which doesn’t necessarily mean that they can be executed in … Read more

Tags csv, executable, file-types, pdf

Replace only first instance of a character

by IT Nursery

Pure bash solution while IFS=\, read -r a b ; do echo “$a;$b” ; done <file.csv Or just for fun paste -d\; <(cut … Read more

Tags csv, sed, text-processing
Older posts
Page1 Page2 … Page32 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