Search Results

Search: Posts Made By: a_programmer
3,417
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.
2,504
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....
Forum: AIX 11-11-2010
1
scp
3,496
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...
1,462
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
14,071
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...
8,086
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...
10,869
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 ))
14,638
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,122
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.


>...
2,981
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...
6,348
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

 

Featured Tech Videos

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