36,111 reputation
440107
bio website
location Living in Marseille, France
age 34
visits member for 2 years, 1 month
seen 4 hours ago

Elected moderator on Unix & Linux. Feel free to @ping me in chat if there's anything I can help you with.

I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Arch and for the past few years Linux Mint Debian Edition (which is basically Debian testing but more green).

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


4h
revised How to copy or move files without being asked to overwrite?
added 85 characters in body
4h
answered Reindexing a large CSV file
4h
revised Extract csv files from path to multiple files in bash
rolled back to a previous revision
4h
revised Extract csv files from path to multiple files in bash
added 2 characters in body
4h
revised Extract csv files from path to multiple files in bash
rolled back to a previous revision
6h
revised “No such file” warning on terminal launch
added 1 character in body
10h
comment what is hexa dump and how to handle in unix?
If the problem is that the file is not using a true comma but some similar character, just copy the character from the file and run: sed 's/,/,/g' file > newfile where the 1st comma is the one you copied and the 2nd is the normal comma.
10h
revised Add leading zeros until all lines before the comma consist of nine characters and subsequently insert a character every three digits using sed
edited body
11h
comment what is hexa dump and how to handle in unix?
Welcome to Unix & Linux! Please edit your question to add extra information, it is hard to read and easy to miss in the comments. That said, we need to see the file and your desired output as well as the exact command you tried and the wrong output produced. Your last paragraph is very hard to understand, could you rephrase it? What does hexdump have to do with this? You think you have extra characters in your file?
11h
comment Add leading zeros until all lines before the comma consist of nine characters and subsequently insert a character every three digits using sed
Ha! We had basically the exact same perl approach :) Clever use of chop though.
11h
answered Add leading zeros until all lines before the comma consist of nine characters and subsequently insert a character every three digits using sed
11h
comment Add leading zeros until all lines before the comma consist of nine characters and subsequently insert a character every three digits using sed
Nice, +1. Could you break that down and explain how it works? Also, why is the -e needed?
11h
comment Add leading zeros until all lines before the comma consist of nine characters and subsequently insert a character every three digits using sed
One more thing, do you want that field to always be 10 characters long or can it be longer? I mean, do you need it to have a specific length or do you need to parse the file, find the longest 1st field and pad the rest to that length?
11h
comment Clone directory tree structure and copy files to the corresponding directories modified after a specific date
@Gilles I know dammit! I even read it and upvoted it yesterday. Hence the facepalm.
11h
revised Clone directory tree structure and copy files to the corresponding directories modified after a specific date
added 408 characters in body
11h
comment Clone directory tree structure and copy files to the corresponding directories modified after a specific date
@Gilles that was my first thought as well but for some reason, using -exec sh -c '' did not occur to me so I couldn't figure out how to create the target dirs. Facepalm.
11h
revised Clone directory tree structure and copy files to the corresponding directories modified after a specific date
Added the destination so you don't create the dirs in the source.
15h
comment Linux: Locating text file from a string input
man command will give you the manual of command. Grep is a command that searches for strings within files, not sure how it's relevant here. You are looking for locate or find.
16h
comment Connecting Linux Mint to WiFi network
@GotGaming_ great, so it's working. Now you need to connect to a network. You should see a little icon on the task bar (NetworkManager) that should let you choose a network to connect to. Also right click on the icon and make sure that wireless is on.
16h
comment Connecting Linux Mint to WiFi network
@GotGaming_ did you reboot? Did the iwconfig output change?