Search Results

Search: Posts Made By: junior-helper
Forum: Debian 06-28-2017
7,886
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....
12,307
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") ||...
6,732
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,...
6,732
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
16,999
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,288
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,307
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
4,421
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...
Forum: HP-UX 12-18-2014
3,911
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...
2,376
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...
2,718
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'"
...
1,587
Posted By junior-helper
Try this (verbose) awk code: awk -F'\t' ' ...
Try this (verbose) awk code:
awk -F'\t' '
NR < 4 { print }
NR > 3 { $9="GG"; print }
' OFS='\t' file
1,892
Posted By junior-helper
s sed command: substitute Ram regexp Shyam...
s sed command: substitute
Ram regexp
Shyam replacement
g sed pattern flag: global substitution
-i sed command line option: "in place" editing

In other words, substitute every occurrence of...
2,527
Posted By junior-helper
Thank you, Don :b: Those are very useful...
Thank you, Don :b:
Those are very useful tips/hints and I will try to acquire them :cool:

PS: I think there are two typos in the 2 awk commands in the middle (}'}')
7,355
Posted By junior-helper
Not sure, I don't know you script and don't know...
Not sure, I don't know you script and don't know how you want to handle it exactly, but if you wanted to cat files already stored in LOG1 LOG2 and LOG3, (without doing the stunt with LOG I mentioned...
7,355
Posted By junior-helper
No. Let me explain that: It seems like you...
No. Let me explain that: It seems like you exported variables LOG1 LOG2 and LOG3, but here you are "catting" $LOG[123]. Most likely, LOG is not defined at all and hence empty, and only [123] remains...
1,078
Posted By junior-helper
Try this: while read number; do sed -n...
Try this:
while read number; do
sed -n ${number}p file1
done < file2
10,674
Posted By junior-helper
Try awk -F, '{ $3 =...
Try
awk -F, '{ $3 = substr($3,7,4)"/"substr($3,1,2)"/"substr($3,4,2); print }' OFS=, input.csv
7,355
Posted By junior-helper
In this specific case (only the required two...
In this specific case (only the required two files are in the directory)
cat * > mySingleLogfile.logshould do the thing. If there were other files than the two you want to merge, then...
4,352
Posted By junior-helper
Below is my awk + sort + awk approach. ...
Below is my awk + sort + awk approach.

Entries such as
cpq-media
cpq-telco
DSS-IPAD06
DSS-IPAD07
GSE-DocuSign
GSE-DocuSign1are considered "unclassified", because there is no "env"/number...
6,325
Posted By junior-helper
Why? In posting #1 you said you can install free...
Why? In posting #1 you said you can install free software and AFAIK plink is free software just like putty :confused:

Right. Maybe you will need to polish your syntax though.
plink -l username...
2,089
Posted By junior-helper
Is the current file size greater than 1 GB...
Is the current file size greater than 1 GB :confused: Maybe the current file size is less than 1 GB right now...

Run this command on the command line (not in script!) and see if it will work:...
2,089
Posted By junior-helper
Be patient bro, this is not a chat room ;) I...
Be patient bro, this is not a chat room ;)
I think you want something like this (untested)
#!/bin/bash

#moofwd-rt.log check
CHETAN='/Users/ajit'

if [ -a $CHETAN/chetan.log ];
then # file...
Forum: Red Hat 12-09-2014
14,116
Posted By junior-helper
Try to invoke your expect script like this, so...
Try to invoke your expect script like this, so that the first line in the script can take effect:
./sftp_upload.shIf you run it like sh sftp_upload.sh or sh -x sftp_upload.sh you are overriding that...
2,731
Posted By junior-helper
You're welcome! The name of the reference...
You're welcome! The name of the reference variable doesn't have to be ref though.

Of course it uses the command line argument, otherwise it would not show the content of the list1 variable.

$1...
Showing results 1 to 25 of 114

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