User Tools

Site Tools


data_transformation

Table of Contents

If you want to send us your comments, please do so. Thanks
More on comments


Data transformation

CommandEXplanationRemarks
cat file.txt | xargs -n 4 echoConcatenate every 4 lines on one line
for i in `cat dates.txt`; do \ 
month=`echo $i | cut -d "/" -f 1`; \
day=`echo $i | cut -d "/" -f 2`; \
year=`echo $i | cut -d "/" -f 3`; \
echo "$day-$month-$year" >> dates2.txt; \
done
dates.txt has on each line a date in the format month/day/year

HTML to text

  • html2text - an advanced HTML-to-text converter
  • cat index.html | w3m -dump -T text/html > index.txt

Display data

Graphs

trend . Best is to use a FIFO
This example does not use a FIFO

(while true; do ps -A | wc -l; sleep 1; done) | trend - 60x24

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
data_transformation.txt · Last modified: 12-07-2021 12:07 by wim