Search Results

Search: Posts Made By: dennis.jacob
776
Posted By dennis.jacob
I guess you are not looking for SFTP , and not...
I guess you are not looking for SFTP , and not SMTP [for mailing].

Here is a sample SFTP program


sftp username/password@server_name <<EOF
lcd local_directory
cd remote_directory
put...
808
Posted By dennis.jacob
Instead of it, you can try: awk '{...
Instead of it, you can try:


awk '{ s=substr($0,1,3); print >"acc_"s;}' temp
1,847
Posted By dennis.jacob
Try: find . -name "*" -type f | sed...
Try:

find . -name "*" -type f | sed 's!.*/!!g'
2,511
Posted By dennis.jacob
If I got you correctly,Try: awk 'NF>2 {...
If I got you correctly,Try:

awk 'NF>2 { print $1" "$2; $1=$2=""; print; }' file
3,619
Posted By dennis.jacob
Try: awk '/DETY/ { s=""; s=$1" "$2; } /SP=/...
Try:

awk '/DETY/ { s=""; s=$1" "$2; } /SP=/ {s=s" "$3; } /MGG=/ { s=s" "$1; } /END/ { print s; }' file
1,214
Posted By dennis.jacob
Try: cmd="fred=999" eval $cmd echo...
Try:

cmd="fred=999"
eval $cmd
echo $fred
6,626
Posted By dennis.jacob
Either you can - source the .profile before...
Either you can

- source the .profile before calling the script
eg: * * * * * ./.profile; sh script.sh

- or, call the .profile inside your script.
15,238
Posted By dennis.jacob
Try : [[ -s "file" ]] && echo "Filesize not...
Try :

[[ -s "file" ]] && echo "Filesize not zero" || echo "Filesize zero"

Am not quite sure you are looking for the condition filesize is zero or records zero.
11,441
Posted By dennis.jacob
Try this: sed -n '/<TR/p' filename | sed...
Try this:

sed -n '/<TR/p' filename | sed 's/\(<TR><TD>\)\(.*\)\(<\/TD><TD>\)\(.*\)\(<\/TD><TD>\)\(.*\)\(<\/TD><TD>\)\(.*\)\(<\/TD><\/TR>\)/\2,\4,\6,\8/'


Input:


Output:
16,840
Posted By dennis.jacob
One quick approch: grep -v "$(cat file1)"...
One quick approch:

grep -v "$(cat file1)" file2 | awk '{print $2}'
13,928
Posted By dennis.jacob
sed 's/.*/&,file1/' file1 >temp mv temp...
sed 's/.*/&,file1/' file1 >temp
mv temp file1
Showing results 1 to 11 of 11

 

Featured Tech Videos

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