Search Results

Search: Posts Made By: a_programmer
6,228
Posted By a_programmer
Not sure if this will work, but you can try this...
Not sure if this will work, but you can try this as well:

> sftp -oPort=22 user\\@name@hostname

Notice, the double escape... one is for the shell and another for sftp.
Forum: AIX 11-11-2010
1
scp
3,749
Posted By a_programmer
scp works similar to cp command, except you need...
scp works similar to cp command, except you need to specify the source or destination remote machine.
So, doing scp -rp will take care of copying entire directory.

The only issue I have seen...
2,798
Posted By a_programmer
Based on the number of volumes/files on your...
Based on the number of volumes/files on your server, find can take a substantial amount of time to search something from /.

Time one of the find commands separately and multiply that time by 3....
15,064
Posted By a_programmer
Simply pass full/relative paths with directory...
Simply pass full/relative paths with directory name to your perl script. (This is assuming your perl script does not expect the file to be in the current working directory).


## Assuming the...
1,654
Posted By a_programmer
sort a.txt > a1.txt sort b.txt > b1.txt ...
sort a.txt > a1.txt
sort b.txt > b1.txt

diff a1.txt b1.txt
12,217
Posted By a_programmer
You use wrappers when you want to enhance the...
You use wrappers when you want to enhance the functionality of an existing utility/command without changing it (usually for backwards compatibility or because you don't have access to the original...
12,748
Posted By a_programmer
If you are trying to compare numbers, use the...
If you are trying to compare numbers, use the numeric comparison operator:

80 if [ "${NUM1}" -ne "${NUM2}" ]


Or:

80 if (( NUM1 != NUM2 ))
21,104
Posted By a_programmer
That is correct. You can combine the operations...
That is correct. You can combine the operations in a pipeline though:

gunzip < file.gz | sed -e 's/search_str/replace_str/g' | gzip -c > temp.gz
mv temp.gz file.gz
3,284
Posted By a_programmer
Assuming that: your file has a unique key...
Assuming that:

your file has a unique key (like some sort of account id, order id etc.)
it is sorted by that key (in ascending order)

Here is an approach that I use when working with flat...
3,694
Posted By a_programmer
Its called KSH Variable substitution. There are a...
Its called KSH Variable substitution. There are a lot of things that you can do with it. Some of the most common uses are to strip out file extensions, get directory/file names from paths etc.


>...
7,013
Posted By a_programmer
can't you do something like? ssh...
can't you do something like?


ssh user@hostname "$(cat hours.sh)"
Showing results 1 to 11 of 11

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