Search Results

Search: Posts Made By: sussus2326
Forum: Ubuntu 12-03-2012
8,356
Posted By in2nix4life
May a named pipe? Create a named pipe: ...
May a named pipe?


Create a named pipe:
mkfifo /tmp/watch_log

Point the tail command to it and background it:
tail -f -n1000 logfile > /tmp/watch_log &

Watch it using the cat command:...
Forum: Ubuntu 12-03-2012
8,356
Posted By RudiC
Use an alias.
Use an alias.
Forum: Ubuntu 12-03-2012
8,356
Posted By jim mcnamara
A symlink has to point to a physical file if you...
A symlink has to point to a physical file if you want it to return a file descriptor on open.
So, what you are asking is interesting but does not make sense to me.

Rather than you telling us how...
7,133
Posted By kshji
Or only waiting subprocess ending, very cpu...
Or only waiting subprocess ending, very cpu friendly.

#!/bin/ksh or bash or dash or ...

someecho()
{
while true
do
somestring=$(date '+%H%M%S')
printf "\r%s ...
7,133
Posted By agama
This should get you started. I avoid bash, and...
This should get you started. I avoid bash, and have marked the one statement that I know you'll need to change if you wish to use bash over Ksh.


#!/usr/bin/env ksh

# function that does work...
2,302
Posted By michaelrozar17
thru sed.. sed -e 's/\(".*"\).*/\1/g' -e 's/ [^...
thru sed..
sed -e 's/\(".*"\).*/\1/g' -e 's/ [^ ]*,//' inputfile
2,302
Posted By cabrao
awk -F"character|numeric" '{print $1}'...
awk -F"character|numeric" '{print $1}' file
2,302
Posted By radoulov
sed 's/ *\(character\|numeric\).*$//' infileFor...
sed 's/ *\(character\|numeric\).*$//' infileFor sed implementations that don't support alternation:

sed 's/ *character .*//; s/ *numeric.*//' infileAnd of course, you should add other data types...
Showing results 1 to 8 of 8

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