Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: in2nix4life
7,275
Posted By in2nix4life
Make sure you're using vim, and not vi. In...
Make sure you're using vim, and not vi.

In the file, switch to INSERT mode. Hit CTRL-V and release. Should see a ^ symbol. Type in the numeric value for the character.
Forum: Debian 06-01-2015
5,258
Posted By in2nix4life
No problem. :)
No problem. :)
Forum: Debian 06-01-2015
5,258
Posted By in2nix4life
Test it with this one: sed 's/^.*$/"&"/g'...
Test it with this one:


sed 's/^.*$/"&"/g' largefile.txt


Make the change to the file with this one and create a backup (largefile.txt.ORIG):

sed -i.ORIG 's/^.*$/"&"/g' largefile.txt
1,005
Posted By in2nix4life
sed -ne '/Registry Admin ID:/,/Registry Tech...
sed -ne '/Registry Admin ID:/,/Registry Tech ID:/{/Registry Admin ID:\|Registry Tech ID:/!p}'
10,988
Posted By in2nix4life
Setup SSH keys for password-less logins?
Setup SSH keys for password-less logins?
1,056
Posted By in2nix4life
You could use the find command. i.e. file...
You could use the find command.

i.e. file date is March 05, 2015

find /path/to/file -type -newermt 2015-03-05 -not -newermt 2015-03-06 -exec mv {} /path/to/folder \;
1,436
Posted By in2nix4life
awk 'NR==FNR{a[$1]=$0;next}($3 in a){print}'...
awk 'NR==FNR{a[$1]=$0;next}($3 in a){print}' file1 file2
15,988
Posted By in2nix4life
Here's a good explanation of the last command...
Here's a good explanation of the last command (http://linoxide.com/linux-command/linux-last-command/) to help you learn more about it.

In particular:

When you see down value, it means that the...
Forum: Red Hat 01-25-2015
3,139
Posted By in2nix4life
How is your network configured for your VM(s)?
How is your network configured for your VM(s)?
Forum: Debian 01-20-2015
4,273
Posted By in2nix4life
Could you post the contents of your...
Could you post the contents of your /etc/resolv.conf file?
Forum: SuSE 08-22-2014
14,447
Posted By in2nix4life
Try: grep DMI: /var/log/dmesg* If...
Try:


grep DMI: /var/log/dmesg*


If the old logs are gzipped then you may need to uncompress them first.
2,054
Posted By in2nix4life
Occam's Razor.... The simplest answer is...
Occam's Razor....

The simplest answer is usually the right one...;)
2,054
Posted By in2nix4life
# Print the file (print each element of the...
# Print the file (print each element of the array)
NUMBER=1
getArray "junk2"
for e in "${array[@]}"
do
project -C$e -A145 -G0.01k -L-2500/2500 -Q > junk3

cat junk3 | grdtrack...
8,044
Posted By in2nix4life
The following will read a file line-by-line....
The following will read a file line-by-line. Replace "users.txt" with the name and path to your file.


#!/usr/bin/expect -f
#

set fh [ open "users.txt" r]

set fileData [read $fh]

close...
824
Posted By in2nix4life
The information here...
The information here (http://www.faqs.org/docs/iptables/traversingoftables.html) may help make sense of it.
Forum: Red Hat 07-31-2014
1,184
Posted By in2nix4life
The -p switch allows the rpm command to perform...
The -p switch allows the rpm command to perform actions on a standalone rpm package, whether it be on the local filesystem or remote (URL).

i.e.

rpm -qip filename.rpm

Will list the...
Forum: AIX 07-31-2014
5,424
Posted By in2nix4life
True, but like the majority of postings on here,...
True, but like the majority of postings on here, we never seem to get the entire picture. Just the bits and pieces...:D
Forum: AIX 07-30-2014
5,424
Posted By in2nix4life
Here's a hack that may help. TEST As...
Here's a hack that may help.

TEST
As root, create a file, let's call it pdictlst, and make sure only root has read\write permissions.

Add a user's username to the file and save it.

Use...
3,047
Posted By in2nix4life
netstat -antu | awk...
netstat -antu | awk '/LISTEN|ESTABLISHED|TIME_WAIT/{a[$6]++}; END { for(b in a) print "Count of "b" is: "a[b]}'
1,907
Posted By in2nix4life
If you have the tee command, replace >> $LOGFILE...
If you have the tee command, replace >> $LOGFILE with tee -a $LOGFILE and it should direct the output both to the console and the log file.
3,625
Posted By in2nix4life
Simplest solution... Wrap your awk command in a...
Simplest solution... Wrap your awk command in a script and detect which OS the script is being executed on and run the correct awk command. :D
3,625
Posted By in2nix4life
Most awk on Linux do not recognize [A-Z]{3} which...
Most awk on Linux do not recognize [A-Z]{3} which is called an interval expression, but it can be enabled like so:


echo -e "Sun 12 Jul BST 2014\nSun 12 Jul 2014\nSun 12 Jul IS 2014" | awk...
1,588
Posted By in2nix4life
Maybe something like this: zip...
Maybe something like this:


zip APP_Deg_Dummy_$(ls | head -n1 | awk -F_ '{print substr($2, 1, 8)"TM"substr($2, 10, 6)}').zip Dummytest_20140601W110515_file*
adding:...
824
Posted By in2nix4life
awk '/^>/{print...
awk '/^>/{print ">"$3;getline;print;getline;print}'
1,708
Posted By in2nix4life
So you're trying to start mousepad and then...
So you're trying to start mousepad and then immediately kill it? Please provide more detail on what you're trying to accomplish.
Showing results 1 to 25 of 500

 

Featured Tech Videos

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