Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live

Need help to extract part of the string

Hi, I have a string with name as "20140412-s1-Potopolive_promos_20140412". So i want to extract only Potopolive string. Could you please help me the command. O/p : Potopolive Thx in advance

View Article


Help with listing only subfolders

Hi All, I have a AIX file system with a folder structure like this Code: /1 /1/2 /1/2/3/5 /1/2/3/2 /2 /2/3/4 /2/5/6 I would like to list subdirectories Code: /1/2/3/5 /1/2/3/2 /2/3/4 /2/5/6 Can you...

View Article


Simple hello world server

Hi, I m beginner in shell programming, now I want to write a simple server that create a pipe and write "hello" on it. In an other hand, a client connect to this server, and retrieve this message....

View Article

Assign the return value of the SQL to a variable in UNIX

Hi I am new to UNIX. I am trying the below and getting the error. I am trying to assign the variable with the value of the query result. I want this value to use in the next steps. Created UNIX file...

View Article

Shell to python

Hi Guys, I usually work on Shell script but now i am stuck with python as i am new to it. Here i have a shell script to start automation on Jenkins using maven and testng framework, please help me to...

View Article


Hard Drives Undetected on My Machine - But Mounts on All Other Machines

Dear All, Hope you are doing great. I ran into a very strange issue. I have a Dell T7500 machine that runs ubuntu 12. I have 8 different drives from different manufacturers of varying sizes with data...

View Article

[awk] printing value of a variable assignment from a file

Heyas Me try to print only the value of a (specific) variable assignment from a file. What i get (1): Code: :) tui $ bin/tui-conf-get ~/.tui_rc TUI_THEME dot-blue "" "$TUI_DIR_INSTALL_ROOT/usr"...

View Article

Submit button to run sed command in html

Hello, I am running a linux server and sometimes I need to check log files and create my own reports. Since I am the owner of this pc, I am able to login through ssh and run sed command to extract...

View Article


POSIX redirect file descriptor to subshell

Hello, The well-known 'bashism' to redirect stdout to a subshell is: Code: exec > >(tee out.log) This allows to 'split' stdout, sending a copy to a log file for future reference. I have not...

View Article


Help with Loop !!

[Hi Guys! This is a very beginner question I think I am writing a Bash script that aims to perform two tasks. First, find files and see how long it has been created. If more than 30 days then delete;...

View Article

Convert json to xml

Hello everyone, I have created a workflow that will pull down data via a RESTful API in JSON, then my code parses and modifies said data. The problem I have is that these APIs I am working with only...

View Article

Zipping without extension

I currently have a code that find and zip all files in current folder and zip it, the problem is the name of the zip will include the extension as well and I don't want it. for ex: Volvo-red.swf ->...

View Article

Bad magic number in disk label.

This is first time post...found this forum when looking for possible solution to fix my sun pc. Just one day can't boot it already showing the following: ============================= Boot device: disk...

View Article


scp to windows and delete files from windows

Hi Team, I Have list file in Unix server, I need to copy files from Windows to Unix for the list of files given in Unix list file. after coping files to unix, I need to delete the files from Windows. i...

View Article

Customized Linux Operating System with Security Authentication

Dear Gurus/Experts of UNIX/LINUX, Im Isravel from India, I've customized CentOS Installation ISO as per my new product requirements. I want to give serial key authentication to the clients who all are...

View Article


Need to fetch only selected data in CSV

Hi Team, I m getting my script commands output like given below Code: [ U-UU-YRYT-NOD-6002 ] GETA-TILL-INF;     U-UU-YRYT-NOD-6002 2015-05-14 THU 19:44:10   C2221 RETRIEVE TILL INFORMATION : COMPLD...

View Article

Mount issue please help

Hi all I have a mount issue, that is as follows: somebody as mount a certain file system Code: /sim5 on Code: / , so when I do Code: df -h /sim5 it returns Code: Filesystem            size  used  avail...

View Article


Limited log on specific timelines

Hi Gurus, We have a very huge size log files (around 3-4 GBs), in which all the versions (nothing but a log entries) of orders would be saved... It is very hard to find out the exact piece of log for a...

View Article

Question on iterating array elements

Hi, I am trying to do something similar to the for loop example from KSH For Loop Array: Iterate Through Array Values Code: $: cat y.ksh #!/bin/ksh # set array called nameservers set -A nameservers...

View Article

Image may be NSFW.
Clik here to view.

Special characters automatically gets returned - Red Hat Enterprise Linux...

Dear experts, We are using Linux OS i.e Red Hat Enterprise Linux Server release 7.0 I log to the server using putty & default shell is Code: -bash4.2$ echo $SHELL /bin/bash special character...

View Article
Browsing all 16232 articles
Browse latest View live