Search Results

Search: Posts Made By: junior-helper
Forum: Debian 06-28-2017
7,940
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,494
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,740
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,740
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
17,013
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...
4,422
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...
2,289
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,310
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
Forum: HP-UX 12-18-2014
3,921
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,382
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,723
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,589
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
10,683
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,380
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...
1,895
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,533
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 (}'}')
4,354
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...
7,380
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...
7,380
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...
1,081
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
6,342
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...
Forum: Red Hat 12-09-2014
14,120
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,091
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,091
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...
1,609
Posted By junior-helper
In a nutshell: It talks to the Oracle DB and...
In a nutshell: It talks to the Oracle DB and redirects all output to a logfile.
# delete logfile
rm -f $runLog

# connect to Oracle database
sqlplus $CONNECT_STRING @$sql_filename...
Showing results 1 to 25 of 114

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