10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm on Ubuntu 14.04 and I manually updated my coreutils so that "tee" is now on version 8.27
I was running a script using bash where there is some write to pipe error at some point causing the tee command to exit abruptly while the script continues to run. The newer version of tee seems to prevent... (2 Replies)
Discussion started by: stompadon
2 Replies
2. Shell Programming and Scripting
Greetings,
It seems obvious to me that I am missing something here. I have the following:
cfDU ()
{
clear
printf "Calculating Sizes of Data In:"
while ; do
awk -v C=$(tput cup 1 0) -v B=$(tput el) '{split($2,a,"/")
print C B a}'
... (7 Replies)
Discussion started by: reid
7 Replies
3. Shell Programming and Scripting
Hello friends,
I want to run this code on every document in every sub-directory.
tr -d '\n' < MulitpleInput.txt | awk '{gsub(/\. /,".\n");print}' | grep “\
I tried several looping techniques but couldn't get it to run in this example. Any ideas?
Thank you (2 Replies)
Discussion started by: danbroz
2 Replies
4. Shell Programming and Scripting
I have been using the command tee to store the output to a file and also write on the terminal. However I would need to put the program in the background although I would still need to see the file being updated like it was doing when using tee.
Any suggestions on how to look at the log file... (3 Replies)
Discussion started by: kristinu
3 Replies
5. Shell Programming and Scripting
Hello,
I have a CSV-like dataset where some of the columns contain HTML snippets which I need to convert to XHTML. For any given snippet, I have a functioning config for the text processor 'tidy' such that
tidy -config tidy.cfg example.html
does the job I need done.
I would like to process... (10 Replies)
Discussion started by: bstamper
10 Replies
6. Shell Programming and Scripting
Someone recently advised me to use the tee command to write to standard out.
Why would you pipe your commands to
tee -a <filename>
rather than just using
>> <filename>
?
For example:
date|tee -a myfile
seems to be the same as
date >> myfile
Is there a benefit to... (5 Replies)
Discussion started by: fracken_toaster
5 Replies
7. Shell Programming and Scripting
Hi,
I would like to process, filter the same ASCII asynchronous live data stream in more than one pipe pipeline.
So the one pipeline should filter out some records using grep key word
and more than one pipes pipelines
each should grep for another key words, each set seperately for each... (5 Replies)
Discussion started by: jack2
5 Replies
8. Shell Programming and Scripting
Hello,
I would like to pipe two variables into awk, but I don't know how to do.
Each variable, "a" and "b", are in fact a list of data. They are not files.
So to get awk to work with it I am using:
echo $a | awk 'FNR==NR{print $1}FNR!=NR{print $4}'
The above works, but when I am... (5 Replies)
Discussion started by: jolecanard
5 Replies
9. UNIX for Advanced & Expert Users
The following code does not work (zsh, Solaris), but works without the first line (files instead of pipes) :confused:
mkfifo p1 p2
echo "Hello" | tee p1 > p2 &
paste p1 p2
I would high appreciate any help to fix it. (9 Replies)
Discussion started by: zzol
9 Replies
10. Filesystems, Disks and Memory
Hello!
How I can increase or decrease predefined pipe buffer size?
System FreeBSD 4.9 and RedHat Linux 9.0
Thanks! (1 Reply)
Discussion started by: Jus
1 Replies