Search Results

Search: Posts Made By: rishav
Forum: Tips and Tutorials 08-31-2012
75,635
Posted By bakunin
How to manage file names with special characters
One of the common questions asked are: how do i remove/move/rename files with special (non-printable) characters in their name?

"Special" doesn't always mean the same. As there are more and less...
Forum: IP Networking 08-29-2012
20,148
Posted By hergp
Probably the iptables firewall. You have to add a...
Probably the iptables firewall. You have to add a rule for port 5433 (port 22 is open in the default configuration).

First have a look at the file /etc/sysconfig/iptables

# Firewall...
2,389
Posted By bakunin
There are a few problems with your code: ...
There are a few problems with your code:




First off, using backticks is deprecated, outdated, not recommended and (in an ideal world) prohibited by law. Seriously: it is only supported for...
6,575
Posted By Scott
Perhaps you have Perl...
Perhaps you have Perl (https://www.unix.com/unix-dummies-questions-answers/140509-ls-show-numeric-permission-bit.html)?
2,368
Posted By Franklin52
Something like this? awk...
Something like this?
awk '/Reference_Data/{f=1;exit}END{print f?"Found":"Not Found"}' file
2,368
Posted By michaelrozar17
Can you try as.. awk '{print...
Can you try as..

awk '{print $0~/Reference_Data/?"Found":"Not Found"}' file
or
awk '{print /Reference_Data/?"Found":"Not Found"}' file # not sure if this would work
2,368
Posted By Franklin52
Use nawk or /usr/xpg4/bin/awk on Solaris.
Use nawk or /usr/xpg4/bin/awk on Solaris.
2,368
Posted By bash-o-logist
declare -i toggle=0 while read -r line do ...
declare -i toggle=0
while read -r line
do
case "$line" in
*Reference_Data*) toggle=1;;
esac
done < file
if [ $toggle -eq 0 ] ;then
echo "Not found"
else
echo "Found"
fi
4,711
Posted By ctsgnb
I am curious to see if you can find something...
I am curious to see if you can find something more simple than this :

xargs <1.txt:D

... or better : use the relevant formatting option before you generate your spool so that no additionnal...
Showing results 1 to 9 of 9

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