I was playing arround with conky and wanted to show an animation..So I took a compdead.gif and used this line to grap all stills from it:gifsicle --unoptimize --explode /home/pieter/temp/compdead.gif --output /home/pieter/temp/temp.gifAbove line creates images in /temp/ that look like this:temp.gif.001
temp.gif.002
temp.gif.003
temp.gif.004
temp.gif.005
..
temp.gif.236
temp.gif.237
temp.gif.238The
I have a large Postgres database on Ubuntu 12 (+100GB). I have an old, SATA-based, spinning drive and a new SSD drive. I mainly do data analysis on Postgres (big, ugly select statements). I see a few options:
SSD for data and OS. Spinning for temp space.
SSD for data. Spinning for OS and temp space.
SSD for OS. Spinning for data and temp space.
I'm thinking that option #2 is the best.
Suppose I run the following command.
Code:
sgy@za-box:~$ cp -v .profile /data/ibook/sgy/misc/.profile-za-box
Now, I would like to perform the same operation but with file .inputrc.
Looks at the most efficient way to add up the column of data based off of the rows.
Random data
Name-Number-ID
Sarah-2.0-15
Bob-6.3-15
Sally-1.0-10
James-1.0-10
Scotty-10.7-15
So I would select all those who have ID = 15 and then add up total number
Code:
read - p "Enter ID number" Num
cut -d "-" -f 2-3 file.txt > temp.txt
awk -F "-" '/' $Num '/ {hour += $2
my Bit Rate change every second, is normal?bash -c 'while [ 0 ]; do \
echo $(date +%H:%M:%S) ": " $(iwconfig wlo1 | grep -iE "rate|retries");sleep 3; done'
01:10:57 : Bit Rate=13 Mb/s Tx-Power=20 dBm Tx excessive retries:5788 Invalid misc:298 Missed beacon:0
01:11:00 : Bit Rate=43.3 Mb/s Tx-Power=20 dBm Tx excessive retries:5806 Invalid misc:298 Missed beacon:0
01:
i have windows 64bit and downloaded ubuntu 64bit. i am trying to install it inside windows but unable to do so.
I have One file - temp.txt - which contains
ABCDF
PQRST
LMNOP
I tried this cut command
$ cut -c 2-5 temp.txt
BCDF
QRST
MNOP
output is right.
$ cut -c 1,2,3,4 temp.txt
ABCD
PQRS
LMNO
output is right.
But when I change sequence, meaning
$ cut -c 2-4,1 temp.txt
ABCD
PQRS
LMNO
above output displayed.
but logically output is
BCDA
QRSP
MNOL
so my question is how this happen
HI All,
I am using grep command to serach a pattern in a list of files and storing the output in a variable. Then i am applying some logic on that variable to get the required output.
I want to run a command and save its output and its exit code, in different files.
Here's what i am doing:
cmd.exe /C command 1> %TEMP%\output.log 2> %TEMP%\error.log && echo %ERRORLEVEL% > %TEMP%\status || echo %ERRORLEVEL% > %TEMP%\status
If i don't do output redirection (into %TEMP%\output.log and/or %TEMP%\error.log), then exit code is saved just fine.
However, when i r