Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: vino
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
57,078
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
106,803
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'...
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
57,905
Posted By vino
tr ',' '\t' < in.txt > out.txt
tr ',' '\t' < in.txt > out.txt
Forum: Solaris 05-15-2007
116,169
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
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
34,776
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'...
Forum: Programming 11-17-2005
7,045
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,356
Posted By vino
find . -name Results*.dat -exec cp {}...
find . -name Results*.dat -exec cp {} /destination/dir \;

Read the man page for -exec

vino
68,333
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...
Showing results 1 to 12 of 12

 

Featured Tech Videos

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