Search Results

Search: Posts Made By: junior-helper
Forum: Debian 06-28-2017
10,488
Posted By junior-helper
Great! Both commands worked. Thanks. Now I just...
Great! Both commands worked. Thanks. Now I just need to find out how to adjust the volume in the console :)
My window manager is XFCE4, somehow I can't find any simple and suitable application....
Forum: Debian 06-28-2017
10,488
Posted By junior-helper
Debian 8 (Jessie): Where are the sound settings?
Dear experts,
right now I'm watching a Youtube movie and the sound is on and at maximum in the browser.

On my Thinkpad T60 I have also pressed the volume up hardware button as often as possible....
3,741
Posted By junior-helper
Too pedantic, thus removed my contribution :cool:...
Too pedantic, thus removed my contribution :cool:


PLEASE watch your language!

Per our forum rules (https://www.unix.com/misc.php?do=cfrules), all users must write in English, use semi-formal...
2,822
Posted By junior-helper
#!/bin/bash count=1; tarray1=(); tarray2=() ...
#!/bin/bash

count=1; tarray1=(); tarray2=()

while IFS= read line
do
if [[ "$count" = "1" ]]; then
((count++)); oline1="$line"; tarray1=($oline1)

elif [[ "$count" = "2" ]];...
6,924
Posted By junior-helper
Why not use bash's special parameter #? ...
Why not use bash's special parameter #?
# Expands to the number of positional parameters in decimal.
Example:
#!/bin/bash

if [[ "$#" -ne "3" ]]; then
echo "Need 3 files, you...
17,669
Posted By junior-helper
In the meantime, you might want to try this......
In the meantime, you might want to try this... I'd like to hear from you if it works in general, even if you prefer the perl thingy :)
#!/bin/bash

header=(); values=(); start=0

while IFS=":"...
17,669
Posted By junior-helper
#!/bin/bash header=(); values=() while...
#!/bin/bash

header=(); values=()

while IFS=":" read var val
do
if [[ "$var" =~ "\"" ]]; then

var="${var//\"/}"; var="${var% }"
[[ "${#header[@]}" -eq "0" ]] && header=("$var") ||...
Forum: Linux 02-02-2015
4,251
Posted By junior-helper
456976 for i in {a..z}; do for j in...
456976

for i in {a..z}; do
for j in {a..z}; do
for k in {a..z}; do
for l in {a..z}; do
echo $i$j$k$l
done
done
done
done
7,302
Posted By junior-helper
It's simply a matter of taste. I used it to keep...
It's simply a matter of taste. I used it to keep the terminal clean(er) :)
Sometimes one just doesn't care about the output because we only rely on the exit status, like in this case.
Anyways,...
7,302
Posted By junior-helper
Try this (too) while true; do #infinite loop ...
Try this (too)
while true; do #infinite loop
if grep -v Processing status.txt &>/dev/null; then
echo Complete
exit
fi
sleep 600
done
18,194
Posted By junior-helper
Not sure if I understand correctly, but try ...
Not sure if I understand correctly, but try
<(ls -lh | sed 1d)

The sed command will remove the first line of the output produced by ls -lh

---------- Post updated at 09:38 PM ----------...
18,194
Posted By junior-helper
You forgot the < signs. They are mandatory. ...
You forgot the < signs. They are mandatory.

This is the same command in one line:
paste -d' ' <(du -hs * | awk -F'\t' '{printf "%8s\n", $1}') <(ls -lh | awk 'NR>1{for (i=6;i<=NF;i++) printf "%s...
18,194
Posted By junior-helper
paste -d' ' \ <(du -hs * | awk -F'\t' '{printf...
paste -d' ' \
<(du -hs * | awk -F'\t' '{printf "%8s\n", $1}') \
<(ls -lh | awk 'NR>1{for (i=6;i<=NF;i++) printf "%s ", $i; print ""}')The paste command lets the two input streams merge.

<(du -hs...
2,487
Posted By junior-helper
Obviously, the wildcard/star * won't expand...
Obviously, the wildcard/star * won't expand within quotes...

You could try
ls "/usr/NX/var/log/"*.logalso try
ls "/dir/with/s p a c e s/log"*.log # note this should list the files, you can't...
3,719
Posted By junior-helper
I bet it's a Solaris 10 system, because I get the...
I bet it's a Solaris 10 system, because I get the exact messages using default awk.

Try /usr/xpg4/bin/awk or nawk
5,070
Posted By junior-helper
RavinderSingh13, not bad :eek: +1 for this...
RavinderSingh13,
not bad :eek: +1 for this cheat :D:b:

I was thinking waaay too abstract:


get current year and month
decreasing month by 1 or setting month to 12 and descreasing year by...
3,393
Posted By junior-helper
# going in the tmp directory cd /tmp #...
# going in the tmp directory
cd /tmp
# creating sample directory tree
mkdir -p bhaskar/a/b/c/d/logs \
bhaskar/b/a/b/c \
bhaskar/c/a/b/logs \
bhaskar/d/a/b \
bhaskar/e/a \
...
5,070
Posted By junior-helper
Generally, it's doable, but not "in a command",...
Generally, it's doable, but not "in a command", though (imho). Your timestamps are not meaningful, at all, because there are tons of different timestamps. Please update your post with representative...
Forum: HP-UX 12-18-2014
5,260
Posted By junior-helper
I visited the URL you've posted...
I visited the URL you've posted (linuxfromscratch.org) and I saw that direct download link http://ftp.gnu.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2

If you leave out the archive name and go to GNU...
7,289
Posted By junior-helper
Try ssh gtint16 <<EOF echo "$hello" EOF ...
Try
ssh gtint16 <<EOF
echo "$hello"
EOF
(tested, worked for me)

Use ssh's -T option if you get a message like

and want to get rid of it.
6,997
Posted By junior-helper
If it's only 2 files, why not doing that...
If it's only 2 files, why not doing that manually?

Variant 1:
mv abc.log.1 abc.log.1_20141208
mv abc.log.2 abc.log.2_20141209
mv abc.log.1_20141208 abc.log.2_20141209...
2,853
Posted By junior-helper
Bullseye!! :cool: tcode-pdf.txt ...
Bullseye!! :cool:
tcode-pdf.txt
test-pdf.php@testid=4125
test-pdf.php@testid=4143
If you look at those pdf files, you'll notice how the question-mark turned to a at sign (@), it must have happend...
3,097
Posted By junior-helper
Try echo "some text with spaces" | sh -c 'sed...
Try
echo "some text with spaces" | sh -c 'sed -e "s/ //g"'
and/or
echo "some text with spaces" | sh -c 'sed -e 's/[[:blank:]]//g''
and/or
echo "some text with spaces" | sh -c "sed -e 's/ //g'"
...
2,853
Posted By junior-helper
Yes and no ;) (The output of head -3...
Yes and no ;) (The output of head -3 tcode-pdf.txt helped quite a lot, it indicates that the big awk command worked as expected)

You said
Can you please cd to that directory again and run ls |...
2,853
Posted By junior-helper
OK, I think I know what might be the issue. In...
OK, I think I know what might be the issue. In your posting #1 you said
So I'm suspecting that the new files (pdfs in this case) might have such extension too.
(Note: when I downloaded the files,...
Showing results 1 to 25 of 340

 
All times are GMT -4. The time now is 08:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy