Search Results

Search: Posts Made By: vino
Forum: Programming 11-17-2005
7,640
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.
21,136
Posted By vino
find . -name Results*.dat -exec cp {}...
find . -name Results*.dat -exec cp {} /destination/dir \;

Read the man page for -exec

vino
16,028
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
122,291
Posted By vino
find /path/to/directory -exec grep "abc" {}...
find /path/to/directory -exec grep "abc" {} /dev/null \;
100,712
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
11,789
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
11,003
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
114,453
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'...
69,842
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...
43,855
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'...
65,814
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
76,994
Posted By vino
tr ',' '\t' < in.txt > out.txt
tr ',' '\t' < in.txt > out.txt
Showing results 1 to 12 of 12

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