Search Results

Search: Posts Made By: vino
10,522
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
64,615
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
112,340
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'...
11,243
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
75,478
Posted By vino
tr ',' '\t' < in.txt > out.txt
tr ',' '\t' < in.txt > out.txt
Forum: Solaris 05-15-2007
121,216
Posted By vino
find /path/to/directory -exec grep "abc" {}...
find /path/to/directory -exec grep "abc" {} /dev/null \;
100,274
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
15,677
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
43,028
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,399
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,901
Posted By vino
find . -name Results*.dat -exec cp {}...
find . -name Results*.dat -exec cp {} /destination/dir \;

Read the man page for -exec

vino
69,382
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

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