Tag Info

New answers tagged

2

I am simply trying to convert a .txt file to a .csv, without losing the contents of that document You can just change the extension .txt into .csv. 'Comma separated value' files are just plain text files with the data columns separated by comma's (or ; or tab). 'txt' files are meant for text, and 'csv' files are ment for data storage, but it are both just ...


1

Assuming the output from your awk command is 1,2,3,5, you can do this: sed -n $(my_awk_commamd | sed 's/,/p;/g;s/$/p;/') data.txt The sed inside the $( command substitution converts 1,2,3,5 to the sed expression 1p;2p;3p;5p;, which is then interpreted by the outer sed over the data file. A unit test, replacing awk with a simple echo: $ sed -n $(echo ...


1

Another way is using sed with xargs. echo '1p;2p;3p;5p' filename | xargs sed -n Basically sed uses the format <line-number>p to display a line. You can separate several lines using ;.


3

Basically you can do something like eval $(echo sed $(for i in 1 2 3 5; do echo "-e ${i}p"; done) -n data.txt ) To read the line numbers from a file containing the numbers, separated by space, use eval $(echo sed $(for i in $(< line-numbers.txt); do echo "-e ${i}p"; done) -n data.txt ) In this case, you can use any command which produces a list of ...


3

On OSX you'll have to add an extra "-" echo "Masi,hello" | paste -sd, -


2

Not with paragraph styles, no. You can do this with a single cell table which can be inlined and have a left border style different to the others.


0

I think this might be because you and your daughter use the same Apple ID. Remove the ID in iMessage. get the same text if my doughter gets from her friend,she uses my Apple ID. How can I solve the problem All you need to do is to apply for a new ID for her on https://appleid.apple.com/.



Top 50 recent answers are included