The Unix operating system is a general purpose OS that was developed by Bell Labs in the late 1960s and today exists in various versions. It is known for its large collection of simple command-line utilities which allow powerful file handling and text processing capabilities to be implemented via ...
0
votes
0answers
10 views
If the last colum is equal “R” then… Is it possible? In unix
I need to find the last column from a variable that contains some fields. i need to write something like:
if [ #the last column = "R" ];
then
value=`echo "'$value'"`
fi
Is it ...
1
vote
1answer
12 views
want to change csv file date column format
Im newbie to batch/shell scripting. I have a CSV file like this:
Id depId Name city Date prod
12345 52845 ken LA 8.8.2013 16:06:53 KLS22
25685 28725 Larry MA ...
0
votes
1answer
3 views
Vertica odbc missing /opt/vertica/lib64/libverticaodbc_unixodbc.so
I am having issues with opening an odbc connection with Vertica from my machine (running centOS)
as far as i understand i have all possible packages installed for this to work but i am still missing ...
0
votes
1answer
37 views
Why am I not able to see apostrophe in UNIX?
Iam not able to see apostrophe (’) in my file in Unix.
When i open the file it is appearing as dot (.)
How to see and replace it?
1
vote
1answer
13 views
Running two node servers from a single shell command using a shell script
I have to run two node servers in different port, I want to write a simple shell script that will start both of the servers.
I wrote it like below:
node project/rest.js && node ...
-2
votes
3answers
23 views
How to copy a directory from linux(remote system) to windows(local system) [closed]
I am trying to copy a directory from linux (remote machine) to windows (local machine). Can you guys please tell me the command to do that.
Example: from "/home/tmp" to "C:\TEMP"
0
votes
0answers
29 views
How write the ignore dupkey command in unix?
I know that in oracle the is a way to write to ignore the dupkey, something like
/*+ ignore_row_on_dupkey_index(tab, index_tab) */
Is there a way to do the same thing but with unix commands? I ...
0
votes
1answer
15 views
Creating a cron job to run at hour mark and half hour mark for specific hours on specific day of week
I need to setup cron jobs so that they run at
1800, 1830, 1900, 1930, 2000, 2030, 2100 on every Monday and Thursday.
So far I've managed to get to this:
00,30 18-21 * * 1,4
Is this the right way of ...
1
vote
0answers
12 views
Convert xlsx or csv date serial numbers to proper date format in Unix server
I have converted bunch of .xlsx files into .csv files using xlsx2csv.py,a python module. I have noticed some of the date fields were converted as serial numbers.
For example :
41421
41422
41423
41424
...
0
votes
1answer
18 views
How can we split values in a coulumn separated by pipe into multiple rows
for Eg:
Roll No: Name City
100|200|300 Vicky Hyd
400|500|600 Kalyan Viz
into
100 vicky Hyd
200 vicky Hyd
300 vicky Hyd
400 Kalyan Viz
500 Kalyan Viz
600 Kalyan Viz
Could you ...
0
votes
1answer
12 views
newbie gnuplot plot lines between points
I am a newbie with gnuplot. I am unable to figure out how lines can be drawn between points.
In the image below all the red points are represented as follows ($TMPFILE1.sent.var) :
...
-5
votes
1answer
22 views
telnet to port 8089 correct command [closed]
I am using telnet to port 8089 on remote server.
Can any tell me which of the following commands are true.
telnet 74.255.12.25 8089
or
telnet 74.255.12.25 89
Thanks in Advance.
0
votes
1answer
13 views
“file” program and fifos
file <(echo "abcdefghijk")
It would be really cool if this could print something like "ASCII text", i.e. that file won't just give up and tell me it's a fifo.
-1
votes
0answers
9 views
pip virtual env install permission denied [closed]
I'm trying to use pip install oauth2 on a mac, getting a permission denied error that looks like this:
error: could not delete
...
0
votes
1answer
15 views
Unset a argument variable
I have created a script in sh shell.
#script.sh
echo $1
if [ x$1 = 'x' ]
then
echo CODE1
else
echo CODE2
fi
1) if I am running it using . ./script.sh
OUTPUT: CODE1
2) If I run it like . ...