Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: vino
Forum: Programming 11-17-2005
7,047
Posted By vino
:1 will take you to line 1. SHIFT + G the end...
:1 will take you to line 1.
SHIFT + G the end of the file.
20,357
Posted By vino
find . -name Results*.dat -exec cp {}...
find . -name Results*.dat -exec cp {} /destination/dir \;

Read the man page for -exec

vino
14,715
Posted By vino
This should work for file in...
This should work

for file in /dir/to/process/*
do
tr -s '\11 ' ' ' < $file > temp0
sed -e 's/,//g' temp0 > temp1
cut -d' ' -f1,4,5 temp1 >> final_output
rm temp0 temp1
done
Forum: Solaris 05-15-2007
116,197
Posted By vino
find /path/to/directory -exec grep "abc" {}...
find /path/to/directory -exec grep "abc" {} /dev/null \;
98,593
Posted By vino
Do people ever read the FAQ's or even use the...
Do people ever read the FAQ's or even use the search feature ? :(

See https://www.unix.com/showthread.php?t=7077
10,745
Posted By vino
Many ways Within vim :g:^[ ]*$:d Use...
Many ways

Within vim
:g:^[ ]*$:d

Use that regex in sed
sed -e "/^[ ]*$/d" in.txt > out.txt
9,502
Posted By vino
Can you not have the contents of variable in...
Can you not have the contents of variable in files ?

If then, you can use paste file1 file2
106,820
Posted By vino
See this. [/tmp]$ cat try.ksh #! /bin/ksh ...
See this.

[/tmp]$ cat try.ksh
#! /bin/ksh


if [[ -n "$1" ]] ; then
echo '$1'="[$1]"
else
echo '$1' is empty
fi
if [[ -n "$2" ]] ; then
echo '$2'="[$2]"
else
echo '$2'...
68,335
Posted By vino
Why not run the process in the background ? ...
Why not run the process in the background ?

rladda.sh

#! /bin/sh

while true
do
for file in `ls /path/to/dir`
do
[[ -f $file ]] && echo "$file exists"
done
sleep 60
done

Check the...
34,812
Posted By vino
That change doesnt look like its at position 11....
That change doesnt look like its at position 11. It looks like position 5.

I couldnt resist a sed solution for that

sh-2.05b$ echo "456781 ~Y~12345" | sed -e 's#\(.\{5\}\)\(.*\)#\1~\2#g'...
57,103
Posted By vino
export and not EXPORT is used by sh and ksh...
export and not EXPORT is used by sh and ksh shells. setenv is used by csh.

The syntax also differs for both.

export key=value
setenv key value
57,989
Posted By vino
tr ',' '\t' < in.txt > out.txt
tr ',' '\t' < in.txt > out.txt
Showing results 1 to 12 of 12

 

Featured Tech Videos

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