Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: vino
Forum: Programming 11-17-2005
7,105
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,544
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,964
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
118,169
Posted By vino
find /path/to/directory -exec grep "abc" {}...
find /path/to/directory -exec grep "abc" {} /dev/null \;
99,020
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,922
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,629
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
108,185
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,694
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...
37,544
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'...
59,077
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
63,684
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:36 AM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy